Under Chapter 7, the company stops all operations and goes completely out of business. A trustee is appointed to "liquidate" (sell) the company's assets and the money is used to pay off the debt, which may include debts to creditors and investors. https://www.sec.gov/reportspubs/investor-publications/investorpubsbankrupthtm.html