Watch out for many hidden costs ,if the chassi legs have been distorted on impact,all steering geometry will be out ,costly to have it Jigged to put right .
Have airbags been deployed? again costly , I have rebuilt a few Cat damaged cars , my advice would be to either have an expert check it out or steer well clear !
Sorry but someone needs to tell you this, best of luck which ever route you choose!