Being a noob, I posted my 64-bit assembler code in the wrong section (The Laboratory). Rather than repost the whole thing, I'll just provide a link to it from here.
http://masm32.com/board/index.php?topic=2947.0
you can ask admin (Hutch) or one of the moderators to move the thread