{"type": "func", "start": 6442897488, "end": 6442897758, "name": "cocos2d::CCFileUtils::~CCFileUtils", "pseudocode": "// \n// cocos2d::CCFileUtils::~CCFileUtils from 0x18006d050 to 0x18006d15e (270 bytes)\n// \n// 6 xrefs:\n// > sub_18006D160 @ 0x18006d1c2\n// > cocos2d::CCFileUtilsWin32::~CCFileUtilsWin32 @ 0x180079fc0\n// > sub_18007A100 @ 0x18007a162\n// > sub_18006D160 @ 0x18006d17c\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b405c\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::CCFileUtils::~CCFileUtils(cocos2d::CCFileUtils *this)\n{\n  cocos2d::CCObject *v2; // rcx\n  unsigned __int64 v3; // rdx\n  _QWORD *v4; // rcx\n  unsigned __int64 v5; // rdx\n  void *v6; // rcx\n\n  this->__vftable = (cocos2d::CCFileUtils_vtbl *)&cocos2d::CCFileUtils::`vftable';\n  v2 = *((cocos2d::CCObject **)this + 1);\n  if ( v2 )\n    cocos2d::CCObject::release(v2);\n  v3 = *((_QWORD *)this + 17);\n  if ( v3 > 0xF )\n  {\n    v4 = *((_QWORD **)this + 14);\n    if ( v3 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )\n        goto LABEL_14;\n      v4 = (_QWORD *)*(v4 - 1);\n    }\n    j_j_free_0(v4);\n  }\n  *((_QWORD *)this + 16) = 0;\n  *((_QWORD *)this + 17) = 15;\n  *((_BYTE *)this + 112) = 0;\n  sub_18006C6D0((__int64)(this + 12), (__int64)(this + 12), *(char **)(*((_QWORD *)this + 12) + 8LL));\n  j_j_free_0(*((void **)this + 12));\n  v5 = *((_QWORD *)this + 11);\n  if ( v5 > 0xF )\n  {\n    v6 = *((void **)this + 8);\n    if ( v5 + 1 < 0x1000 )\n    {\nLABEL_12:\n      j_j_free_0(v6);\n      goto LABEL_13;\n    }\n    if ( (unsigned __int64)v6 - *((_QWORD *)v6 - 1) - 8 <= 0x1F )\n    {\n      v6 = *((void **)v6 - 1);\n      goto LABEL_12;\n    }\nLABEL_14:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_13:\n  *((_QWORD *)this + 10) = 0;\n  *((_QWORD *)this + 11) = 15;\n  *((_BYTE *)this + 64) = 0;\n  sub_18000D280((__int64 *)this + 5);\n  sub_18000D280((__int64 *)this + 2);\n}", "assembly": "; \n; cocos2d::CCFileUtils::~CCFileUtils from 0x18006d050 to 0x18006d15e (270 bytes)\n; \n; 6 xrefs:\n; > sub_18006D160 @ 0x18006d1c2\n; > cocos2d::CCFileUtilsWin32::~CCFileUtilsWin32 @ 0x180079fc0\n; > sub_18007A100 @ 0x18007a162\n; > sub_18006D160 @ 0x18006d17c\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b405c\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, 0x18006d050\npush    rdi                                                            ; +0x5, 0x18006d055\nsub     rsp, 20h                                                       ; +0x6, 0x18006d056\nmov     rdi, rcx                                                       ; +0xa, 0x18006d05a\nlea     rax, ??_7CCFileUtils@cocos2d@@6B@; const cocos2d::CCFileUtils::`vftable' ; +0xd, 0x18006d05d\nmov     [rcx], rax                                                     ; +0x14, 0x18006d064\nmov     rcx, [rcx+8]; this                                             ; +0x17, 0x18006d067\ntest    rcx, rcx                                                       ; +0x1b, 0x18006d06b\njz      short loc_18006D075                                            ; +0x1e, 0x18006d06e\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0x20, 0x18006d070\nmov     rdx, [rdi+88h]                                                 ; +0x25, 0x18006d075\ncmp     rdx, 0Fh                                                       ; +0x2c, 0x18006d07c\njbe     short loc_18006D0B3                                            ; +0x30, 0x18006d080\ninc     rdx                                                            ; +0x32, 0x18006d082\nmov     rcx, [rdi+70h]                                                 ; +0x35, 0x18006d085\ncmp     rdx, 1000h                                                     ; +0x39, 0x18006d089\njb      short loc_18006D0AE                                            ; +0x40, 0x18006d090\nadd     rdx, 27h ; '''                                                 ; +0x42, 0x18006d092\nmov     r8, [rcx-8]                                                    ; +0x46, 0x18006d096\nsub     rcx, r8                                                        ; +0x4a, 0x18006d09a\nlea     rax, [rcx-8]                                                   ; +0x4d, 0x18006d09d\ncmp     rax, 1Fh                                                       ; +0x51, 0x18006d0a1\nja      loc_18006D157                                                  ; +0x55, 0x18006d0a5\nmov     rcx, r8; Block                                                 ; +0x5b, 0x18006d0ab\ncall    j_j_free_0                                                     ; +0x5e, 0x18006d0ae\nmov     qword ptr [rdi+80h], 0                                         ; +0x63, 0x18006d0b3\nmov     qword ptr [rdi+88h], 0Fh                                       ; +0x6e, 0x18006d0be\nmov     byte ptr [rdi+70h], 0                                          ; +0x79, 0x18006d0c9\nmov     r8, [rdi+60h]                                                  ; +0x7d, 0x18006d0cd\nmov     r8, [r8+8]                                                     ; +0x81, 0x18006d0d1\nlea     rdx, [rdi+60h]                                                 ; +0x85, 0x18006d0d5\nlea     rcx, [rdi+60h]                                                 ; +0x89, 0x18006d0d9\ncall    sub_18006C6D0                                                  ; +0x8d, 0x18006d0dd\nmov     edx, 60h ; '`'                                                 ; +0x92, 0x18006d0e2\nmov     rcx, [rdi+60h]; Block                                          ; +0x97, 0x18006d0e7\ncall    j_j_free_0                                                     ; +0x9b, 0x18006d0eb\nmov     rdx, [rdi+58h]                                                 ; +0xa0, 0x18006d0f0\ncmp     rdx, 0Fh                                                       ; +0xa4, 0x18006d0f4\njbe     short loc_18006D127                                            ; +0xa8, 0x18006d0f8\ninc     rdx                                                            ; +0xaa, 0x18006d0fa\nmov     rcx, [rdi+40h]                                                 ; +0xad, 0x18006d0fd\ncmp     rdx, 1000h                                                     ; +0xb1, 0x18006d101\njb      short loc_18006D122                                            ; +0xb8, 0x18006d108\nadd     rdx, 27h ; '''                                                 ; +0xba, 0x18006d10a\nmov     r8, [rcx-8]                                                    ; +0xbe, 0x18006d10e\nsub     rcx, r8                                                        ; +0xc2, 0x18006d112\nlea     rax, [rcx-8]                                                   ; +0xc5, 0x18006d115\ncmp     rax, 1Fh                                                       ; +0xc9, 0x18006d119\nja      short loc_18006D157                                            ; +0xcd, 0x18006d11d\nmov     rcx, r8; Block                                                 ; +0xcf, 0x18006d11f\ncall    j_j_free_0                                                     ; +0xd2, 0x18006d122\nmov     qword ptr [rdi+50h], 0                                         ; +0xd7, 0x18006d127\nmov     qword ptr [rdi+58h], 0Fh                                       ; +0xdf, 0x18006d12f\nmov     byte ptr [rdi+40h], 0                                          ; +0xe7, 0x18006d137\nlea     rcx, [rdi+28h]                                                 ; +0xeb, 0x18006d13b\ncall    sub_18000D280                                                  ; +0xef, 0x18006d13f\nlea     rcx, [rdi+10h]                                                 ; +0xf4, 0x18006d144\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xf8, 0x18006d148\nadd     rsp, 20h                                                       ; +0xfd, 0x18006d14d\npop     rdi                                                            ; +0x101, 0x18006d151\njmp     sub_18000D280                                                  ; +0x102, 0x18006d152\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x107, 0x18006d157\ndb 0CCh                                                                ; +0x10d, 0x18006d15d", "xrefs": ["sub_18006D160 @ 0x18006d1c2", "cocos2d::CCFileUtilsWin32::~CCFileUtilsWin32 @ 0x180079fc0", "sub_18007A100 @ 0x18007a162", "sub_18006D160 @ 0x18006d17c", "<???> @ 0x1801438a8", "<???> @ 0x1801b405c"], "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"}