If this were my car, I'd get it thorouhly inspected and get a few estimates to repair it before buying any parts. It would not shock me if these repairs quickly surpassed the purchase price. For the sake of argument, let's say the body shop charges somewhere around $80/hr, this only allows for 87ish hours to fully repair the damage before you spent the same amount as your purchase price.