{"type": "func", "start": 6442895808, "end": 6442895978, "name": "sub_18006C9C0", "pseudocode": "// \n// sub_18006C9C0 from 0x18006c9c0 to 0x18006ca6a (170 bytes)\n// \n// 4 xrefs:\n// > sub_18006C6D0 @ 0x18006c71c\n// > cocos2d::CCFileUtils::removeFullPath @ 0x180070ca8\n// > <???> @ 0x1801b3fe4\n// > <???> @ 0x1801b3ff0\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_18006C9C0(__int64 a1, __int64 a2)\n{\n  unsigned __int64 v3; // rdx\n  _QWORD *v4; // rcx\n  unsigned __int64 v5; // rdx\n  void *v6; // rcx\n\n  v3 = *(_QWORD *)(a2 + 56);\n  if ( v3 > 0xF )\n  {\n    v4 = *(_QWORD **)(a2 + 32);\n    if ( v3 + 1 >= 0x1000 )\n    {\n      if ( (unsigned __int64)v4 - *(v4 - 1) - 8 > 0x1F )\n        goto LABEL_12;\n      v4 = (_QWORD *)*(v4 - 1);\n    }\n    j_j_free_0(v4);\n  }\n  *(_QWORD *)(a2 + 48) = 0;\n  *(_QWORD *)(a2 + 56) = 15;\n  *(_BYTE *)(a2 + 32) = 0;\n  v5 = *(_QWORD *)(a2 + 24);\n  if ( v5 > 0xF )\n  {\n    v6 = *(void **)a2;\n    if ( v5 + 1 < 0x1000 )\n    {\nLABEL_10:\n      j_j_free_0(v6);\n      goto LABEL_11;\n    }\n    if ( (unsigned __int64)v6 - *((_QWORD *)v6 - 1) - 8 <= 0x1F )\n    {\n      v6 = *((void **)v6 - 1);\n      goto LABEL_10;\n    }\nLABEL_12:\n    invalid_parameter_noinfo_noreturn();\n  }\nLABEL_11:\n  *(_QWORD *)(a2 + 16) = 0;\n  *(_QWORD *)(a2 + 24) = 15;\n  *(_BYTE *)a2 = 0;\n}", "assembly": "; \n; sub_18006C9C0 from 0x18006c9c0 to 0x18006ca6a (170 bytes)\n; \n; 4 xrefs:\n; > sub_18006C6D0 @ 0x18006c71c\n; > cocos2d::CCFileUtils::removeFullPath @ 0x180070ca8\n; > <???> @ 0x1801b3fe4\n; > <???> @ 0x1801b3ff0\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, 0x18006c9c0\nsub     rsp, 20h                                                       ; +0x2, 0x18006c9c2\nmov     rbx, rdx                                                       ; +0x6, 0x18006c9c6\nmov     rdx, [rdx+38h]                                                 ; +0x9, 0x18006c9c9\ncmp     rdx, 0Fh                                                       ; +0xd, 0x18006c9cd\njbe     short loc_18006CA00                                            ; +0x11, 0x18006c9d1\nmov     rcx, [rbx+20h]                                                 ; +0x13, 0x18006c9d3\ninc     rdx                                                            ; +0x17, 0x18006c9d7\ncmp     rdx, 1000h                                                     ; +0x1a, 0x18006c9da\njb      short loc_18006C9FB                                            ; +0x21, 0x18006c9e1\nmov     r8, [rcx-8]                                                    ; +0x23, 0x18006c9e3\nadd     rdx, 27h ; '''                                                 ; +0x27, 0x18006c9e7\nsub     rcx, r8                                                        ; +0x2b, 0x18006c9eb\nlea     rax, [rcx-8]                                                   ; +0x2e, 0x18006c9ee\ncmp     rax, 1Fh                                                       ; +0x32, 0x18006c9f2\nja      short loc_18006CA63                                            ; +0x36, 0x18006c9f6\nmov     rcx, r8; Block                                                 ; +0x38, 0x18006c9f8\ncall    j_j_free_0                                                     ; +0x3b, 0x18006c9fb\nmov     qword ptr [rbx+30h], 0                                         ; +0x40, 0x18006ca00\nmov     qword ptr [rbx+38h], 0Fh                                       ; +0x48, 0x18006ca08\nmov     byte ptr [rbx+20h], 0                                          ; +0x50, 0x18006ca10\nmov     rdx, [rbx+18h]                                                 ; +0x54, 0x18006ca14\ncmp     rdx, 0Fh                                                       ; +0x58, 0x18006ca18\njbe     short loc_18006CA4A                                            ; +0x5c, 0x18006ca1c\nmov     rcx, [rbx]                                                     ; +0x5e, 0x18006ca1e\ninc     rdx                                                            ; +0x61, 0x18006ca21\ncmp     rdx, 1000h                                                     ; +0x64, 0x18006ca24\njb      short loc_18006CA45                                            ; +0x6b, 0x18006ca2b\nmov     r8, [rcx-8]                                                    ; +0x6d, 0x18006ca2d\nadd     rdx, 27h ; '''                                                 ; +0x71, 0x18006ca31\nsub     rcx, r8                                                        ; +0x75, 0x18006ca35\nlea     rax, [rcx-8]                                                   ; +0x78, 0x18006ca38\ncmp     rax, 1Fh                                                       ; +0x7c, 0x18006ca3c\nja      short loc_18006CA63                                            ; +0x80, 0x18006ca40\nmov     rcx, r8; Block                                                 ; +0x82, 0x18006ca42\ncall    j_j_free_0                                                     ; +0x85, 0x18006ca45\nmov     qword ptr [rbx+10h], 0                                         ; +0x8a, 0x18006ca4a\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0x92, 0x18006ca52\nmov     byte ptr [rbx], 0                                              ; +0x9a, 0x18006ca5a\nadd     rsp, 20h                                                       ; +0x9d, 0x18006ca5d\npop     rbx                                                            ; +0xa1, 0x18006ca61\nretn                                                                   ; +0xa2, 0x18006ca62\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xa3, 0x18006ca63\ndb 0CCh                                                                ; +0xa9, 0x18006ca69", "xrefs": ["sub_18006C6D0 @ 0x18006c71c", "cocos2d::CCFileUtils::removeFullPath @ 0x180070ca8", "<???> @ 0x1801b3fe4", "<???> @ 0x1801b3ff0"], "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"}