The last movie of Peter Jackson’s three Hobbit films rode to the top of US and Canadian weekend box office charts, selling an estimated $56.2 million worth of tickets and boosting the holiday movie season that is crucial to Hollywood.

The Hobbit: The Battle of the Five Armies grabbed another $34.4 million from Wednesday and Thursday screenings for a combined debut of $90.6 million over its first five days, distributor Warner Bros said.

Night at the Museum: Secret of the Tomb, featuring the final on-screen performance by the late Robin Williams, finished second at domestictheatres with $17.3 million from Friday through Sunday, according to tracking firm Rentrak’s estimates.

Third place for the weekend before Christmas went to the musical remake Annie, which had been stolen by hackers who attacked the Sony movie studio’s computer network and placed on online piracy sites three weeks ago. Annie earned $16.3 million at domestic theatres.

The Hobbit stars Martin Freeman in the story based on the classic fantasy novel by J.R.R. Tolkien. Night at the Museum, the third in the series about exhibits that come to life, features Ben Stiller as a night-time security guard and Williams as Teddy Roosevelt.

“This is an incredible result, and a nice distraction from everything that’s been going on for the past couple of weeks, to have this enormous success going into the holiday season,” said Jeff Goldstein, executive vice president of domestic distribution for Warner Bros, a unit of Time Warner Inc.

Night at the Museum added $10.8 from foreign showings.

Quvenzhane Wallis plays the title character in Annie, a contemporary remake of the 1977 Broadway musical about an orphaned girl.

Rory Bruer, president of worldwide distribution for Sony’s movie studio, said the hackers’ release of the film “certainly doesn’t seem like it hurt (box office performance), as we did so well”.

Biblical epic Exodus: Gods and Kings finished fourth for the weekend with $8.1 million. The Hunger Games: Mockingjay – Part 1 took the No. 5 spot with $7.8 million.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.