{"type": "func", "start": 6443222096, "end": 6443222258, "name": "sub_1800BC450", "pseudocode": "// \n// sub_1800BC450 from 0x1800bc450 to 0x1800bc4f2 (162 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180107050\n// > <???> @ 0x1801b906c\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\ncocos2d::CCObject *__fastcall sub_1800BC450(cocos2d::CCObject *this, char a2)\n{\n  int v3; // edi\n\n  v3 = a2 & 1;\n  if ( (a2 & 2) != 0 )\n  {\n    `eh vector destructor iterator'(\n      this,\n      0x60u,\n      *((_QWORD *)this - 1),\n      (void (*)(void *))cocos2d::CCConfiguration::~CCConfiguration);\n    if ( v3 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCObject *)((char *)this - 8);\n  }\n  else\n  {\n    this->__vftable = (cocos2d::CCObject_vtbl *)&cocos2d::CCConfiguration::`vftable';\n    cocos2d::CCObject::release(*((cocos2d::CCObject **)this + 11));\n    cocos2d::CCObject::~CCObject(this);\n    if ( v3 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_1800BC450 from 0x1800bc450 to 0x1800bc4f2 (162 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180107050\n; > <???> @ 0x1801b906c\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, 0x1800bc450\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800bc455\npush    rdi                                                            ; +0xa, 0x1800bc45a\nsub     rsp, 20h                                                       ; +0xb, 0x1800bc45b\nmov     rbx, rcx                                                       ; +0xf, 0x1800bc45f\nmov     edi, edx                                                       ; +0x12, 0x1800bc462\nand     edi, 1                                                         ; +0x14, 0x1800bc464\ntest    dl, 2                                                          ; +0x17, 0x1800bc467\njz      short loc_1800BC4B2                                            ; +0x1a, 0x1800bc46a\nlea     r9, ??1CCConfiguration@cocos2d@@UEAA@XZ; void (*)(void *)      ; +0x1c, 0x1800bc46c\nmov     r8, [rcx-8]; unsigned __int64                                  ; +0x23, 0x1800bc473\nmov     edx, 60h ; '`'; unsigned __int64                               ; +0x27, 0x1800bc477\ncall    ??_M@YAXPEAX_K1P6AX0@Z@Z; `eh vector destructor iterator'(void *,unsigned __int64,unsigned __int64,void (*)(void *)) ; +0x2c, 0x1800bc47c\ntest    edi, edi                                                       ; +0x31, 0x1800bc481\njz      short loc_1800BC49E                                            ; +0x33, 0x1800bc483\nmov     rcx, [rbx-8]                                                   ; +0x35, 0x1800bc485\nlea     rdx, [rcx+rcx*2]                                               ; +0x39, 0x1800bc489\nshl     rdx, 5                                                         ; +0x3d, 0x1800bc48d\nadd     rdx, 8                                                         ; +0x41, 0x1800bc491\nlea     rcx, [rbx-8]; Block                                            ; +0x45, 0x1800bc495\ncall    j_j_j_free_0                                                   ; +0x49, 0x1800bc499\nlea     rax, [rbx-8]                                                   ; +0x4e, 0x1800bc49e\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x52, 0x1800bc4a2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x57, 0x1800bc4a7\nadd     rsp, 20h                                                       ; +0x5c, 0x1800bc4ac\npop     rdi                                                            ; +0x60, 0x1800bc4b0\nretn                                                                   ; +0x61, 0x1800bc4b1\nlea     rax, ??_7CCConfiguration@cocos2d@@6B@; const cocos2d::CCConfiguration::`vftable' ; +0x62, 0x1800bc4b2\nmov     [rcx], rax                                                     ; +0x69, 0x1800bc4b9\nmov     rcx, [rcx+58h]; this                                           ; +0x6c, 0x1800bc4bc\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x70, 0x1800bc4c0\nmov     rcx, rbx; this                                                 ; +0x75, 0x1800bc4c5\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x78, 0x1800bc4c8\nnop                                                                    ; +0x7d, 0x1800bc4cd\ntest    edi, edi                                                       ; +0x7e, 0x1800bc4ce\njz      short loc_1800BC4DF                                            ; +0x80, 0x1800bc4d0\nmov     edx, 60h ; '`'                                                 ; +0x82, 0x1800bc4d2\nmov     rcx, rbx; Block                                                ; +0x87, 0x1800bc4d7\ncall    j_j_free_0                                                     ; +0x8a, 0x1800bc4da\nmov     rax, rbx                                                       ; +0x8f, 0x1800bc4df\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x92, 0x1800bc4e2\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x97, 0x1800bc4e7\nadd     rsp, 20h                                                       ; +0x9c, 0x1800bc4ec\npop     rdi                                                            ; +0xa0, 0x1800bc4f0\nretn                                                                   ; +0xa1, 0x1800bc4f1", "xrefs": ["<???> @ 0x180107050", "<???> @ 0x1801b906c"], "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"}