Fixed the ASM patching to work in obfuscated environments.