{"type": "func", "start": 6442642432, "end": 6442642626, "name": "sub_18002EC00", "pseudocode": "// \n// sub_18002EC00 from 0x18002ec00 to 0x18002ecc2 (194 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCCallFunc::create @ 0x18002fa04\n// > cocos2d::CCCallFunc::create @ 0x18002f9f0\n// > <???> @ 0x1800e9108\n// > <???> @ 0x1801affa0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCAction *__fastcall sub_18002EC00(cocos2d::CCAction *this, char a2)\n{\n  struct cocos2d::CCScriptEngineManager *v5; // rax\n  cocos2d::CCObject *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x70u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCCallFunc::~CCCallFunc);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCAction *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCCallFunc::`vftable';\n    if ( *((_DWORD *)this + 24) )\n    {\n      v5 = cocos2d::CCScriptEngineManager::sharedManager();\n      (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)v5 + 24LL))(*(_QWORD *)v5, *((unsigned int *)this + 24));\n    }\n    v6 = *((cocos2d::CCObject **)this + 11);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    this->__vftable = (cocos2d::CCAction_vtbl *)&cocos2d::CCFiniteTimeAction::`vftable';\n    cocos2d::CCAction::~CCAction(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_18002EC00 from 0x18002ec00 to 0x18002ecc2 (194 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCCallFunc::create @ 0x18002fa04\n; > cocos2d::CCCallFunc::create @ 0x18002f9f0\n; > <???> @ 0x1800e9108\n; > <???> @ 0x1801affa0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18002ec00\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18002ec05\npush    rdi                                                            ; +0xa, 0x18002ec0a\nsub     rsp, 20h                                                       ; +0xb, 0x18002ec0b\nmov     esi, edx                                                       ; +0xf, 0x18002ec0f\nmov     rbx, rcx                                                       ; +0x11, 0x18002ec11\ntest    dl, 2                                                          ; +0x14, 0x18002ec14\njz      short loc_18002EC5A                                            ; +0x17, 0x18002ec17\nlea     r9, ??1CCCallFunc@cocos2d@@UEAA@XZ; void (*)(void *)           ; +0x19, 0x18002ec19\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x20, 0x18002ec20\nmov     edx, 70h ; 'p'; unsigned __int64                               ; +0x24, 0x18002ec24\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x29, 0x18002ec29\ntest    sil, 1                                                         ; +0x2e, 0x18002ec2e\njz      short loc_18002EC46                                            ; +0x32, 0x18002ec32\nimul    rdx, [rbx-8], 70h ; 'p'                                        ; +0x34, 0x18002ec34\nadd     rdx, 8                                                         ; +0x39, 0x18002ec39\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18002ec3d\ncall    j_j_j_free_0                                                   ; +0x41, 0x18002ec41\nlea     rax, [rbx-8]                                                   ; +0x46, 0x18002ec46\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18002ec4a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18002ec4f\nadd     rsp, 20h                                                       ; +0x54, 0x18002ec54\npop     rdi                                                            ; +0x58, 0x18002ec58\nretn                                                                   ; +0x59, 0x18002ec59\nlea     rax, ??_7CCCallFunc@cocos2d@@6B@; const cocos2d::CCCallFunc::`vftable' ; +0x5a, 0x18002ec5a\nmov     [rcx], rax                                                     ; +0x61, 0x18002ec61\ncmp     dword ptr [rcx+60h], 0                                         ; +0x64, 0x18002ec64\njz      short loc_18002EC7B                                            ; +0x68, 0x18002ec68\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x6a, 0x18002ec6a\nmov     rcx, [rax]                                                     ; +0x6f, 0x18002ec6f\nmov     rax, [rcx]                                                     ; +0x72, 0x18002ec72\nmov     edx, [rbx+60h]                                                 ; +0x75, 0x18002ec75\ncall    qword ptr [rax+18h]                                            ; +0x78, 0x18002ec78\nmov     rcx, [rbx+58h]; this                                           ; +0x7b, 0x18002ec7b\ntest    rcx, rcx                                                       ; +0x7f, 0x18002ec7f\njz      short loc_18002EC89                                            ; +0x82, 0x18002ec82\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x84, 0x18002ec84\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x89, 0x18002ec89\nmov     [rbx], rax                                                     ; +0x90, 0x18002ec90\nmov     rcx, rbx; this                                                 ; +0x93, 0x18002ec93\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x96, 0x18002ec96\nnop                                                                    ; +0x9b, 0x18002ec9b\ntest    sil, 1                                                         ; +0x9c, 0x18002ec9c\njz      short loc_18002ECAF                                            ; +0xa0, 0x18002eca0\nmov     edx, 70h ; 'p'                                                 ; +0xa2, 0x18002eca2\nmov     rcx, rbx; Block                                                ; +0xa7, 0x18002eca7\ncall    j_j_free_0                                                     ; +0xaa, 0x18002ecaa\nmov     rax, rbx                                                       ; +0xaf, 0x18002ecaf\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb2, 0x18002ecb2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb7, 0x18002ecb7\nadd     rsp, 20h                                                       ; +0xbc, 0x18002ecbc\npop     rdi                                                            ; +0xc0, 0x18002ecc0\nretn                                                                   ; +0xc1, 0x18002ecc1", "xrefs": ["cocos2d::CCCallFunc::create @ 0x18002fa04", "cocos2d::CCCallFunc::create @ 0x18002f9f0", "<???> @ 0x1800e9108", "<???> @ 0x1801affa0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}