{"type": "func", "start": 6442905792, "end": 6442906014, "name": "sub_18006F0C0", "pseudocode": "// \n// sub_18006F0C0 from 0x18006f0c0 to 0x18006f19e (222 bytes)\n// \n// 15 xrefs:\n// > sub_18006F1C0 @ 0x18006f1c0\n// > sub_18006F1D0 @ 0x18006f1ea\n// > sub_18006F1D0 @ 0x18006f1f6\n// > sub_18006F1D0 @ 0x18006f216\n// > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070153\n// > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070160\n// > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070187\n// > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702c0\n// > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702cd\n// > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702f4\n// > sub_1800ACB60 @ 0x1800acd1b\n// > sub_1800ACB60 @ 0x1800acd43\n// > <???> @ 0x180143e7c\n// > <???> @ 0x180143e8c\n// > <???> @ 0x1801be380\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:56 +0000\n// \n\nvoid __fastcall sub_18006F0C0(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rdi\n  void *v4; // rcx\n  _QWORD *v5; // rcx\n  void *v6; // rcx\n\n  v2 = *(_QWORD *)(a1 + 32);\n  if ( v2 )\n  {\n    do\n      *(_QWORD *)(a1 + 32) = --v2;\n    while ( v2 );\n    *(_QWORD *)(a1 + 24) = 0;\n  }\n  if ( *(_QWORD *)(a1 + 8) )\n  {\n    v3 = *(_QWORD *)(a1 + 16);\n    while ( v3 > 0 )\n    {\n      --v3;\n      v4 = *(void **)(*(_QWORD *)(a1 + 8) + 8 * v3);\n      if ( v4 )\n        j_j_free_0(v4);\n    }\n    v5 = *(_QWORD **)(a1 + 8);\n    if ( (unsigned __int64)(8LL * *(_QWORD *)(a1 + 16)) >= 0x1000 )\n    {\n      if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )\n        invoke_watson(nullptr, nullptr, nullptr, 0, 0);\n      v5 = (_QWORD *)*(v5 - 1);\n    }\n    j_j_free_0(v5);\n    *(_QWORD *)(a1 + 8) = 0;\n    *(_QWORD *)(a1 + 16) = 0;\n  }\n  v6 = *(void **)a1;\n  *(_QWORD *)a1 = 0;\n  j_j_free_0(v6);\n}", "assembly": "; \n; sub_18006F0C0 from 0x18006f0c0 to 0x18006f19e (222 bytes)\n; \n; 15 xrefs:\n; > sub_18006F1C0 @ 0x18006f1c0\n; > sub_18006F1D0 @ 0x18006f1ea\n; > sub_18006F1D0 @ 0x18006f1f6\n; > sub_18006F1D0 @ 0x18006f216\n; > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070153\n; > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070160\n; > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070187\n; > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702c0\n; > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702cd\n; > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702f4\n; > sub_1800ACB60 @ 0x1800acd1b\n; > sub_1800ACB60 @ 0x1800acd43\n; > <???> @ 0x180143e7c\n; > <???> @ 0x180143e8c\n; > <???> @ 0x1801be380\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:56 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x18006f0c0\npush    rsi                                                            ; +0x5, 0x18006f0c5\nsub     rsp, 30h                                                       ; +0x6, 0x18006f0c6\nmov     rbx, rcx                                                       ; +0xa, 0x18006f0ca\nxor     esi, esi                                                       ; +0xd, 0x18006f0cd\nmov     rcx, [rcx+20h]                                                 ; +0xf, 0x18006f0cf\ntest    rcx, rcx                                                       ; +0x13, 0x18006f0d3\njz      short loc_18006F0F4                                            ; +0x16, 0x18006f0d6\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x18, 0x18006f0d8\nlea     rax, [rcx-1]                                                   ; +0x20, 0x18006f0e0\nmov     [rbx+20h], rax                                                 ; +0x24, 0x18006f0e4\nmov     rcx, rax                                                       ; +0x28, 0x18006f0e8\ntest    rax, rax                                                       ; +0x2b, 0x18006f0eb\njnz     short loc_18006F0E0                                            ; +0x2e, 0x18006f0ee\nmov     [rbx+18h], rsi                                                 ; +0x30, 0x18006f0f0\ncmp     [rbx+8], rsi                                                   ; +0x34, 0x18006f0f4\njz      short loc_18006F16E                                            ; +0x38, 0x18006f0f8\nmov     [rsp+38h+arg_0], rdi                                           ; +0x3a, 0x18006f0fa\nmov     rdi, [rbx+10h]                                                 ; +0x3f, 0x18006f0ff\ntest    rdi, rdi                                                       ; +0x43, 0x18006f103\njle     short loc_18006F12F                                            ; +0x46, 0x18006f106\nnop     dword ptr [rax+rax+00000000h]                                  ; +0x48, 0x18006f108\nmov     rax, [rbx+8]                                                   ; +0x50, 0x18006f110\ndec     rdi                                                            ; +0x54, 0x18006f114\nmov     rcx, [rax+rdi*8]; Block                                        ; +0x57, 0x18006f117\ntest    rcx, rcx                                                       ; +0x5b, 0x18006f11b\njz      short loc_18006F12A                                            ; +0x5e, 0x18006f11e\nmov     edx, 10h                                                       ; +0x60, 0x18006f120\ncall    j_j_free_0                                                     ; +0x65, 0x18006f125\ntest    rdi, rdi                                                       ; +0x6a, 0x18006f12a\njg      short loc_18006F110                                            ; +0x6d, 0x18006f12d\nmov     rdx, [rbx+10h]                                                 ; +0x6f, 0x18006f12f\nmov     rcx, [rbx+8]                                                   ; +0x73, 0x18006f133\nmov     rdi, [rsp+38h+arg_0]                                           ; +0x77, 0x18006f137\nshl     rdx, 3                                                         ; +0x7c, 0x18006f13c\ncmp     rdx, 1000h                                                     ; +0x80, 0x18006f140\njb      short loc_18006F161                                            ; +0x87, 0x18006f147\nmov     rax, [rcx-8]                                                   ; +0x89, 0x18006f149\nadd     rdx, 27h ; '''                                                 ; +0x8d, 0x18006f14d\nsub     rcx, rax                                                       ; +0x91, 0x18006f151\nsub     rcx, 8                                                         ; +0x94, 0x18006f154\ncmp     rcx, 1Fh                                                       ; +0x98, 0x18006f158\nja      short loc_18006F188                                            ; +0x9c, 0x18006f15c\nmov     rcx, rax; Block                                                ; +0x9e, 0x18006f15e\ncall    j_j_free_0                                                     ; +0xa1, 0x18006f161\nmov     [rbx+8], rsi                                                   ; +0xa6, 0x18006f166\nmov     [rbx+10h], rsi                                                 ; +0xaa, 0x18006f16a\nmov     rcx, [rbx]; Block                                              ; +0xae, 0x18006f16e\nmov     edx, 10h                                                       ; +0xb1, 0x18006f171\nmov     [rbx], rsi                                                     ; +0xb6, 0x18006f176\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xb9, 0x18006f179\nadd     rsp, 30h                                                       ; +0xbe, 0x18006f17e\npop     rsi                                                            ; +0xc2, 0x18006f182\njmp     j_j_free_0                                                     ; +0xc3, 0x18006f183\nxor     r9d, r9d; LineNo                                               ; +0xc8, 0x18006f188\nmov     [rsp+38h+Reserved], rsi; Reserved                              ; +0xcb, 0x18006f18b\nxor     r8d, r8d; FileName                                             ; +0xd0, 0x18006f190\nxor     edx, edx; FunctionName                                         ; +0xd3, 0x18006f193\nxor     ecx, ecx; Expression                                           ; +0xd5, 0x18006f195\ncall    cs:_invoke_watson                                              ; +0xd7, 0x18006f197\ndb 0CCh                                                                ; +0xdd, 0x18006f19d", "xrefs": ["sub_18006F1C0 @ 0x18006f1c0", "sub_18006F1D0 @ 0x18006f1ea", "sub_18006F1D0 @ 0x18006f1f6", "sub_18006F1D0 @ 0x18006f216", "cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070153", "cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070160", "cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x180070187", "cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702c0", "cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702cd", "cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x1800702f4", "sub_1800ACB60 @ 0x1800acd1b", "sub_1800ACB60 @ 0x1800acd43", "<???> @ 0x180143e7c", "<???> @ 0x180143e8c", "<???> @ 0x1801be380"], "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"}