Records show the attorney general’s investigation began at least as early as 2010.