// // cocos2d::CCActionManager::addAction from 0x180037ff0 to 0x18003853f (1359 bytes) // // 3 xrefs: // > cocos2d::CCNode::runAction @ 0x18000491e // > @ 0x18014cf68 // > @ 0x1801bac90 // // 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:36 +0000 // void __fastcall cocos2d::CCActionManager::addAction( cocos2d::CCActionManager *this, struct cocos2d::CCAction *a2, struct cocos2d::CCNode *a3, char a4) { __int64 v4; // r10 struct cocos2d::CCAction *v7; // rsi __int64 v9; // r9 int v10; // r8d unsigned int v11; // edx unsigned int v12; // ecx int v13; // r8d unsigned int v14; // edx unsigned int v15; // ecx int v16; // r8d __int64 v17; // r14 __int64 v18; // rcx _QWORD *v19; // r14 __int64 v20; // rax int v21; // ebp void ***v22; // rsi __int64 v23; // rax __int64 v24; // rbx _OWORD *v25; // rcx void **v26; // rbx void *v27; // rcx void **v28; // rcx int v29; // edx unsigned int v30; // r13d unsigned int v31; // ebx int v32; // edx unsigned int v33; // r13d unsigned int v34; // ebx int v35; // edx unsigned int v36; // ebx __int64 v37; // rdx __int64 v38; // r8 __int64 v39; // rcx __int64 v40; // rcx char *v41; // rax char *v42; // r15 void **v43; // rdi unsigned int v44; // ebx unsigned int v45; // r11d void **i; // rax __int64 v47; // r9 __int64 v48; // r10 __int64 v49; // r8 __int64 v50; // rax void **v51; // rcx int v53; // [rsp+70h] [rbp+18h] v53 = (int)a3; v4 = *((_QWORD *)this + 7); v7 = a2; if ( !v4 ) goto LABEL_8; v9 = *(_QWORD *)(v4 + 40); v10 = (((BYTE1(a3) + ((BYTE2(a3) + (BYTE3(a3) << 8)) << 8)) << 8) + (unsigned __int8)a3 + 17973517) ^ 0x7F76D; v11 = (((((BYTE1(v53) + ((BYTE2(v53) + (HIBYTE(v53) << 8)) << 8)) << 8) + (unsigned __int8)a3 + 17973517) ^ 0x7F76D) << 8) ^ (-1622558010 - v10); v12 = (v11 >> 13) ^ (-17973517 - v11 - v10); v13 = (v12 >> 12) ^ (v10 - v12 - v11); v14 = (v13 << 16) ^ (v11 - v12 - v13); v15 = (v14 >> 5) ^ (v12 - v14 - v13); v16 = (v15 >> 3) ^ (v13 - v15 - v14); v17 = *(_QWORD *)(*(_QWORD *)v9 + 16 * ((unsigned int)(*(_DWORD *)(v9 + 8) - 1) & (((unsigned __int64)((v16 << 10) ^ (v14 - v16 - v15)) >> 15) ^ (v15 - ((v16 << 10) ^ (v14 - v16 - v15)) - v16)))); if ( !v17 || (v18 = *(_QWORD *)(v9 + 32), (v19 = (_QWORD *)(v17 - v18)) == nullptr) ) { LABEL_8: v19 = calloc(0x60u, 1u); *((_BYTE *)v19 + 33) = a4; cocos2d::CCObject::retain(a3); v21 = 0; v22 = (void ***)(v19 + 5); v19[1] = a3; v19[7] = 0; v19[10] = v19 + 1; *((_DWORD *)v19 + 22) = 4; v23 = *((_QWORD *)this + 7); if ( v23 ) { *(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v23 + 40) + 24LL) + 16LL) = v19; v19[6] = *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 24LL) - *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 32LL); *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 24LL) = v22; } else { *((_QWORD *)this + 7) = v19; v19[6] = 0; v24 = *((_QWORD *)this + 7); *(_QWORD *)(v24 + 40) = malloc(0x40u); v25 = *(_OWORD **)(*((_QWORD *)this + 7) + 40LL); if ( !v25 ) goto LABEL_18; *v25 = 0; v25[1] = 0; v25[2] = 0; v25[3] = 0; *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 24LL) = *((_QWORD *)this + 7) + 40LL; *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 8LL) = 32; *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 12LL) = 5; *(_QWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 32LL) = 40; v26 = *(void ***)(*((_QWORD *)this + 7) + 40LL); *v26 = malloc(0x200u); v27 = **(void ***)(*((_QWORD *)this + 7) + 40LL); if ( !v27 ) LABEL_18: exit(-1); memset(v27, 0, 0x200u); *(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 56LL) = -1609490463; } ++*(_DWORD *)(*(_QWORD *)(*((_QWORD *)this + 7) + 40LL) + 16LL); v28 = *(void ***)(*((_QWORD *)this + 7) + 40LL); *((_DWORD *)v19 + 23) = -17973517; *v22 = v28; v29 = (((*((unsigned __int8 *)v19 + 9) + ((*((unsigned __int8 *)v19 + 10) + (*((unsigned __int8 *)v19 + 11) << 8)) << 8)) << 8) + *((unsigned __int8 *)v19 + 8) + 17973517) ^ 0x7F76D; v30 = (v29 << 8) ^ (-1622558010 - v29); v31 = (v30 >> 13) ^ (-17973517 - v30 - v29); v32 = (v31 >> 12) ^ (v29 - v31 - v30); v33 = (v32 << 16) ^ (v30 - v32 - v31); v34 = (v33 >> 5) ^ (v31 - v33 - v32); v35 = (v34 >> 3) ^ (v32 - v34 - v33); v36 = (((v35 << 10) ^ (v33 - v35 - v34)) >> 15) ^ (v34 - ((v35 << 10) ^ (v33 - v35 - v34)) - v35); *((_DWORD *)v19 + 23) = v36; v37 = *(_QWORD *)(*((_QWORD *)this + 7) + 40LL); v38 = 16LL * (v36 & (*(_DWORD *)(v37 + 8) - 1)); ++*(_DWORD *)(*(_QWORD *)v37 + v38 + 8); v19[9] = *(_QWORD *)(v38 + **(_QWORD **)(*((_QWORD *)this + 7) + 40LL)); v19[8] = 0; v39 = *(_QWORD *)(v38 + **(_QWORD **)(*((_QWORD *)this + 7) + 40LL)); if ( v39 ) *(_QWORD *)(v39 + 24) = v22; *(_QWORD *)(v38 + **(_QWORD **)(*((_QWORD *)this + 7) + 40LL)) = v22; v40 = **(_QWORD **)(*((_QWORD *)this + 7) + 40LL); if ( *(_DWORD *)(v40 + v38 + 8) >= (unsigned int)(10 * (*(_DWORD *)(v40 + v38 + 12) + 1)) && *((_DWORD *)*v22 + 13) != 1 ) { v41 = (char *)malloc(16LL * (unsigned int)(2 * *((_DWORD *)*v22 + 2))); v42 = v41; if ( !v41 ) goto LABEL_18; v43 = *v22; v44 = 2 * *((_DWORD *)*v22 + 2); memset(v41, 0, 16LL * v44); v45 = 0; *((_DWORD *)v43 + 10) = (((v44 - 1) & (_DWORD)v43[2]) != 0) + (*((_DWORD *)v43 + 4) >> (*((_BYTE *)v43 + 12) + 1)); *((_DWORD *)*v22 + 11) = 0; for ( i = *v22; v45 < *((_DWORD *)*v22 + 2); ++v45 ) { v47 = *((_QWORD *)*i + 2 * v45); if ( v47 ) { do { v48 = *(_QWORD *)(v47 + 32); v49 = 16LL * (*(_DWORD *)(v47 + 52) & (unsigned int)(2 * *((_DWORD *)*v22 + 2) - 1)); if ( ++*(_DWORD *)&v42[v49 + 8] > *((_DWORD *)*v22 + 10) ) { ++*((_DWORD *)*v22 + 11); *(_DWORD *)&v42[v49 + 12] = *(_DWORD *)&v42[v49 + 8] / *((_DWORD *)*v22 + 10); } *(_QWORD *)(v47 + 24) = 0; *(_QWORD *)(v47 + 32) = *(_QWORD *)&v42[v49]; v50 = *(_QWORD *)&v42[v49]; if ( v50 ) *(_QWORD *)(v50 + 24) = v47; *(_QWORD *)&v42[v49] = v47; v47 = v48; } while ( v48 ); } i = *v22; } free(*i); *((_DWORD *)*v22 + 2) *= 2; ++*((_DWORD *)*v22 + 3); **v22 = v42; v51 = *v22; if ( *((_DWORD *)*v22 + 11) > *((_DWORD *)*v22 + 4) >> 1 ) v21 = *((_DWORD *)v51 + 12) + 1; *((_DWORD *)v51 + 12) = v21; if ( *((_DWORD *)*v22 + 12) > 1u ) *((_DWORD *)*v22 + 13) = 1; } v7 = a2; goto LABEL_32; } while ( *((_DWORD *)v19 + 22) != 4 || *(_DWORD *)v19[10] != (_DWORD)a3 ) { v20 = v19[9]; if ( v20 ) { v19 = (_QWORD *)(v20 - v18); if ( v20 != v18 ) continue; } goto LABEL_8; } LABEL_32: if ( *v19 ) { if ( *(_DWORD *)*v19 == *(_DWORD *)(*v19 + 4LL) ) sub_1800A14A0(); } else { *v19 = sub_1800A1920(4u); } sub_1800A1470(*v19, v7); sub_1800A1270(*v19, v7); (*(void (__fastcall **)(struct cocos2d::CCAction *, struct cocos2d::CCNode *))(*(_QWORD *)v7 + 80LL))(v7, a3); }
GD Web Decomp Icon

GD Web Decomp

Raw Source