A person who acts or attempts to act as a professional cash-bail agent or cash-bonding agent and who is not registered as such under this article is guilty of a misdemeanor and, upon conviction thereof, shall be punished by a fine of not more than one thousand dollars, or by imprisonment in the county jail for not more than one year, or by both such fine and imprisonment. Upon conviction, the court shall require the person to disgorge any profits from acting as a professional cash-bail agent or cash-bonding agent and forward the profits to the state treasurer, who shall deposit the moneys in the general fund.