// // cocos2d::extension::CCControl::sendActionsForControlEvents from 0x10033d090 to 0x10033d278 (488 bytes) // // 10 xrefs: // > @ 0x100b1d8a8 // > @ 0x100b1dfa0 // > @ 0x100b1e7e8 // > @ 0x100b1eee8 // > @ 0x100b1fe98 // > @ 0x100b23640 // > @ 0x100b2d120 // > @ 0x100b2f658 // > @ 0x100b30ef8 // > @ 0x100b52688 // // 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 12:28:42 +0000 // __int64 __fastcall cocos2d::extension::CCControl::sendActionsForControlEvents(__int64 a1, int a2) { unsigned int v4; // r15d _DWORD *v5; // r13 _QWORD *v6; // rax __int64 result; // rax __int64 v8; // rdi __int64 v9; // r12 __int64 v10; // rax __int64 v11; // rcx __int64 v12; // r13 _QWORD *v13; // r12 unsigned __int64 v14; // r13 __int64 v15; // rcx unsigned int v16; // r13d __int64 v17; // r12 __int64 v18; // rax _WORD v19[8]; // [rsp+8h] [rbp-58h] BYREF void *__p; // [rsp+18h] [rbp-48h] __int64 (__fastcall **v21)(); // [rsp+20h] [rbp-40h] int v22; // [rsp+28h] [rbp-38h] unsigned int v23; // [rsp+2Ch] [rbp-34h] __int64 *v24; // [rsp+30h] [rbp-30h] v24 = (__int64 *)(a1 + 456); v4 = 0; v21 = off_100ABB920; do { result = (unsigned int)(1 << v4); if ( !_bittest(&a2, v4) ) goto LABEL_3; v8 = *(_QWORD *)(a1 + 440); v22 = 1 << v4; v9 = (unsigned int)result; v10 = cocos2d::CCDictionary::objectForKey_1(v8, (unsigned int)result); if ( v10 ) { result = *(_QWORD *)(v10 + 56); v11 = *(unsigned int *)result; if ( !*(_DWORD *)result ) goto LABEL_13; } else { v12 = sub_1007FEC20(1); result = cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 440), v12, v9); if ( !v12 ) goto LABEL_13; result = *(_QWORD *)(v12 + 56); v11 = *(unsigned int *)result; if ( !*(_DWORD *)result ) goto LABEL_13; } v13 = *(_QWORD **)(result + 16); v14 = (unsigned __int64)&v13[v11 - 1]; do { if ( !*v13 ) break; result = cocos2d::extension::CCInvocation::invoke(*v13++, a1); } while ( (unsigned __int64)v13 <= v14 ); LABEL_13: if ( *(_DWORD *)(a1 + 300) ) { result = (__int64)v24; v15 = *v24; if ( *v24 ) { result = (__int64)v24; do { if ( *(_DWORD *)(v15 + 28) >= a2 ) result = v15; v15 = *(_QWORD *)(v15 + 8LL * (*(_DWORD *)(v15 + 28) < a2)); } while ( v15 ); if ( (__int64 *)result != v24 && *(_DWORD *)(result + 28) <= a2 ) { v16 = *(_DWORD *)(result + 32); if ( v16 != -1 ) { v17 = sub_1007FEC20(3); v19[0] = 0; v18 = sub_10088E600(v19); sub_1007FEBF0(v17, v18); v23 = v16; if ( (v19[0] & 1) != 0 ) operator delete(__p); sub_1007FEBF0(v17, a1); v5 = operator new(0x40u); cocos2d::CCObject::CCObject(v5); *(_QWORD *)v5 = v21; v5[14] = v22; cocos2d::CCObject::autorelease(v5); sub_1007FEBF0(v17, v5); v6 = cocos2d::CCScriptEngineManager::sharedManager(); result = (*(__int64 (__fastcall **)(_QWORD, _QWORD, __int64))(*(_QWORD *)*v6 + 152LL))(*v6, v23, v17); } } } } LABEL_3: ++v4; } while ( v4 != 9 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source