After you file

You can't deduct legal fees incurred by the business if you do something illegal.  However, this is a contract dispute, so you can deduct the legal fees.