(1) An amount paid to a company under section 588J, 588K, 588M or 588W is not available to pay a secured debt of the company unless all the company's unsecured debts have been paid in full.
(2) Where:
(a) under section 588J or 588K, or in proceedings under section 588M or 588W, a court orders a person to pay to the company compensation, or an amount, equal to the amount of loss or damage suffered by a person in relation to a debt because of the company's insolvency; and
(b) the court is satisfied that, at the time when the company incurred the debt, the person who suffered the loss or damage knew that the company was insolvent at that time or would become insolvent by incurring the debt, or by incurring at that time debts including the debt, as the case requires;
the court may order that the compensation or amount paid to the company is not available to pay that debt unless all the company's unsecured debts (other than debts to which orders under this subsection relate) have been paid in full.
(3) Subsection (2) does not apply in relation to proceedings under section 588M in relation to the incurring of a debt by a company if the proceedings are begun by a creditor of the company (as provided for in Subdivision B of Division 4).
(4) Subsection (2) does not apply in relation to a liability that is taken to be a debt because of section 588F.