; ; cocos2d::CCLayer::setMouseEnabled from 0x180052b40 to 0x180052bd7 (151 bytes) ; ; 11 xrefs: ; > @ 0x1800f3440 ; > @ 0x1800f3920 ; > @ 0x1800f3e78 ; > @ 0x1800f4400 ; > @ 0x1800f49f8 ; > @ 0x1800fd530 ; > @ 0x1801412e4 ; > @ 0x1801412f8 ; > @ 0x180141308 ; > @ 0x18014cf68 ; > @ 0x1801bc37c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:21:46 +0000 ; mov [rsp+arg_8], rbx ; +0x0, 0x180052b40 push rdi ; +0x5, 0x180052b45 sub rsp, 20h ; +0x6, 0x180052b46 movzx edi, dl ; +0xa, 0x180052b4a mov rbx, rcx ; +0xd, 0x180052b4d cmp dl, [rcx+16Ch] ; +0x10, 0x180052b50 jz short loc_180052BCC ; +0x16, 0x180052b56 cmp byte ptr [rcx+110h], 0 ; +0x18, 0x180052b58 mov [rcx+16Ch], dl ; +0x1f, 0x180052b5f jz short loc_180052BCC ; +0x25, 0x180052b65 mov [rsp+28h+arg_0], rsi ; +0x27, 0x180052b67 call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x180052b6c xor ecx, ecx ; +0x31, 0x180052b71 lea rsi, [rbx+160h] ; +0x33, 0x180052b73 mov rdx, [rax] ; +0x3a, 0x180052b7a test dil, dil ; +0x3d, 0x180052b7d jz short loc_180052BAC ; +0x40, 0x180052b80 test rbx, rbx ; +0x42, 0x180052b82 cmovz rsi, rcx ; +0x45, 0x180052b85 mov rcx, rax ; +0x49, 0x180052b89 call qword ptr [rdx+0C0h] ; +0x4c, 0x180052b8c mov rcx, rax; this ; +0x52, 0x180052b92 mov rdx, rsi; struct cocos2d::CCMouseDelegate * ; +0x55, 0x180052b95 mov rsi, [rsp+28h+arg_0] ; +0x58, 0x180052b98 mov rbx, [rsp+28h+arg_8] ; +0x5d, 0x180052b9d add rsp, 20h ; +0x62, 0x180052ba2 pop rdi ; +0x66, 0x180052ba6 jmp ?addDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::addDelegate(cocos2d::CCMouseDelegate *) ; +0x67, 0x180052ba7 test rbx, rbx ; +0x6c, 0x180052bac cmovz rsi, rcx ; +0x6f, 0x180052baf mov rcx, rax ; +0x73, 0x180052bb3 call qword ptr [rdx+0C0h] ; +0x76, 0x180052bb6 mov rcx, rax; this ; +0x7c, 0x180052bbc mov rdx, rsi; struct cocos2d::CCMouseDelegate * ; +0x7f, 0x180052bbf call ?removeDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::removeDelegate(cocos2d::CCMouseDelegate *) ; +0x82, 0x180052bc2 mov rsi, [rsp+28h+arg_0] ; +0x87, 0x180052bc7 mov rbx, [rsp+28h+arg_8] ; +0x8c, 0x180052bcc add rsp, 20h ; +0x91, 0x180052bd1 pop rdi ; +0x95, 0x180052bd5 retn ; +0x96, 0x180052bd6