; ; cocos2d::CCMenu::registerWithTouchDispatcher from 0x180059890 to 0x1800598ff (111 bytes) ; ; 3 xrefs: ; > @ 0x1800f7060 ; > @ 0x1801438a8 ; > @ 0x1801b2b74 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180059890 mov [rsp+arg_8], rbp ; +0x5, 0x180059895 mov [rsp+arg_10], rsi ; +0xa, 0x18005989a push rdi ; +0xf, 0x18005989f sub rsp, 20h ; +0x10, 0x1800598a0 mov rdi, rcx ; +0x14, 0x1800598a4 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x17, 0x1800598a7 mov rdx, [rdi] ; +0x1c, 0x1800598ac mov rcx, rdi ; +0x1f, 0x1800598af mov rsi, rax ; +0x22, 0x1800598b2 call qword ptr [rdx+3A8h] ; +0x25, 0x1800598b5 mov r8, [rsi] ; +0x2b, 0x1800598bb lea rbx, [rdi+140h] ; +0x2e, 0x1800598be mov ebp, eax ; +0x35, 0x1800598c5 mov rcx, rsi ; +0x37, 0x1800598c7 xor eax, eax ; +0x3a, 0x1800598ca test rdi, rdi ; +0x3c, 0x1800598cc cmovz rbx, rax ; +0x3f, 0x1800598cf call qword ptr [r8+90h] ; +0x43, 0x1800598d3 mov r9b, 1; bool ; +0x4a, 0x1800598da mov r8d, ebp; int ; +0x4d, 0x1800598dd mov rcx, rax; this ; +0x50, 0x1800598e0 mov rdx, rbx; struct cocos2d::CCTouchDelegate * ; +0x53, 0x1800598e3 mov rbx, [rsp+28h+arg_0] ; +0x56, 0x1800598e6 mov rbp, [rsp+28h+arg_8] ; +0x5b, 0x1800598eb mov rsi, [rsp+28h+arg_10] ; +0x60, 0x1800598f0 add rsp, 20h ; +0x65, 0x1800598f5 pop rdi ; +0x69, 0x1800598f9 jmp ?addTargetedDelegate@CCTouchDispatcher@cocos2d@@QEAAXPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTouchDispatcher::addTargetedDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x6a, 0x1800598fa