as I point out few days ago, pay attentions to your title insurances, it give you a list of conditions require to complete the closing.
when you buying a REO as is, bank normally do not do any repairs, you need to ready to close with cash on hand or bring the property up to code before closing.