{"type": "func", "start": 6442516752, "end": 6442516931, "name": "sub_180010110", "pseudocode": "// \n// sub_180010110 from 0x180010110 to 0x1800101c3 (179 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1800ec6d8\n// > <???> @ 0x1801b8140\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:22 +0000\n// \n\ncocos2d::CCObject *__fastcall sub_180010110(cocos2d::CCObject *this, char a2)\n{\n  _QWORD *v5; // rcx\n  _BYTE *v6; // rax\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_1800E49F8(this, 88, *((_QWORD *)this - 1), cocos2d::CCString::~CCString);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free_0((char *)this - 8);\n    return (cocos2d::CCObject *)((char *)this - 8);\n  }\n  else\n  {\n    *(_QWORD *)this = &cocos2d::CCString::`vftable';\n    v5 = (_QWORD *)((char *)this + 56);\n    v5[2] = 0;\n    v6 = v5;\n    if ( v5[3] > 0xFu )\n      v6 = (_BYTE *)*v5;\n    *v6 = 0;\n    sub_180005C70((__int64)v5);\n    cocos2d::CCObject::~CCObject(this);\n    if ( (a2 & 1) != 0 )\n      j_j_free_0(this);\n    return this;\n  }\n}", "assembly": "; \n; sub_180010110 from 0x180010110 to 0x1800101c3 (179 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1800ec6d8\n; > <???> @ 0x1801b8140\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:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180010110\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180010115\npush    rdi                                                            ; +0xa, 0x18001011a\nsub     rsp, 20h                                                       ; +0xb, 0x18001011b\nmov     esi, edx                                                       ; +0xf, 0x18001011f\nmov     rbx, rcx                                                       ; +0x11, 0x180010121\ntest    dl, 2                                                          ; +0x14, 0x180010124\njz      short loc_18001016A                                            ; +0x17, 0x180010127\nlea     r9, ??1CCString@cocos2d@@UEAA@XZ; cocos2d::CCString::~CCString(void) ; +0x19, 0x180010129\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180010130\nmov     edx, 58h ; 'X'                                                 ; +0x24, 0x180010134\ncall    sub_1800E49F8                                                  ; +0x29, 0x180010139\ntest    sil, 1                                                         ; +0x2e, 0x18001013e\njz      short loc_180010156                                            ; +0x32, 0x180010142\nimul    rdx, [rbx-8], 58h ; 'X'                                        ; +0x34, 0x180010144\nadd     rdx, 8                                                         ; +0x39, 0x180010149\nlea     rcx, [rbx-8]; Block                                            ; +0x3d, 0x18001014d\ncall    j_j_j_free_0                                                   ; +0x41, 0x180010151\nlea     rax, [rbx-8]                                                   ; +0x46, 0x180010156\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4a, 0x18001015a\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x4f, 0x18001015f\nadd     rsp, 20h                                                       ; +0x54, 0x180010164\npop     rdi                                                            ; +0x58, 0x180010168\nretn                                                                   ; +0x59, 0x180010169\nlea     rax, ??_7CCString@cocos2d@@6B@; const cocos2d::CCString::`vftable' ; +0x5a, 0x18001016a\nmov     [rcx], rax                                                     ; +0x61, 0x180010171\nadd     rcx, 38h ; '8'                                                 ; +0x64, 0x180010174\nmov     qword ptr [rcx+10h], 0                                         ; +0x68, 0x180010178\nmov     rax, rcx                                                       ; +0x70, 0x180010180\ncmp     qword ptr [rcx+18h], 0Fh                                       ; +0x73, 0x180010183\njbe     short loc_18001018D                                            ; +0x78, 0x180010188\nmov     rax, [rcx]                                                     ; +0x7a, 0x18001018a\nmov     byte ptr [rax], 0                                              ; +0x7d, 0x18001018d\ncall    sub_180005C70                                                  ; +0x80, 0x180010190\nmov     rcx, rbx; this                                                 ; +0x85, 0x180010195\ncall    ??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x88, 0x180010198\ntest    sil, 1                                                         ; +0x8d, 0x18001019d\njz      short loc_1800101B0                                            ; +0x91, 0x1800101a1\nmov     edx, 58h ; 'X'                                                 ; +0x93, 0x1800101a3\nmov     rcx, rbx; Block                                                ; +0x98, 0x1800101a8\ncall    j_j_free_0                                                     ; +0x9b, 0x1800101ab\nmov     rax, rbx                                                       ; +0xa0, 0x1800101b0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa3, 0x1800101b3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xa8, 0x1800101b8\nadd     rsp, 20h                                                       ; +0xad, 0x1800101bd\npop     rdi                                                            ; +0xb1, 0x1800101c1\nretn                                                                   ; +0xb2, 0x1800101c2", "xrefs": ["<???> @ 0x1800ec6d8", "<???> @ 0x1801b8140"], "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"}