{"type": "func", "start": 6442897072, "end": 6442897242, "name": "sub_18006CEB0", "pseudocode": "// \n// sub_18006CEB0 from 0x18006ceb0 to 0x18006cf5a (170 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f459\n// > unknown_libname_26 @ 0x1800e28d7\n// > sub_1800E35D0 @ 0x1800e35d7\n// > <???> @ 0x18013a583\n// > <???> @ 0x18013a593\n// > <???> @ 0x180140adc\n// > <???> @ 0x1801b4044\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_18006CEB0(__int64 a1)\n{\n  unsigned __int64 v1; // rdx\n  _QWORD *v3; // rcx\n  unsigned __int64 v4; // rdx\n  void *v5; // rcx\n\n  v1 = *(_QWORD *)(a1 + 56);\n  if ( v1 > 0xF )\n  {\n    v3 = *(_QWORD **)(a1 + 32);\n    if ( v1 + 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 *)(a1 + 48) = 0;\n  *(_QWORD *)(a1 + 56) = 15;\n  *(_BYTE *)(a1 + 32) = 0;\n  v4 = *(_QWORD *)(a1 + 24);\n  if ( v4 > 0xF )\n  {\n    v5 = *(void **)a1;\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  *(_QWORD *)(a1 + 16) = 0;\n  *(_QWORD *)(a1 + 24) = 15;\n  *(_BYTE *)a1 = 0;\n}", "assembly": "; \n; sub_18006CEB0 from 0x18006ceb0 to 0x18006cf5a (170 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f459\n; > unknown_libname_26 @ 0x1800e28d7\n; > sub_1800E35D0 @ 0x1800e35d7\n; > <???> @ 0x18013a583\n; > <???> @ 0x18013a593\n; > <???> @ 0x180140adc\n; > <???> @ 0x1801b4044\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, 0x18006ceb0\nsub     rsp, 20h                                                       ; +0x2, 0x18006ceb2\nmov     rdx, [rcx+38h]                                                 ; +0x6, 0x18006ceb6\nmov     rbx, rcx                                                       ; +0xa, 0x18006ceba\ncmp     rdx, 0Fh                                                       ; +0xd, 0x18006cebd\njbe     short loc_18006CEF0                                            ; +0x11, 0x18006cec1\nmov     rcx, [rcx+20h]                                                 ; +0x13, 0x18006cec3\ninc     rdx                                                            ; +0x17, 0x18006cec7\ncmp     rdx, 1000h                                                     ; +0x1a, 0x18006ceca\njb      short loc_18006CEEB                                            ; +0x21, 0x18006ced1\nmov     r8, [rcx-8]                                                    ; +0x23, 0x18006ced3\nadd     rdx, 27h ; '''                                                 ; +0x27, 0x18006ced7\nsub     rcx, r8                                                        ; +0x2b, 0x18006cedb\nlea     rax, [rcx-8]                                                   ; +0x2e, 0x18006cede\ncmp     rax, 1Fh                                                       ; +0x32, 0x18006cee2\nja      short loc_18006CF53                                            ; +0x36, 0x18006cee6\nmov     rcx, r8; Block                                                 ; +0x38, 0x18006cee8\ncall    j_j_free_0                                                     ; +0x3b, 0x18006ceeb\nmov     qword ptr [rbx+30h], 0                                         ; +0x40, 0x18006cef0\nmov     qword ptr [rbx+38h], 0Fh                                       ; +0x48, 0x18006cef8\nmov     byte ptr [rbx+20h], 0                                          ; +0x50, 0x18006cf00\nmov     rdx, [rbx+18h]                                                 ; +0x54, 0x18006cf04\ncmp     rdx, 0Fh                                                       ; +0x58, 0x18006cf08\njbe     short loc_18006CF3A                                            ; +0x5c, 0x18006cf0c\nmov     rcx, [rbx]                                                     ; +0x5e, 0x18006cf0e\ninc     rdx                                                            ; +0x61, 0x18006cf11\ncmp     rdx, 1000h                                                     ; +0x64, 0x18006cf14\njb      short loc_18006CF35                                            ; +0x6b, 0x18006cf1b\nmov     r8, [rcx-8]                                                    ; +0x6d, 0x18006cf1d\nadd     rdx, 27h ; '''                                                 ; +0x71, 0x18006cf21\nsub     rcx, r8                                                        ; +0x75, 0x18006cf25\nlea     rax, [rcx-8]                                                   ; +0x78, 0x18006cf28\ncmp     rax, 1Fh                                                       ; +0x7c, 0x18006cf2c\nja      short loc_18006CF53                                            ; +0x80, 0x18006cf30\nmov     rcx, r8; Block                                                 ; +0x82, 0x18006cf32\ncall    j_j_free_0                                                     ; +0x85, 0x18006cf35\nmov     qword ptr [rbx+10h], 0                                         ; +0x8a, 0x18006cf3a\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0x92, 0x18006cf42\nmov     byte ptr [rbx], 0                                              ; +0x9a, 0x18006cf4a\nadd     rsp, 20h                                                       ; +0x9d, 0x18006cf4d\npop     rbx                                                            ; +0xa1, 0x18006cf51\nretn                                                                   ; +0xa2, 0x18006cf52\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xa3, 0x18006cf53\ndb 0CCh                                                                ; +0xa9, 0x18006cf59", "xrefs": ["cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f459", "unknown_libname_26 @ 0x1800e28d7", "sub_1800E35D0 @ 0x1800e35d7", "<???> @ 0x18013a583", "<???> @ 0x18013a593", "<???> @ 0x180140adc", "<???> @ 0x1801b4044"], "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"}