{"type": "func", "start": 6442895984, "end": 6442896310, "name": "sub_18006CA70", "pseudocode": "// \n// sub_18006CA70 from 0x18006ca70 to 0x18006cbb6 (326 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f35f\n// > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f44f\n// > <???> @ 0x1801b3ffc\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\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall sub_18006CA70(__int64 *a1, __int64 a2, __int64 a3)\n{\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  char v8; // al\n  __int64 v9; // rbx\n  _OWORD *v10; // rax\n  __int64 v12; // [rsp+30h] [rbp-48h]\n  __int128 v13; // [rsp+40h] [rbp-38h] BYREF\n  _BYTE v14[32]; // [rsp+50h] [rbp-28h] BYREF\n\n  v6 = sub_18006C750(a1, (__int64)v14, (const void **)a3);\n  v13 = *(_OWORD *)v6;\n  v12 = *(_QWORD *)(v6 + 16);\n  v7 = v12;\n  if ( *(_BYTE *)(v12 + 25) || (v8 = sub_1800182E0((__int64)a1, (const void **)a3, (const void **)(v12 + 32))) != 0 )\n  {\n    if ( a1[1] == 0x2AAAAAAAAAAAAAALL )\n      std::vector<void *>::_Xlen();\n    v9 = *a1;\n    v10 = operator new(0x60u);\n    v10[2] = 0;\n    *((_QWORD *)v10 + 6) = 0;\n    *((_QWORD *)v10 + 7) = 0;\n    v10[2] = *(_OWORD *)a3;\n    v10[3] = *(_OWORD *)(a3 + 16);\n    *(_QWORD *)(a3 + 16) = 0;\n    *(_QWORD *)(a3 + 24) = 15;\n    *(_BYTE *)a3 = 0;\n    v10[4] = 0;\n    *((_QWORD *)v10 + 10) = 0;\n    *((_QWORD *)v10 + 11) = 0;\n    v10[4] = *(_OWORD *)(a3 + 32);\n    v10[5] = *(_OWORD *)(a3 + 48);\n    *(_QWORD *)(a3 + 48) = 0;\n    *(_QWORD *)(a3 + 56) = 15;\n    *(_BYTE *)(a3 + 32) = 0;\n    *(_QWORD *)v10 = v9;\n    *((_QWORD *)v10 + 1) = v9;\n    *((_QWORD *)v10 + 2) = v9;\n    *((_WORD *)v10 + 12) = 0;\n    v7 = sub_18000F590(a1, (__int64)&v13, (__int64)v10);\n    v8 = 1;\n  }\n  *(_QWORD *)a2 = v7;\n  *(_BYTE *)(a2 + 8) = v8;\n  return a2;\n}", "assembly": "; \n; sub_18006CA70 from 0x18006ca70 to 0x18006cbb6 (326 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f35f\n; > cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f44f\n; > <???> @ 0x1801b3ffc\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, 0x18006ca70\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x18006ca75\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x18006ca7a\nmov     [rsp+arg_18], rdi                                              ; +0xf, 0x18006ca7f\npush    r14                                                            ; +0x14, 0x18006ca84\nsub     rsp, 70h                                                       ; +0x16, 0x18006ca86\nmov     r14, r8                                                        ; +0x1a, 0x18006ca8a\nmov     rdi, rdx                                                       ; +0x1d, 0x18006ca8d\nmov     rsi, rcx                                                       ; +0x20, 0x18006ca90\nlea     rdx, [rsp+78h+var_28]                                          ; +0x23, 0x18006ca93\ncall    sub_18006C750                                                  ; +0x28, 0x18006ca98\nmovups  xmm0, xmmword ptr [rax]                                        ; +0x2d, 0x18006ca9d\nmovups  [rsp+78h+var_38], xmm0                                         ; +0x30, 0x18006caa0\nmovsd   xmm0, qword ptr [rax+10h]                                      ; +0x35, 0x18006caa5\nmovsd   [rsp+78h+var_48], xmm0                                         ; +0x3a, 0x18006caaa\nmov     rbx, [rsp+78h+var_48]                                          ; +0x40, 0x18006cab0\ncmp     byte ptr [rbx+19h], 0                                          ; +0x45, 0x18006cab5\njnz     short loc_18006CAD2                                            ; +0x49, 0x18006cab9\nlea     r8, [rbx+20h]                                                  ; +0x4b, 0x18006cabb\nmov     rdx, r14                                                       ; +0x4f, 0x18006cabf\nmov     rcx, rsi                                                       ; +0x52, 0x18006cac2\ncall    sub_1800182E0                                                  ; +0x55, 0x18006cac5\ntest    al, al                                                         ; +0x5a, 0x18006caca\njz      loc_18006CB8C                                                  ; +0x5c, 0x18006cacc\nmov     rax, 2AAAAAAAAAAAAAAh                                          ; +0x62, 0x18006cad2\ncmp     [rsi+8], rax                                                   ; +0x6c, 0x18006cadc\njz      loc_18006CBB0                                                  ; +0x70, 0x18006cae0\nmov     rbx, [rsi]                                                     ; +0x76, 0x18006cae6\nmov     [rsp+78h+var_58], rsi                                          ; +0x79, 0x18006cae9\nxor     ebp, ebp                                                       ; +0x7e, 0x18006caee\nmov     [rsp+78h+var_50], rbp                                          ; +0x80, 0x18006caf0\nlea     ecx, [rbp+60h]; Size                                           ; +0x85, 0x18006caf5\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x88, 0x18006caf8\nnop                                                                    ; +0x8d, 0x18006cafd\nxorps   xmm0, xmm0                                                     ; +0x8e, 0x18006cafe\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0x91, 0x18006cb01\nmov     [rax+30h], rbp                                                 ; +0x95, 0x18006cb05\nmov     [rax+38h], rbp                                                 ; +0x99, 0x18006cb09\nmovups  xmm0, xmmword ptr [r14]                                        ; +0x9d, 0x18006cb0d\nmovups  xmmword ptr [rax+20h], xmm0                                    ; +0xa1, 0x18006cb11\nmovups  xmm1, xmmword ptr [r14+10h]                                    ; +0xa5, 0x18006cb15\nmovups  xmmword ptr [rax+30h], xmm1                                    ; +0xaa, 0x18006cb1a\nmov     [r14+10h], rbp                                                 ; +0xae, 0x18006cb1e\nmov     qword ptr [r14+18h], 0Fh                                       ; +0xb2, 0x18006cb22\nmov     [r14], bpl                                                     ; +0xba, 0x18006cb2a\nxorps   xmm0, xmm0                                                     ; +0xbd, 0x18006cb2d\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0xc0, 0x18006cb30\nmov     [rax+50h], rbp                                                 ; +0xc4, 0x18006cb34\nmov     [rax+58h], rbp                                                 ; +0xc8, 0x18006cb38\nmovups  xmm0, xmmword ptr [r14+20h]                                    ; +0xcc, 0x18006cb3c\nmovups  xmmword ptr [rax+40h], xmm0                                    ; +0xd1, 0x18006cb41\nmovups  xmm1, xmmword ptr [r14+30h]                                    ; +0xd5, 0x18006cb45\nmovups  xmmword ptr [rax+50h], xmm1                                    ; +0xda, 0x18006cb4a\nmov     [r14+30h], rbp                                                 ; +0xde, 0x18006cb4e\nmov     qword ptr [r14+38h], 0Fh                                       ; +0xe2, 0x18006cb52\nmov     [r14+20h], bpl                                                 ; +0xea, 0x18006cb5a\nmov     [rax], rbx                                                     ; +0xee, 0x18006cb5e\nmov     [rax+8], rbx                                                   ; +0xf1, 0x18006cb61\nmov     [rax+10h], rbx                                                 ; +0xf5, 0x18006cb65\nmov     [rax+18h], bp                                                  ; +0xf9, 0x18006cb69\nmovups  xmm0, [rsp+78h+var_38]                                         ; +0xfd, 0x18006cb6d\nmovaps  [rsp+78h+var_38], xmm0                                         ; +0x102, 0x18006cb72\nmov     r8, rax                                                        ; +0x107, 0x18006cb77\nlea     rdx, [rsp+78h+var_38]                                          ; +0x10a, 0x18006cb7a\nmov     rcx, rsi                                                       ; +0x10f, 0x18006cb7f\ncall    sub_18000F590                                                  ; +0x112, 0x18006cb82\nmov     rbx, rax                                                       ; +0x117, 0x18006cb87\nmov     al, 1                                                          ; +0x11a, 0x18006cb8a\nmov     [rdi], rbx                                                     ; +0x11c, 0x18006cb8c\nmov     [rdi+8], al                                                    ; +0x11f, 0x18006cb8f\nmov     rax, rdi                                                       ; +0x122, 0x18006cb92\nlea     r11, [rsp+78h+var_8]                                           ; +0x125, 0x18006cb95\nmov     rbx, [r11+10h]                                                 ; +0x12a, 0x18006cb9a\nmov     rbp, [r11+18h]                                                 ; +0x12e, 0x18006cb9e\nmov     rsi, [r11+20h]                                                 ; +0x132, 0x18006cba2\nmov     rdi, [r11+28h]                                                 ; +0x136, 0x18006cba6\nmov     rsp, r11                                                       ; +0x13a, 0x18006cbaa\npop     r14                                                            ; +0x13d, 0x18006cbad\nretn                                                                   ; +0x13f, 0x18006cbaf\ncall    ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ_2; std::vector<void *>::_Xlen(void) ; +0x140, 0x18006cbb0\ndb 0CCh                                                                ; +0x145, 0x18006cbb5", "xrefs": ["cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f35f", "cocos2d::CCFileUtils::fullPathForFilename @ 0x18006f44f", "<???> @ 0x1801b3ffc"], "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"}