I second this, best is to have a body work specialist to inspect the car prior committing on it.
But if I were u, I would try to avoid buying this car given its accident repair history as attached, as the roof frame is also damaged by the impact, most probably the B pillar is also affected...