{"type": "func", "start": 6442644272, "end": 6442644466, "name": "sub_18002F330", "pseudocode": "// \n// sub_18002F330 from 0x18002f330 to 0x18002f3f2 (194 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCCallFunc::create @ 0x180030144\n// > cocos2d::CCCallFunc::create @ 0x180030130\n// > <???> @ 0x1800ef170\n// > <???> @ 0x1801ba0b4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:33 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCAction *__fastcall sub_18002F330(cocos2d::CCObject **this, char a2)\n{\n  struct cocos2d::CCScriptEngineManager *v5; // rax\n  cocos2d::CCObject *v6; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 112, *(this - 1), cocos2d::CCCallFunc::~CCCallFunc);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0(this - 1);\n    return (cocos2d::CCAction *)(this - 1);\n  }\n  else\n  {\n    *this = (cocos2d::CCObject *)&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 = *(this + 11);\n    if ( v6 )\n      cocos2d::CCObject::release(v6);\n    *this = (cocos2d::CCObject *)&cocos2d::CCFiniteTimeAction::`vftable';\n    cocos2d::CCAction::~CCAction((cocos2d::CCAction *)this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return (cocos2d::CCAction *)this;\n  }\n}", "assembly": "; \n; sub_18002F330 from 0x18002f330 to 0x18002f3f2 (194 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCCallFunc::create @ 0x180030144\n; > cocos2d::CCCallFunc::create @ 0x180030130\n; > <???> @ 0x1800ef170\n; > <???> @ 0x1801ba0b4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:33 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18002f330\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18002f335\npush    rdi                                                            ; +0xa, 0x18002f33a\nsub     rsp, 20h                                                       ; +0xb, 0x18002f33b\nmov     esi, edx                                                       ; +0xf, 0x18002f33f\nmov     rbx, rcx                                                       ; +0x11, 0x18002f341\ntest    dl, 2                                                          ; +0x14, 0x18002f344\njz      short loc_18002F38A                                            ; +0x17, 0x18002f347\nlea     r9, ??1CCCallFunc@cocos2d@@UEAA@XZ; cocos2d::CCCallFunc::~CCCallFunc(void) ; +0x19, 0x18002f349\nmov     r8, [rcx-8]                                                    ; +0x20, 0x18002f350\nmov     edx, 70h ; 'p'                                                 ; +0x24, 0x18002f354\ncall    sub_1800E49F8                                                  ; +0x29, 0x18002f359\ntest    sil, 1                                                         ; +0x2e, 0x18002f35e\njz      short loc_18002F376                                            ; +0x32, 0x18002f362\nimul    rdx, [rbx-8], 70h ; 'p'                                        ; +0x34, 0x18002f364\nadd     rdx, 8                                                         ; +0x39, 0x18002f369\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18002f36d\ncall    j_j_j_free_0                                                   ; +0x41, 0x18002f371\nlea     rax, [rbx-8]                                                   ; +0x46, 0x18002f376\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18002f37a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18002f37f\nadd     rsp, 20h                                                       ; +0x54, 0x18002f384\npop     rdi                                                            ; +0x58, 0x18002f388\nretn                                                                   ; +0x59, 0x18002f389\nlea     rax, ??_7CCCallFunc@cocos2d@@6B@; const cocos2d::CCCallFunc::`vftable' ; +0x5a, 0x18002f38a\nmov     [rcx], rax                                                     ; +0x61, 0x18002f391\ncmp     dword ptr [rcx+60h], 0                                         ; +0x64, 0x18002f394\njz      short loc_18002F3AB                                            ; +0x68, 0x18002f398\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x6a, 0x18002f39a\nmov     rcx, [rax]                                                     ; +0x6f, 0x18002f39f\nmov     rax, [rcx]                                                     ; +0x72, 0x18002f3a2\nmov     edx, [rbx+60h]                                                 ; +0x75, 0x18002f3a5\ncall    qword ptr [rax+18h]                                            ; +0x78, 0x18002f3a8\nmov     rcx, [rbx+58h]; this                                           ; +0x7b, 0x18002f3ab\ntest    rcx, rcx                                                       ; +0x7f, 0x18002f3af\njz      short loc_18002F3B9                                            ; +0x82, 0x18002f3b2\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x84, 0x18002f3b4\nlea     rax, ??_7CCFiniteTimeAction@cocos2d@@6B@; const cocos2d::CCFiniteTimeAction::`vftable' ; +0x89, 0x18002f3b9\nmov     [rbx], rax                                                     ; +0x90, 0x18002f3c0\nmov     rcx, rbx; this                                                 ; +0x93, 0x18002f3c3\ncall    ??1CCAction@cocos2d@@UEAA@XZ; cocos2d::CCAction::~CCAction(void) ; +0x96, 0x18002f3c6\nnop                                                                    ; +0x9b, 0x18002f3cb\ntest    sil, 1                                                         ; +0x9c, 0x18002f3cc\njz      short loc_18002F3DF                                            ; +0xa0, 0x18002f3d0\nmov     edx, 70h ; 'p'                                                 ; +0xa2, 0x18002f3d2\nmov     rcx, rbx; Block                                                ; +0xa7, 0x18002f3d7\ncall    j_j_free_0                                                     ; +0xaa, 0x18002f3da\nmov     rax, rbx                                                       ; +0xaf, 0x18002f3df\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb2, 0x18002f3e2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xb7, 0x18002f3e7\nadd     rsp, 20h                                                       ; +0xbc, 0x18002f3ec\npop     rdi                                                            ; +0xc0, 0x18002f3f0\nretn                                                                   ; +0xc1, 0x18002f3f1", "xrefs": ["cocos2d::CCCallFunc::create @ 0x180030144", "cocos2d::CCCallFunc::create @ 0x180030130", "<???> @ 0x1800ef170", "<???> @ 0x1801ba0b4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}