35-14-746. Payment of expenses. On termination of the derivative proceeding, the court may:
(1) order the corporation to pay the plaintiff's expenses incurred in the proceeding if it finds that the proceeding has resulted in a substantial benefit to the corporation;
(2) order the plaintiff to pay any defendant's expenses incurred in defending the proceeding if it finds that the proceeding was commenced or maintained without reasonable cause or for an improper purpose; or
(3) order a party to pay an opposing party's expenses incurred because of the filing of a pleading, motion, or other paper if it finds that the pleading, motion, or other paper:
(a) was not well grounded in fact after reasonable inquiry or warranted by existing law or a good faith argument for the extension, modification, or reversal of existing law; or
(b) was interposed for an improper purpose, including to harass or to cause unnecessary delay or needless increase in the cost of litigation.