Went through a very similar deal last year on a hurricane damaged forclosure house that had been that way for almost 3 years. The day before closing we drive by and there is a big sign posted in the yard about a city hearing to tear it down along with postings on the door.
Called a time out on closing and called the city building official. He stated if the city had a repair plan and timeline approved prior to the hearing that it would recommend repair instead of demolishing it. No problem had that on my computer and emailed while on the phone. He had me take out a few things like landscape and such to stay under the 50% damaged FEMA guidelines. Told me as soon as we owned the house he could approve the plan.
This was a VA forclosure involving a bank in Florida and an asset managment call center in India. Told them I was reducing the offer 30% if they wanted to close. They said no. This went on until 3 days before the hearing. Finally their American problem solving woman gets involved. She called me, called the city, and then called back. Offered 15% off. We said no. She agreed to the 30% close the next day.
Ended up making $10K off that city posting and my plan didn't change except the start date was pushed a month.