This resource links to FEMA's official guidance on how to deal with a substantially damaged building.