I don't think we are capable of, just by a forum post, measure the extent of a foundation problem enough to give you any advice.
Personally I don't think of foundation repair as a DIY job, specially if there is even the slight suspicion of structural problems.
My advice to you is... get a structural engineer to take a look at it and tell you what to do.
Call a foundation repair contractor and have them take a look at what needs to be done.
Choose from those offering free estimates, so you won't even have to pay to find out what is wrong.
Choose someone who's been in business for a while and has a good reputation (check info about them at the BBB).
And then, make your decision.