(2) All interested persons shall be provided an opportunity at the hearing to redeem their interest as determined by the court in the subject farm animals and to purchase the interest of the convicted person. The convicted person shall be entitled to be reimbursed his interest in the farm animals, less any costs, fines or penalties imposed by the court, as specified under paragraph d of this subdivision. In no case shall the court award custody or control of the animals to any interested person who conspired, aided or abetted in the unlawful act which was the basis of the conviction, or who knew or should have known of the unlawful act. g. Nothing in this section shall be construed to limit or restrict in any way the rights of a secured party having a security interest in any farm animal described in this section. This section expressly does not impair or subordinate the rights of such a secured lender having a security interest in farm animals or in the proceeds from the sale of such farm animals.