Easy- insurance walas auction the cars off.
Or they keep the good parts for future claims and auction the scrap off.
At the end- no one wants to lose money. So I am sure they sell each and everything.
Once auctioned- dealers or low budget people buy then and repair to working condition, they won't care if chassis is bent or it doesn't drive straight. Especially the dealers.
Sent from my HTC One_M8 using Tapatalk