It shall be the duty of the attorney general, when called upon by the auditor-general, to aid in any investigation or matter needing legal advice or inquiry, and to supervise the prosecution of all offenders under the laws relating thereto.
SDCL 4-11-17