Rewrite the caller checks logic using the distorm engine. Some bug fixes.