Code to scan memory to disable patchguard