At any time after the presentation of a petition for winding up, and before a winding-up order has been made, the company, or any creditor or contributory, may -
(a) where any action or proceeding against the company is pending in the High Court or Court of Appeal in England or Ireland, apply to the court in which the action or proceeding is pending for a stay of proceedings therein; and
(b) where any other action or proceeding is pending against the company, apply to the court having jurisdiction to wind up the company to restrain further proceedings in the action or proceeding;
and the court to which application is so made may, as the case may be, stay or restrain the proceedings accordingly on such terms as it thinks fit.