Pre-Existing condition is not covered. They will ask for inspection report and fight very hard to even repair it for you, not mention replacement. Be careful!
no way to get any warranty from your insurance! "foreclosure" houses usually are under "AS IS" condition. you only can try to ask the bank [seller] if possible for some price discount. you have to take care it 100% once you bought it.