I would suggest that you ask your realtor about making an offer and your lender about the loan. What's the comps for the area? Has the sale price reflect the repair for the foundation? Is this home bank owned? How do you know that the foundation needs repair? Did the seller indicate that or did you see it yourself?
There are variables that you'll need to take into consideration before making offer on a home so it's best that you hire a realtor to assist you. I hope this makes sense!
Seniors Real Estate Specialist
Certified Home Stager
United Real Estate Dallas