Hello,
Im really sorry but theres not much hope of turning that fish around. It looks like a prolapse and probably is infected. I honestly would euthanize it.
If you want to try otherwise try epsom salt at 1 tablespoon per 5 gals water. It acts as a muscle relaxer of sorts . It may help.
al