Hopefully you got a good deal. Sounds like it needs a lot of help.
I would NOT do a trans flush with those miles and obvious neglect it's seen. Only do a filter and fluid change.