Purchasing the same legal entity is usually a big NO since it tends to include all the old unpaid debts. One tends to buy certain assets (eg the software to run the website or specific airport slots) of the old failed company instead, but leave the old legal entity well alone