If the company goes bankrupt and the lawsuit is won, will it be impossible to get the money?

Whether a company can get money if it wins a lawsuit in bankruptcy depends on the specific situation. Creditors who have a security right over the bankrupt's specific property have the priority to be compensated for that specific property.

Enterprise Bankruptcy Law of the People's Republic of China

Article 109 A creditor who enjoys a security right over a bankrupt's specific property shall have the priority to be compensated for that specific property.

Article 113 After the bankruptcy expenses and debts are paid off first, the bankruptcy property shall be paid off in the following order:

(1) Wages, medical care, disability allowance and pension expenses owed by the bankrupt to employees, basic old-age insurance and basic medical insurance expenses owed to employees' personal accounts, and compensation that should be paid to employees according to laws and administrative regulations;

(2) Social insurance premiums and taxes owed by the bankrupt other than those specified in the preceding paragraph;

(3) Ordinary bankruptcy claims.

If the bankruptcy property is insufficient to pay off the repayment requirements in the same order, it shall be distributed in proportion.