{"type": "func", "start": 6442961776, "end": 6442961950, "name": "sub_18007CB70", "pseudocode": "// \n// sub_18007CB70 from 0x18007cb70 to 0x18007cc1e (174 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCFileUtils::CCFileUtils @ 0x18007ce52\n// > cocos2d::CCFileUtils::operator= @ 0x18007d043\n// > <???> @ 0x1801bee9c\n// > <???> @ 0x1801beea8\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:22:00 +0000\n// \n\n__int64 __fastcall sub_18007CB70(_QWORD *a1, _QWORD *a2)\n{\n  __int64 v2; // rbx\n  _QWORD *v5; // r8\n  __int64 **v6; // rdx\n  __int64 *i; // rcx\n  __int64 v8; // rcx\n  __int64 result; // rax\n\n  v2 = *a1;\n  *(_QWORD *)(v2 + 8) = sub_18007CC20(a1, *(_QWORD *)(*a2 + 8LL), *a1);\n  v5 = (_QWORD *)*a1;\n  a1[1] = a2[1];\n  v6 = (__int64 **)v5[1];\n  if ( *((_BYTE *)v6 + 25) )\n  {\n    *v5 = v5;\n    result = *a1;\n    *(_QWORD *)(*a1 + 16LL) = *a1;\n  }\n  else\n  {\n    for ( i = *v6; !*((_BYTE *)i + 25); i = (__int64 *)*i )\n      v6 = (__int64 **)i;\n    *v5 = v6;\n    v8 = *(_QWORD *)(*a1 + 8LL);\n    for ( result = *(_QWORD *)(v8 + 16); !*(_BYTE *)(result + 25); result = *(_QWORD *)(result + 16) )\n      v8 = result;\n    *(_QWORD *)(*a1 + 16LL) = v8;\n  }\n  return result;\n}", "assembly": "; \n; sub_18007CB70 from 0x18007cb70 to 0x18007cc1e (174 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCFileUtils::CCFileUtils @ 0x18007ce52\n; > cocos2d::CCFileUtils::operator= @ 0x18007d043\n; > <???> @ 0x1801bee9c\n; > <???> @ 0x1801beea8\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:22:00 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x18007cb70\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x18007cb75\npush    rdi                                                            ; +0xa, 0x18007cb7a\nsub     rsp, 20h                                                       ; +0xb, 0x18007cb7b\nmov     rbx, [rcx]                                                     ; +0xf, 0x18007cb7f\nmov     rdi, rdx                                                       ; +0x12, 0x18007cb82\nmov     rdx, [rdx]                                                     ; +0x15, 0x18007cb85\nmov     r8, rbx                                                        ; +0x18, 0x18007cb88\nmov     rsi, rcx                                                       ; +0x1b, 0x18007cb8b\nmov     rdx, [rdx+8]                                                   ; +0x1e, 0x18007cb8e\ncall    sub_18007CC20                                                  ; +0x22, 0x18007cb92\nmov     [rbx+8], rax                                                   ; +0x27, 0x18007cb97\nmov     r8, [rsi]                                                      ; +0x2b, 0x18007cb9b\nmov     rax, [rdi+8]                                                   ; +0x2e, 0x18007cb9e\nmov     [rsi+8], rax                                                   ; +0x32, 0x18007cba2\nmov     rdx, [r8+8]                                                    ; +0x36, 0x18007cba6\ncmp     byte ptr [rdx+19h], 0                                          ; +0x3a, 0x18007cbaa\njnz     short loc_18007CC04                                            ; +0x3e, 0x18007cbae\nmov     rcx, [rdx]                                                     ; +0x40, 0x18007cbb0\ncmp     byte ptr [rcx+19h], 0                                          ; +0x43, 0x18007cbb3\njnz     short loc_18007CBCF                                            ; +0x47, 0x18007cbb7\nnop     dword ptr [rax+00000000h]                                      ; +0x49, 0x18007cbb9\nmov     rax, [rcx]                                                     ; +0x50, 0x18007cbc0\nmov     rdx, rcx                                                       ; +0x53, 0x18007cbc3\nmov     rcx, rax                                                       ; +0x56, 0x18007cbc6\ncmp     byte ptr [rax+19h], 0                                          ; +0x59, 0x18007cbc9\njz      short loc_18007CBC0                                            ; +0x5d, 0x18007cbcd\nmov     [r8], rdx                                                      ; +0x5f, 0x18007cbcf\nmov     rdx, [rsi]                                                     ; +0x62, 0x18007cbd2\nmov     rcx, [rdx+8]                                                   ; +0x65, 0x18007cbd5\nmov     rax, [rcx+10h]                                                 ; +0x69, 0x18007cbd9\ncmp     byte ptr [rax+19h], 0                                          ; +0x6d, 0x18007cbdd\njnz     short loc_18007CBF0                                            ; +0x71, 0x18007cbe1\nmov     rcx, rax                                                       ; +0x73, 0x18007cbe3\nmov     rax, [rax+10h]                                                 ; +0x76, 0x18007cbe6\ncmp     byte ptr [rax+19h], 0                                          ; +0x7a, 0x18007cbea\njz      short loc_18007CBE3                                            ; +0x7e, 0x18007cbee\nmov     [rdx+10h], rcx                                                 ; +0x80, 0x18007cbf0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x84, 0x18007cbf4\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x89, 0x18007cbf9\nadd     rsp, 20h                                                       ; +0x8e, 0x18007cbfe\npop     rdi                                                            ; +0x92, 0x18007cc02\nretn                                                                   ; +0x93, 0x18007cc03\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x94, 0x18007cc04\nmov     [r8], r8                                                       ; +0x99, 0x18007cc09\nmov     rax, [rsi]                                                     ; +0x9c, 0x18007cc0c\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x9f, 0x18007cc0f\nmov     [rax+10h], rax                                                 ; +0xa4, 0x18007cc14\nadd     rsp, 20h                                                       ; +0xa8, 0x18007cc18\npop     rdi                                                            ; +0xac, 0x18007cc1c\nretn                                                                   ; +0xad, 0x18007cc1d", "xrefs": ["cocos2d::CCFileUtils::CCFileUtils @ 0x18007ce52", "cocos2d::CCFileUtils::operator= @ 0x18007d043", "<???> @ 0x1801bee9c", "<???> @ 0x1801beea8"], "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"}