In order to determine if any minor or major repairs are needed, you'll want to conduct a full home inspection, including but not limited to a dry rot and termite inspection.
Generally, you can negotiate to have the option to complete applicable inspections once under contract. You can also include a clause that gives you an opportunity to back out of the transaction and receive a refund of your earnest money.
Syan Real Estate
Call/Text: (505) 730-8181