A corporation is subject at all times to examination by the Attorney General, on behalf of the state, to ascertain the condition of its affairs and to what extent, if at all, it fails to comply with trusts which it has assumed or has departed from the purposes for which it is formed. In case of any such failure or departure the Attorney General may institute, in the name of the state, the proceeding necessary to correct the noncompliance or departure.
Ca. Corp. Code § 5250