{"type": "func", "start": 6442897264, "end": 6442897487, "name": "sub_18006CF70", "pseudocode": "// \n// sub_18006CF70 from 0x18006cf70 to 0x18006d04f (223 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x18006e16d\n// > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x18006e28a\n// > int `Concurrency::agent::wait_for_one @ 0x1800e2857\n// > <???> @ 0x18013a9c9\n// > <???> @ 0x1801b4050\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 sub_18006CF70(_QWORD *a1)\n{\n  unsigned __int64 v2; // rdx\n  _QWORD *v3; // rcx\n  unsigned __int64 v4; // rdx\n  void *v5; // rcx\n\n  *a1 = &cocos2d::CCDictMaker::`vftable';\n  sub_18006CDD0((__int64)(a1 + 25));\n  sub_18006CDD0((__int64)(a1 + 20));\n  v2 = a1[17];\n  if ( v2 > 0xF )\n  {\n    v3 = (_QWORD *)a1[14];\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  a1[16] = 0;\n  a1[17] = 15;\n  *((_BYTE *)a1 + 112) = 0;\n  v4 = a1[13];\n  if ( v4 > 0xF )\n  {\n    v5 = (void *)a1[10];\n    if ( v4 + 1 < 0x1000 )\n    {\nLABEL_10:\n      j_j_free_0(v5);\n      goto LABEL_11;\n    }\n    if ( (unsigned __int64)v5 - *((_QWORD *)v5 - 1) - 8 <= 0x1F )\n    {\n      v5 = *((void **)v5 - 1);\n      goto LABEL_10;\n    }\nLABEL_12:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_11:\n  a1[12] = 0;\n  a1[13] = 15;\n  *((_BYTE *)a1 + 80) = 0;\n  sub_18006CDD0((__int64)(a1 + 5));\n}", "assembly": "; \n; sub_18006CF70 from 0x18006cf70 to 0x18006d04f (223 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x18006e16d\n; > cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x18006e28a\n; > int `Concurrency::agent::wait_for_one @ 0x1800e2857\n; > <???> @ 0x18013a9c9\n; > <???> @ 0x1801b4050\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, 0x18006cf70\nsub     rsp, 20h                                                       ; +0x2, 0x18006cf72\nlea     rax, ??_7CCDictMaker@cocos2d@@6B@; const cocos2d::CCDictMaker::`vftable' ; +0x6, 0x18006cf76\nmov     rbx, rcx                                                       ; +0xd, 0x18006cf7d\nmov     [rcx], rax                                                     ; +0x10, 0x18006cf80\nadd     rcx, 0C8h                                                      ; +0x13, 0x18006cf83\ncall    sub_18006CDD0                                                  ; +0x1a, 0x18006cf8a\nlea     rcx, [rbx+0A0h]                                                ; +0x1f, 0x18006cf8f\ncall    sub_18006CDD0                                                  ; +0x26, 0x18006cf96\nmov     rdx, [rbx+88h]                                                 ; +0x2b, 0x18006cf9b\ncmp     rdx, 0Fh                                                       ; +0x32, 0x18006cfa2\njbe     short loc_18006CFD5                                            ; +0x36, 0x18006cfa6\nmov     rcx, [rbx+70h]                                                 ; +0x38, 0x18006cfa8\ninc     rdx                                                            ; +0x3c, 0x18006cfac\ncmp     rdx, 1000h                                                     ; +0x3f, 0x18006cfaf\njb      short loc_18006CFD0                                            ; +0x46, 0x18006cfb6\nmov     r8, [rcx-8]                                                    ; +0x48, 0x18006cfb8\nadd     rdx, 27h ; '''                                                 ; +0x4c, 0x18006cfbc\nsub     rcx, r8                                                        ; +0x50, 0x18006cfc0\nlea     rax, [rcx-8]                                                   ; +0x53, 0x18006cfc3\ncmp     rax, 1Fh                                                       ; +0x57, 0x18006cfc7\nja      short loc_18006D048                                            ; +0x5b, 0x18006cfcb\nmov     rcx, r8; Block                                                 ; +0x5d, 0x18006cfcd\ncall    j_j_free_0                                                     ; +0x60, 0x18006cfd0\nmov     qword ptr [rbx+80h], 0                                         ; +0x65, 0x18006cfd5\nmov     qword ptr [rbx+88h], 0Fh                                       ; +0x70, 0x18006cfe0\nmov     byte ptr [rbx+70h], 0                                          ; +0x7b, 0x18006cfeb\nmov     rdx, [rbx+68h]                                                 ; +0x7f, 0x18006cfef\ncmp     rdx, 0Fh                                                       ; +0x83, 0x18006cff3\njbe     short loc_18006D026                                            ; +0x87, 0x18006cff7\nmov     rcx, [rbx+50h]                                                 ; +0x89, 0x18006cff9\ninc     rdx                                                            ; +0x8d, 0x18006cffd\ncmp     rdx, 1000h                                                     ; +0x90, 0x18006d000\njb      short loc_18006D021                                            ; +0x97, 0x18006d007\nmov     r8, [rcx-8]                                                    ; +0x99, 0x18006d009\nadd     rdx, 27h ; '''                                                 ; +0x9d, 0x18006d00d\nsub     rcx, r8                                                        ; +0xa1, 0x18006d011\nlea     rax, [rcx-8]                                                   ; +0xa4, 0x18006d014\ncmp     rax, 1Fh                                                       ; +0xa8, 0x18006d018\nja      short loc_18006D048                                            ; +0xac, 0x18006d01c\nmov     rcx, r8; Block                                                 ; +0xae, 0x18006d01e\ncall    j_j_free_0                                                     ; +0xb1, 0x18006d021\nlea     rcx, [rbx+28h]                                                 ; +0xb6, 0x18006d026\nmov     qword ptr [rbx+60h], 0                                         ; +0xba, 0x18006d02a\nmov     qword ptr [rbx+68h], 0Fh                                       ; +0xc2, 0x18006d032\nmov     byte ptr [rbx+50h], 0                                          ; +0xca, 0x18006d03a\nadd     rsp, 20h                                                       ; +0xce, 0x18006d03e\npop     rbx                                                            ; +0xd2, 0x18006d042\njmp     sub_18006CDD0                                                  ; +0xd3, 0x18006d043\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xd8, 0x18006d048\ndb 0CCh                                                                ; +0xde, 0x18006d04e", "xrefs": ["cocos2d::CCFileUtils::createCCArrayWithContentsOfFile @ 0x18006e16d", "cocos2d::CCFileUtils::createCCDictionaryWithContentsOfFile @ 0x18006e28a", "int `Concurrency::agent::wait_for_one @ 0x1800e2857", "<???> @ 0x18013a9c9", "<???> @ 0x1801b4050"], "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"}