{"type": "func", "start": 6442552960, "end": 6442553160, "name": "sub_180018E80", "pseudocode": "// \n// sub_180018E80 from 0x180018e80 to 0x180018f48 (200 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x18002b5b0\n// > <???> @ 0x18004cb18\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 12:15:42 +0000\n// \n\n// Hidden C++ exception states: #wind=1\ncocos2d::CCObject *__fastcall sub_180018E80(cocos2d::CCObject *Block, char a2)\n{\n  cocos2d::CCObject *v5; // rcx\n\n  if ( (a2 & 2) != 0 )\n  {\n    sub_18001F0B0(Block, 160, *((_QWORD *)Block - 1), cocos2d::extension::CCHttpResponse::~CCHttpResponse);\n    if ( (a2 & 1) != 0 )\n      j_j_j_free((char *)Block - 8);\n    return (cocos2d::CCObject *)((char *)Block - 8);\n  }\n  else\n  {\n    *(_QWORD *)Block = &cocos2d::extension::CCHttpResponse::`vftable';\n    v5 = *((cocos2d::CCObject **)Block + 7);\n    if ( v5 )\n      cocos2d::CCObject::release(v5);\n    sub_180003700((__int64)Block + 128);\n    sub_180018F50((char *)Block + 96);\n    sub_180018F50((char *)Block + 72);\n    cocos2d::CCObject::~CCObject(Block);\n    if ( (a2 & 1) != 0 )\n      j_j_free(Block);\n    return Block;\n  }\n}", "assembly": "; \n; sub_180018E80 from 0x180018e80 to 0x180018f48 (200 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x18002b5b0\n; > <???> @ 0x18004cb18\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 12:15:42 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180018e80\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x180018e85\npush    rdi                                                            ; +0xa, 0x180018e8a\nsub     rsp, 20h                                                       ; +0xb, 0x180018e8b\nmov     esi, edx                                                       ; +0xf, 0x180018e8f\nmov     rbx, rcx                                                       ; +0x11, 0x180018e91\ntest    dl, 2                                                          ; +0x14, 0x180018e94\njz      short loc_180018EE1                                            ; +0x17, 0x180018e97\nlea     r9, ??1CCHttpResponse@extension@cocos2d@@UEAA@XZ; cocos2d::extension::CCHttpResponse::~CCHttpResponse(void) ; +0x19, 0x180018e99\nmov     r8, [rcx-8]                                                    ; +0x20, 0x180018ea0\nmov     edx, 0A0h                                                      ; +0x24, 0x180018ea4\ncall    sub_18001F0B0                                                  ; +0x29, 0x180018ea9\ntest    sil, 1                                                         ; +0x2e, 0x180018eae\njz      short loc_180018ECD                                            ; +0x32, 0x180018eb2\nmov     rcx, [rbx-8]                                                   ; +0x34, 0x180018eb4\nlea     rdx, [rcx+rcx*4]                                               ; +0x38, 0x180018eb8\nshl     rdx, 5                                                         ; +0x3c, 0x180018ebc\nadd     rdx, 8                                                         ; +0x40, 0x180018ec0\nlea     rcx, [rbx-8]; Block                                            ; +0x44, 0x180018ec4\ncall    j_j_j_free                                                     ; +0x48, 0x180018ec8\nlea     rax, [rbx-8]                                                   ; +0x4d, 0x180018ecd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x180018ed1\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x56, 0x180018ed6\nadd     rsp, 20h                                                       ; +0x5b, 0x180018edb\npop     rdi                                                            ; +0x5f, 0x180018edf\nretn                                                                   ; +0x60, 0x180018ee0\nlea     rax, ??_7CCHttpResponse@extension@cocos2d@@6B@; const cocos2d::extension::CCHttpResponse::`vftable' ; +0x61, 0x180018ee1\nmov     [rcx], rax                                                     ; +0x68, 0x180018ee8\nmov     rcx, [rcx+38h]                                                 ; +0x6b, 0x180018eeb\ntest    rcx, rcx                                                       ; +0x6f, 0x180018eef\njz      short loc_180018EFA                                            ; +0x72, 0x180018ef2\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x74, 0x180018ef4\nlea     rcx, [rbx+80h]                                                 ; +0x7a, 0x180018efa\ncall    sub_180003700                                                  ; +0x81, 0x180018f01\nlea     rcx, [rbx+60h]                                                 ; +0x86, 0x180018f06\ncall    sub_180018F50                                                  ; +0x8a, 0x180018f0a\nlea     rcx, [rbx+48h]                                                 ; +0x8f, 0x180018f0f\ncall    sub_180018F50                                                  ; +0x93, 0x180018f13\nmov     rcx, rbx                                                       ; +0x98, 0x180018f18\ncall    cs:__imp_??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x9b, 0x180018f1b\nnop                                                                    ; +0xa1, 0x180018f21\ntest    sil, 1                                                         ; +0xa2, 0x180018f22\njz      short loc_180018F35                                            ; +0xa6, 0x180018f26\nmov     edx, 0A0h                                                      ; +0xa8, 0x180018f28\nmov     rcx, rbx; Block                                                ; +0xad, 0x180018f2d\ncall    j_j_free                                                       ; +0xb0, 0x180018f30\nmov     rax, rbx                                                       ; +0xb5, 0x180018f35\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb8, 0x180018f38\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xbd, 0x180018f3d\nadd     rsp, 20h                                                       ; +0xc2, 0x180018f42\npop     rdi                                                            ; +0xc6, 0x180018f46\nretn                                                                   ; +0xc7, 0x180018f47", "xrefs": ["<???> @ 0x18002b5b0", "<???> @ 0x18004cb18"], "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"}