I recommend that you take the cylinder to a farm machinery place or hydraulic supply house. They may have a cylinder that will work. Also, check the cylinders at
Portable Generators, Pressure Washers, Power Tools, Welders | Northern Tool + Equipment. You may find one that will work.
You need a cylinder with the same stroke and close to the same bore. A smaller bore cylinder may not have enough power. A larger bore cylinder will have enough power, but may need more fluid volume than is contained in the reservoir. A cylinder with a slightly longer stroke may work, but you will need to shorten the stroke fabricating and installing an internal spacer. The issue here may be that the body may be too long. The cylinder itself is of the double-acting type. It is hooked up to work as a single-acting cylinder with the retraction port plumbed as a fluid overflow.
Lastly, the ram may be salvageable if it is not bent too badly and the sealing surfaces are good. I used to straighten motorcycle front fork tubes on a hydraulic press and it worked well. These are similar to a hydraulic ram. You can do this yourself or have a machinist do it. Disassemble the cylinder and set up the ram on a press using aluminum, semi-circular blocks. Use another aluminum block on the press ram. Carefully use the press to straighten the cylinder (
http://www.pittedforks.co.uk/fork-straightening.php). I understand that some hydraulic shops also can do this.
Good luck.
__________________