Movies within movies by Egantx7

Question 2

This film's title character and Gretchen go on a date to see The Evil Dead, during which the title character sneaks out to burn down the home of Jim Cunningham. This turns out to be a good thing, since Jim Cunningham had stashes of child pornography in the house, which are discovered by the police. Ultimately, the title character of this film dies when the end of the film takes him back to the beginning of the film. Identify this dark film which takes place over (roughly) 28 days, and stars a clothed Maggie Gyllenhaal, a dramatic Drew Barrymore, and a very confused Jake Gyllenhaal.

Donnie Darko