Unless the cash from sale to company B was used to pay off creditors (not investors) of company A. Creditors have legal precedence over investors. The investor SHOULD receive some sort of accoutning at the end of the fiscal year, though.
That shouldn’t matter because of the sale, though. The company should still have the same amount of assets before and after the sale, assuming that it correctly valued its trade secrets.