The general counsel of Australia's largest insurance company has left the company following an investigation into misconduct.