 With regard to the president's core function, things like, for example, the Saturday Night Massacre, where Richard Nixon essentially fired the Justice Department or essentially tried to do so, the answer is he has core presidential immunity for that. You cannot prosecute a president for that conduct any more than Bob Mueller could have prosecuted President Trump for firing the FBI director.