; ; cocos2d::CCMouseDispatcher::dispatchRightClick from 0x180062f00 to 0x18006306a (362 bytes) ; ; 5 xrefs: ; > cocos2d::CCEGLViewProtocol::handleRightClick @ 0x18006db8c ; > @ 0x180142abc ; > @ 0x180142b3c ; > @ 0x18014cf68 ; > @ 0x1801bd7d4 ; ; 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:51 +0000 ; mov [rsp+arg_18], rbx ; +0x0, 0x180062f00 push rdi ; +0x5, 0x180062f05 sub rsp, 40h ; +0x6, 0x180062f06 mov [rsp+48h+arg_8], rsi ; +0xa, 0x180062f0a mov rbx, rcx ; +0xf, 0x180062f0f movaps [rsp+48h+var_18], xmm6 ; +0x12, 0x180062f12 movaps xmm6, xmm2 ; +0x17, 0x180062f17 movaps [rsp+48h+var_28], xmm7 ; +0x1a, 0x180062f1a movaps xmm7, xmm1 ; +0x1f, 0x180062f1f call ?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x22, 0x180062f22 mov rcx, rax; this ; +0x27, 0x180062f27 call ?noteInput@CCDirector@cocos2d@@QEAAXXZ; cocos2d::CCDirector::noteInput(void) ; +0x2a, 0x180062f2a mov rcx, [rbx+38h]; this ; +0x2f, 0x180062f2f mov byte ptr [rbx+40h], 1 ; +0x33, 0x180062f33 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x37, 0x180062f37 xor edi, edi ; +0x3c, 0x180062f3c test eax, eax ; +0x3e, 0x180062f3e jz loc_180062FCF ; +0x40, 0x180062f40 mov rcx, [rbx+38h]; this ; +0x46, 0x180062f46 xor sil, sil ; +0x4a, 0x180062f4a mov [rsp+48h+arg_0], rbp ; +0x4d, 0x180062f4d mov ebp, edi ; +0x52, 0x180062f52 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x54, 0x180062f54 test eax, eax ; +0x59, 0x180062f59 jz short loc_180062FCA ; +0x5b, 0x180062f5b mov [rsp+48h+arg_10], r14 ; +0x5d, 0x180062f5d mov r14d, 1 ; +0x62, 0x180062f62 nop dword ptr [rax+rax+00000000h] ; +0x68, 0x180062f68 mov rcx, [rbx+38h]; this ; +0x70, 0x180062f70 call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x74, 0x180062f74 mov rcx, [rbx+38h]; this ; +0x79, 0x180062f79 mov edx, ebp ; +0x7d, 0x180062f7d not edx ; +0x7f, 0x180062f7f add edx, eax; unsigned int ; +0x81, 0x180062f81 call ?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x83, 0x180062f83 test rax, rax ; +0x88, 0x180062f88 jz short loc_180062FC5 ; +0x8b, 0x180062f8b test sil, sil ; +0x8d, 0x180062f8d jnz short loc_180062FC5 ; +0x90, 0x180062f90 mov rcx, rax; this ; +0x92, 0x180062f92 call ?getTarget@CCNotificationObserver@cocos2d@@UEAAPEAVCCObject@2@XZ; cocos2d::CCNotificationObserver::getTarget(void) ; +0x95, 0x180062f95 movaps xmm2, xmm6 ; +0x9a, 0x180062f9a movaps xmm1, xmm7 ; +0x9d, 0x180062f9d mov rcx, [rax] ; +0xa0, 0x180062fa0 mov rdx, [rcx+18h] ; +0xa3, 0x180062fa3 mov rcx, rax ; +0xa7, 0x180062fa7 call rdx ; +0xaa, 0x180062faa mov rcx, [rbx+38h]; this ; +0xac, 0x180062fac test al, al ; +0xb0, 0x180062fb0 movzx esi, sil ; +0xb2, 0x180062fb2 cmovnz esi, r14d ; +0xb6, 0x180062fb6 inc ebp ; +0xba, 0x180062fba call ?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbc, 0x180062fbc cmp ebp, eax ; +0xc1, 0x180062fc1 jb short loc_180062F70 ; +0xc3, 0x180062fc3 mov r14, [rsp+48h+arg_10] ; +0xc5, 0x180062fc5 mov rbp, [rsp+48h+arg_0] ; +0xca, 0x180062fca movaps xmm7, [rsp+48h+var_28] ; +0xcf, 0x180062fcf movaps xmm6, [rsp+48h+var_18] ; +0xd4, 0x180062fd4 mov [rbx+40h], dil ; +0xd9, 0x180062fd9 cmp [rbx+42h], dil ; +0xdd, 0x180062fdd jz short loc_180063012 ; +0xe1, 0x180062fe1 mov rcx, [rbx+50h] ; +0xe3, 0x180062fe3 mov esi, edi ; +0xe7, 0x180062fe7 mov [rbx+42h], dil ; +0xe9, 0x180062fe9 cmp [rcx], edi ; +0xed, 0x180062fed jbe short loc_18006300D ; +0xef, 0x180062fef mov rdx, [rcx+10h] ; +0xf1, 0x180062ff1 mov rcx, rbx; this ; +0xf5, 0x180062ff5 mov eax, esi ; +0xf8, 0x180062ff8 mov rdx, [rdx+rax*8]; struct cocos2d::CCMouseDelegate * ; +0xfa, 0x180062ffa call ?forceRemoveDelegate@CCMouseDispatcher@cocos2d@@QEAAXPEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseDispatcher::forceRemoveDelegate(cocos2d::CCMouseDelegate *) ; +0xfe, 0x180062ffe mov rcx, [rbx+50h]; this ; +0x103, 0x180063003 inc esi ; +0x107, 0x180063007 cmp esi, [rcx] ; +0x109, 0x180063009 jb short loc_180062FF1 ; +0x10b, 0x18006300b call ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x10d, 0x18006300d mov rsi, [rsp+48h+arg_8] ; +0x112, 0x180063012 cmp [rbx+41h], dil ; +0x117, 0x180063017 jz short loc_18006305D ; +0x11b, 0x18006301b mov rcx, [rbx+48h] ; +0x11d, 0x18006301d mov [rbx+41h], dil ; +0x121, 0x180063021 cmp [rcx], edi ; +0x125, 0x180063025 jbe short loc_180063058 ; +0x127, 0x180063027 nop dword ptr [rax+00000000h] ; +0x129, 0x180063029 mov rcx, [rcx+10h] ; +0x130, 0x180063030 mov rcx, [rcx+rdi*8]; struct cocos2d::CCMouseDelegate * ; +0x134, 0x180063034 call ?handlerWithDelegate@CCMouseHandler@cocos2d@@SAPEAV12@PEAVCCMouseDelegate@2@@Z; cocos2d::CCMouseHandler::handlerWithDelegate(cocos2d::CCMouseDelegate *) ; +0x138, 0x180063038 test rax, rax ; +0x13d, 0x18006303d jz short loc_18006304E ; +0x140, 0x180063040 mov rcx, [rbx+38h]; this ; +0x142, 0x180063042 mov rdx, rax; struct cocos2d::CCObject * ; +0x146, 0x180063046 call ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x149, 0x180063049 mov rcx, [rbx+48h]; this ; +0x14e, 0x18006304e inc edi ; +0x152, 0x180063052 cmp edi, [rcx] ; +0x154, 0x180063054 jb short loc_180063030 ; +0x156, 0x180063056 call ?_Release@_NonReentrantLock@details@Concurrency@@QEAAXXZ; Concurrency::details::_NonReentrantLock::_Release(void) ; +0x158, 0x180063058 mov rbx, [rsp+48h+arg_18] ; +0x15d, 0x18006305d mov al, 1 ; +0x162, 0x180063062 add rsp, 40h ; +0x164, 0x180063064 pop rdi ; +0x168, 0x180063068 retn ; +0x169, 0x180063069