{"type": "func", "start": 6442920944, "end": 6442921175, "name": "cocos2d::CCApplication::~CCApplication", "pseudocode": "// \n// cocos2d::CCApplication::~CCApplication from 0x180072bf0 to 0x180072cd7 (231 bytes)\n// \n// 4 xrefs:\n// > sub_180072CF0 @ 0x180072d4e\n// > sub_180072CF0 @ 0x180072d0c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b43bc\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::CCApplication::~CCApplication(cocos2d::CCApplication *this)\n{\n  unsigned __int64 v2; // rdx\n  _QWORD *v3; // rcx\n  std::size_t m_capacity; // rdx\n  char *m_bigStorage; // rcx\n\n  this->__vftable = (cocos2d::CCApplication_vtbl *)&cocos2d::CCApplication::`vftable';\n  cocos2d::CCApplication::sm_pSharedApplication = nullptr;\n  j_j_free_0(*((void **)this + 13));\n  j_j_free_0(*((void **)this + 14));\n  v2 = *((_QWORD *)this + 12);\n  if ( v2 > 0xF )\n  {\n    v3 = *((_QWORD **)this + 9);\n    if ( v2 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v3 - *(v3 - 1) - 8 > 0x1F )\n        goto LABEL_12;\n      v3 = (_QWORD *)*(v3 - 1);\n    }\n    j_j_free_0(v3);\n  }\n  *((_QWORD *)this + 11) = 0;\n  *((_QWORD *)this + 12) = 15;\n  *((_BYTE *)this + 72) = 0;\n  m_capacity = this->m_startupScriptFilename.m_data.m_capacity;\n  if ( m_capacity > 0xF )\n  {\n    m_bigStorage = this->m_startupScriptFilename.m_data.m_bigStorage;\n    if ( m_capacity + 1 < 0x1000 )\n    {\nLABEL_10:\n      j_j_free_0(m_bigStorage);\n      goto LABEL_11;\n    }\n    if ( (unsigned __int64)&m_bigStorage[-*((_QWORD *)m_bigStorage - 1) - 8] <= 0x1F )\n    {\n      m_bigStorage = *((char **)m_bigStorage - 1);\n      goto LABEL_10;\n    }\nLABEL_12:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_11:\n  this->m_startupScriptFilename.m_data.m_size = 0;\n  this->m_startupScriptFilename.m_data.m_capacity = 15;\n  this->m_startupScriptFilename.m_data.m_smallStorage._Elems[0] = 0;\n  this->__vftable = (cocos2d::CCApplication_vtbl *)&cocos2d::CCApplicationProtocol::`vftable';\n}", "assembly": "; \n; cocos2d::CCApplication::~CCApplication from 0x180072bf0 to 0x180072cd7 (231 bytes)\n; \n; 4 xrefs:\n; > sub_180072CF0 @ 0x180072d4e\n; > sub_180072CF0 @ 0x180072d0c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b43bc\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\npush    rbx                                                            ; +0x0, 0x180072bf0\nsub     rsp, 20h                                                       ; +0x2, 0x180072bf2\nlea     rax, ??_7CCApplication@cocos2d@@6B@; const cocos2d::CCApplication::`vftable' ; +0x6, 0x180072bf6\nmov     rbx, rcx                                                       ; +0xd, 0x180072bfd\nmov     [rcx], rax                                                     ; +0x10, 0x180072c00\nmov     edx, 2Ch ; ','                                                 ; +0x13, 0x180072c03\nmov     cs:?sm_pSharedApplication@CCApplication@cocos2d@@1PEAV12@EA, 0; cocos2d::CCApplication * cocos2d::CCApplication::sm_pSharedApplication ; +0x18, 0x180072c08\nmov     rcx, [rcx+68h]; Block                                          ; +0x23, 0x180072c13\ncall    j_j_free_0                                                     ; +0x27, 0x180072c17\nmov     rcx, [rbx+70h]; Block                                          ; +0x2c, 0x180072c1c\nmov     edx, 2Ch ; ','                                                 ; +0x30, 0x180072c20\ncall    j_j_free_0                                                     ; +0x35, 0x180072c25\nmov     rdx, [rbx+60h]                                                 ; +0x3a, 0x180072c2a\ncmp     rdx, 0Fh                                                       ; +0x3e, 0x180072c2e\njbe     short loc_180072C61                                            ; +0x42, 0x180072c32\nmov     rcx, [rbx+48h]                                                 ; +0x44, 0x180072c34\ninc     rdx                                                            ; +0x48, 0x180072c38\ncmp     rdx, 1000h                                                     ; +0x4b, 0x180072c3b\njb      short loc_180072C5C                                            ; +0x52, 0x180072c42\nmov     r8, [rcx-8]                                                    ; +0x54, 0x180072c44\nadd     rdx, 27h ; '''                                                 ; +0x58, 0x180072c48\nsub     rcx, r8                                                        ; +0x5c, 0x180072c4c\nlea     rax, [rcx-8]                                                   ; +0x5f, 0x180072c4f\ncmp     rax, 1Fh                                                       ; +0x63, 0x180072c53\nja      short loc_180072CD0                                            ; +0x67, 0x180072c57\nmov     rcx, r8; Block                                                 ; +0x69, 0x180072c59\ncall    j_j_free_0                                                     ; +0x6c, 0x180072c5c\nmov     qword ptr [rbx+58h], 0                                         ; +0x71, 0x180072c61\nmov     qword ptr [rbx+60h], 0Fh                                       ; +0x79, 0x180072c69\nmov     byte ptr [rbx+48h], 0                                          ; +0x81, 0x180072c71\nmov     rdx, [rbx+40h]                                                 ; +0x85, 0x180072c75\ncmp     rdx, 0Fh                                                       ; +0x89, 0x180072c79\njbe     short loc_180072CAC                                            ; +0x8d, 0x180072c7d\nmov     rcx, [rbx+28h]                                                 ; +0x8f, 0x180072c7f\ninc     rdx                                                            ; +0x93, 0x180072c83\ncmp     rdx, 1000h                                                     ; +0x96, 0x180072c86\njb      short loc_180072CA7                                            ; +0x9d, 0x180072c8d\nmov     r8, [rcx-8]                                                    ; +0x9f, 0x180072c8f\nadd     rdx, 27h ; '''                                                 ; +0xa3, 0x180072c93\nsub     rcx, r8                                                        ; +0xa7, 0x180072c97\nlea     rax, [rcx-8]                                                   ; +0xaa, 0x180072c9a\ncmp     rax, 1Fh                                                       ; +0xae, 0x180072c9e\nja      short loc_180072CD0                                            ; +0xb2, 0x180072ca2\nmov     rcx, r8; Block                                                 ; +0xb4, 0x180072ca4\ncall    j_j_free_0                                                     ; +0xb7, 0x180072ca7\nlea     rax, ??_7CCApplicationProtocol@cocos2d@@6B@; const cocos2d::CCApplicationProtocol::`vftable' ; +0xbc, 0x180072cac\nmov     qword ptr [rbx+38h], 0                                         ; +0xc3, 0x180072cb3\nmov     qword ptr [rbx+40h], 0Fh                                       ; +0xcb, 0x180072cbb\nmov     byte ptr [rbx+28h], 0                                          ; +0xd3, 0x180072cc3\nmov     [rbx], rax                                                     ; +0xd7, 0x180072cc7\nadd     rsp, 20h                                                       ; +0xda, 0x180072cca\npop     rbx                                                            ; +0xde, 0x180072cce\nretn                                                                   ; +0xdf, 0x180072ccf\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xe0, 0x180072cd0\ndb 0CCh                                                                ; +0xe6, 0x180072cd6", "xrefs": ["sub_180072CF0 @ 0x180072d4e", "sub_180072CF0 @ 0x180072d0c", "<???> @ 0x1801438a8", "<???> @ 0x1801b43bc"], "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"}