Hiro skims the instruction manual for Reason. While the Librarian helps him navigate, he fires it into the boats surrounding the Enterprise, and then into the Enterprise itself.
When he's made a big enough hole in the ship, he throws Reason overboard and gets out a grappling hook.