{"type": "func", "start": 6442504560, "end": 6442504659, "name": "sub_18000D170", "pseudocode": "// \n// sub_18000D170 from 0x18000d170 to 0x18000d1d3 (99 bytes)\n// \n// 8 xrefs:\n// > sub_18000CFB0 @ 0x18000d0a5\n// > sub_18000CFB0 @ 0x18000d0b7\n// > sub_18006E750 @ 0x18006e84a\n// > sub_18006E750 @ 0x18006e861\n// > sub_18006E8C0 @ 0x18006e9f7\n// > sub_18006E8C0 @ 0x18006ea0f\n// > cocos2d::CCApplication::setResourceRootPath @ 0x180076764\n// > cocos2d::CCApplication::setResourceRootPath @ 0x180076777\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:21:20 +0000\n// \n\n_OWORD *__fastcall sub_18000D170(__int64 a1, __int64 a2, _OWORD *a3)\n{\n  _OWORD *result; // rax\n  __int64 v4; // r8\n  char *v5; // r9\n\n  result = a3;\n  if ( a1 != a2 )\n  {\n    v4 = a1 + 24;\n    v5 = (char *)result - a1;\n    do\n    {\n      v4 += 32;\n      *result = 0;\n      *(_QWORD *)&v5[v4 - 40] = 0;\n      *(_QWORD *)&v5[v4 - 32] = 0;\n      *result = *(_OWORD *)(v4 - 56);\n      result[1] = *(_OWORD *)(v4 - 40);\n      *(_QWORD *)(v4 - 40) = 0;\n      result += 2;\n      *(_QWORD *)(v4 - 32) = 15;\n      *(_BYTE *)(v4 - 56) = 0;\n    }\n    while ( v4 - 24 != a2 );\n  }\n  return result;\n}", "assembly": "; \n; sub_18000D170 from 0x18000d170 to 0x18000d1d3 (99 bytes)\n; \n; 8 xrefs:\n; > sub_18000CFB0 @ 0x18000d0a5\n; > sub_18000CFB0 @ 0x18000d0b7\n; > sub_18006E750 @ 0x18006e84a\n; > sub_18006E750 @ 0x18006e861\n; > sub_18006E8C0 @ 0x18006e9f7\n; > sub_18006E8C0 @ 0x18006ea0f\n; > cocos2d::CCApplication::setResourceRootPath @ 0x180076764\n; > cocos2d::CCApplication::setResourceRootPath @ 0x180076777\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:21:20 +0000\n; \nmov     rax, r8                                                        ; +0x0, 0x18000d170\ncmp     rcx, rdx                                                       ; +0x3, 0x18000d173\njz      short locret_18000D1D2                                         ; +0x6, 0x18000d176\nmov     r9, rax                                                        ; +0x8, 0x18000d178\nlea     r8, [rcx+18h]                                                  ; +0xb, 0x18000d17b\nsub     r9, rcx                                                        ; +0xf, 0x18000d17f\nxor     r10d, r10d                                                     ; +0x12, 0x18000d182\nnop     word ptr [rax+rax+00000000h]                                   ; +0x15, 0x18000d185\nxorps   xmm0, xmm0                                                     ; +0x20, 0x18000d190\nlea     r8, [r8+20h]                                                   ; +0x23, 0x18000d193\nmovups  xmmword ptr [rax], xmm0                                        ; +0x27, 0x18000d197\nmov     [r8+r9-28h], r10                                               ; +0x2a, 0x18000d19a\nlea     rcx, [r8-18h]                                                  ; +0x2f, 0x18000d19f\nmov     [r8+r9-20h], r10                                               ; +0x33, 0x18000d1a3\nmovups  xmm0, xmmword ptr [r8-38h]                                     ; +0x38, 0x18000d1a8\nmovups  xmmword ptr [rax], xmm0                                        ; +0x3d, 0x18000d1ad\nmovups  xmm1, xmmword ptr [r8-28h]                                     ; +0x40, 0x18000d1b0\nmovups  xmmword ptr [rax+10h], xmm1                                    ; +0x45, 0x18000d1b5\nmov     [r8-28h], r10                                                  ; +0x49, 0x18000d1b9\nadd     rax, 20h ; ' '                                                 ; +0x4d, 0x18000d1bd\nmov     qword ptr [r8-20h], 0Fh                                        ; +0x51, 0x18000d1c1\nmov     [r8-38h], r10b                                                 ; +0x59, 0x18000d1c9\ncmp     rcx, rdx                                                       ; +0x5d, 0x18000d1cd\njnz     short loc_18000D190                                            ; +0x60, 0x18000d1d0\nretn                                                                   ; +0x62, 0x18000d1d2", "xrefs": ["sub_18000CFB0 @ 0x18000d0a5", "sub_18000CFB0 @ 0x18000d0b7", "sub_18006E750 @ 0x18006e84a", "sub_18006E750 @ 0x18006e861", "sub_18006E8C0 @ 0x18006e9f7", "sub_18006E8C0 @ 0x18006ea0f", "cocos2d::CCApplication::setResourceRootPath @ 0x180076764", "cocos2d::CCApplication::setResourceRootPath @ 0x180076777"], "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"}