Probably not what you're referring to, but it's a bit funny that the stated goal is to move code out of assembly, yet the new code is also written in assembly.
the presence of asm is not a problem per se (i've fixed this mess already by still having the asm parts). hint: look at the types and think 'security'...