{"type": "func", "start": 6442569808, "end": 6442570111, "name": "cocos2d::extension::CCHttpRequest::~CCHttpRequest", "pseudocode": "// \n// cocos2d::extension::CCHttpRequest::~CCHttpRequest from 0x18001d050 to 0x18001d17f (303 bytes)\n// \n// 4 xrefs:\n// > sub_18001D630 @ 0x18001d68e\n// > sub_18001D630 @ 0x18001d64c\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004af74\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\nvoid __fastcall cocos2d::extension::CCHttpRequest::~CCHttpRequest(cocos2d::extension::CCHttpRequest *this)\n{\n  cocos2d::CCObject *v2; // rcx\n  unsigned __int64 v3; // rdx\n  _QWORD *v4; // rcx\n  _QWORD *v5; // rcx\n  unsigned __int64 v6; // rdx\n  void *v7; // rcx\n\n  *(_QWORD *)this = &cocos2d::extension::CCHttpRequest::`vftable';\n  v2 = *((cocos2d::CCObject **)this + 19);\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  sub_180003630((_QWORD *)this + 22);\n  v3 = *((_QWORD *)this + 18);\n  if ( v3 > 0xF )\n  {\n    v4 = *((_QWORD **)this + 15);\n    if ( v3 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )\n        goto LABEL_19;\n      v4 = (_QWORD *)*(v4 - 1);\n    }\n    j_j_free(v4);\n  }\n  *((_QWORD *)this + 17) = 0;\n  *((_QWORD *)this + 18) = 15;\n  *((_BYTE *)this + 120) = 0;\n  v5 = *((_QWORD **)this + 12);\n  if ( v5 )\n  {\n    if ( *((_QWORD *)this + 14) - (_QWORD)v5 >= 0x1000u )\n    {\n      if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )\n        goto LABEL_19;\n      v5 = (_QWORD *)*(v5 - 1);\n    }\n    j_j_free(v5);\n    *((_QWORD *)this + 12) = 0;\n    *((_QWORD *)this + 13) = 0;\n    *((_QWORD *)this + 14) = 0;\n  }\n  v6 = *((_QWORD *)this + 11);\n  if ( v6 > 0xF )\n  {\n    v7 = *((void **)this + 8);\n    if ( v6 + 1 < 0x1000 )\n    {\nLABEL_17:\n      j_j_free(v7);\n      goto LABEL_18;\n    }\n    if ( (unsigned __int64)v7 - *((_QWORD *)v7 - 1) - 8 <= 0x1F )\n    {\n      v7 = *((void **)v7 - 1);\n      goto LABEL_17;\n    }\nLABEL_19:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_18:\n  *((_QWORD *)this + 10) = 0;\n  *((_QWORD *)this + 11) = 15;\n  *((_BYTE *)this + 64) = 0;\n  cocos2d::CCObject::~CCObject(this);\n}", "assembly": "; \n; cocos2d::extension::CCHttpRequest::~CCHttpRequest from 0x18001d050 to 0x18001d17f (303 bytes)\n; \n; 4 xrefs:\n; > sub_18001D630 @ 0x18001d68e\n; > sub_18001D630 @ 0x18001d64c\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004af74\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, 0x18001d050\npush    rdi                                                            ; +0x5, 0x18001d055\nsub     rsp, 20h                                                       ; +0x6, 0x18001d056\nmov     rbx, rcx                                                       ; +0xa, 0x18001d05a\nlea     rax, ??_7CCHttpRequest@extension@cocos2d@@6B@; const cocos2d::extension::CCHttpRequest::`vftable' ; +0xd, 0x18001d05d\nmov     [rcx], rax                                                     ; +0x14, 0x18001d064\nmov     rcx, [rcx+98h]                                                 ; +0x17, 0x18001d067\ntest    rcx, rcx                                                       ; +0x1e, 0x18001d06e\njz      short loc_18001D079                                            ; +0x21, 0x18001d071\ncall    cs:?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x23, 0x18001d073\nlea     rcx, [rbx+0B0h]                                                ; +0x29, 0x18001d079\ncall    sub_180003630                                                  ; +0x30, 0x18001d080\nmov     rdx, [rbx+90h]                                                 ; +0x35, 0x18001d085\ncmp     rdx, 0Fh                                                       ; +0x3c, 0x18001d08c\njbe     short loc_18001D0C3                                            ; +0x40, 0x18001d090\ninc     rdx                                                            ; +0x42, 0x18001d092\nmov     rcx, [rbx+78h]                                                 ; +0x45, 0x18001d095\ncmp     rdx, 1000h                                                     ; +0x49, 0x18001d099\njb      short loc_18001D0BE                                            ; +0x50, 0x18001d0a0\nadd     rdx, 27h ; '''                                                 ; +0x52, 0x18001d0a2\nmov     r8, [rcx-8]                                                    ; +0x56, 0x18001d0a6\nsub     rcx, r8                                                        ; +0x5a, 0x18001d0aa\nlea     rax, [rcx-8]                                                   ; +0x5d, 0x18001d0ad\ncmp     rax, 1Fh                                                       ; +0x61, 0x18001d0b1\nja      loc_18001D178                                                  ; +0x65, 0x18001d0b5\nmov     rcx, r8; Block                                                 ; +0x6b, 0x18001d0bb\ncall    j_j_free                                                       ; +0x6e, 0x18001d0be\nxor     edi, edi                                                       ; +0x73, 0x18001d0c3\nmov     [rbx+88h], rdi                                                 ; +0x75, 0x18001d0c5\nmov     qword ptr [rbx+90h], 0Fh                                       ; +0x7c, 0x18001d0cc\nmov     [rbx+78h], dil                                                 ; +0x87, 0x18001d0d7\nmov     rcx, [rbx+60h]                                                 ; +0x8b, 0x18001d0db\ntest    rcx, rcx                                                       ; +0x8f, 0x18001d0df\njz      short loc_18001D11D                                            ; +0x92, 0x18001d0e2\nmov     rdx, [rbx+70h]                                                 ; +0x94, 0x18001d0e4\nsub     rdx, rcx                                                       ; +0x98, 0x18001d0e8\ncmp     rdx, 1000h                                                     ; +0x9b, 0x18001d0eb\njb      short loc_18001D10C                                            ; +0xa2, 0x18001d0f2\nadd     rdx, 27h ; '''                                                 ; +0xa4, 0x18001d0f4\nmov     r8, [rcx-8]                                                    ; +0xa8, 0x18001d0f8\nsub     rcx, r8                                                        ; +0xac, 0x18001d0fc\nlea     rax, [rcx-8]                                                   ; +0xaf, 0x18001d0ff\ncmp     rax, 1Fh                                                       ; +0xb3, 0x18001d103\nja      short loc_18001D178                                            ; +0xb7, 0x18001d107\nmov     rcx, r8; Block                                                 ; +0xb9, 0x18001d109\ncall    j_j_free                                                       ; +0xbc, 0x18001d10c\nmov     [rbx+60h], rdi                                                 ; +0xc1, 0x18001d111\nmov     [rbx+68h], rdi                                                 ; +0xc5, 0x18001d115\nmov     [rbx+70h], rdi                                                 ; +0xc9, 0x18001d119\nmov     rdx, [rbx+58h]                                                 ; +0xcd, 0x18001d11d\ncmp     rdx, 0Fh                                                       ; +0xd1, 0x18001d121\njbe     short loc_18001D154                                            ; +0xd5, 0x18001d125\ninc     rdx                                                            ; +0xd7, 0x18001d127\nmov     rcx, [rbx+40h]                                                 ; +0xda, 0x18001d12a\ncmp     rdx, 1000h                                                     ; +0xde, 0x18001d12e\njb      short loc_18001D14F                                            ; +0xe5, 0x18001d135\nadd     rdx, 27h ; '''                                                 ; +0xe7, 0x18001d137\nmov     r8, [rcx-8]                                                    ; +0xeb, 0x18001d13b\nsub     rcx, r8                                                        ; +0xef, 0x18001d13f\nlea     rax, [rcx-8]                                                   ; +0xf2, 0x18001d142\ncmp     rax, 1Fh                                                       ; +0xf6, 0x18001d146\nja      short loc_18001D178                                            ; +0xfa, 0x18001d14a\nmov     rcx, r8; Block                                                 ; +0xfc, 0x18001d14c\ncall    j_j_free                                                       ; +0xff, 0x18001d14f\nmov     [rbx+50h], rdi                                                 ; +0x104, 0x18001d154\nmov     qword ptr [rbx+58h], 0Fh                                       ; +0x108, 0x18001d158\nmov     [rbx+40h], dil                                                 ; +0x110, 0x18001d160\nmov     rcx, rbx                                                       ; +0x114, 0x18001d164\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x117, 0x18001d167\nadd     rsp, 20h                                                       ; +0x11c, 0x18001d16c\npop     rdi                                                            ; +0x120, 0x18001d170\njmp     cs:__imp_??1CCObject@cocos2d@@UEAA@XZ; cocos2d::CCObject::~CCObject(void) ; +0x121, 0x18001d171\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x128, 0x18001d178\ndb 0CCh                                                                ; +0x12e, 0x18001d17e", "xrefs": ["sub_18001D630 @ 0x18001d68e", "sub_18001D630 @ 0x18001d64c", "<???> @ 0x18002fdf8", "<???> @ 0x18004af74"], "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"}