{"type": "func", "start": 6442698848, "end": 6442699040, "name": "sub_18003C860", "pseudocode": "// \n// sub_18003C860 from 0x18003c860 to 0x18003c920 (192 bytes)\n// \n// 4 xrefs:\n// > sub_18003B680 @ 0x18003b6de\n// > <???> @ 0x18018086c\n// > <???> @ 0x18018087c\n// > <???> @ 0x1801f7dd0\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__int64 __fastcall sub_18003C860(__int64 a1, __int64 a2, __int64 *a3)\n{\n  int v3; // eax\n  int v6; // edi\n  __int64 v7; // rax\n  int v9; // [rsp+30h] [rbp-18h]\n  __int64 v10; // [rsp+50h] [rbp+8h] BYREF\n\n  v3 = *(_DWORD *)(a1 + 536);\n  if ( v3 && *(_QWORD *)(a1 + 544) )\n  {\n    v6 = 0;\n    if ( v3 > 0 )\n    {\n      do\n      {\n        v7 = *a3;\n        v10 = *(_QWORD *)(a1 + 544) + 316LL * v6;\n        LOBYTE(v9) = 0;\n        (*(void (__fastcall **)(__int64 *, _QWORD, __int64, _QWORD, __int64 *, _DWORD, int))(v7 + 264))(\n          a3,\n          *(unsigned int *)(v10 + 48),\n          2,\n          *(_QWORD *)(v10 + 32),\n          &v10,\n          0,\n          v9);\n        ++v6;\n      }\n      while ( v6 < *(_DWORD *)(a1 + 536) );\n    }\n    sub_1800E12D0(a3);\n    a3[32] = *(_QWORD *)(a1 + 544);\n    *(_QWORD *)(a1 + 544) = 0;\n  }\n  return 0;\n}", "assembly": "; \n; sub_18003C860 from 0x18003c860 to 0x18003c920 (192 bytes)\n; \n; 4 xrefs:\n; > sub_18003B680 @ 0x18003b6de\n; > <???> @ 0x18018086c\n; > <???> @ 0x18018087c\n; > <???> @ 0x1801f7dd0\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_18], rbx                                              ; +0x0, 0x18003c860\npush    rsi                                                            ; +0x5, 0x18003c865\nsub     rsp, 40h                                                       ; +0x6, 0x18003c866\nmov     eax, [rcx+218h]                                                ; +0xa, 0x18003c86a\nmov     rsi, r8                                                        ; +0x10, 0x18003c870\nmov     rbx, rcx                                                       ; +0x13, 0x18003c873\ntest    eax, eax                                                       ; +0x16, 0x18003c876\njz      loc_18003C913                                                  ; +0x18, 0x18003c878\ncmp     qword ptr [rcx+220h], 0                                        ; +0x1e, 0x18003c87e\njz      loc_18003C913                                                  ; +0x26, 0x18003c886\nmov     [rsp+48h+arg_8], rbp                                           ; +0x2c, 0x18003c88c\nxor     ebp, ebp                                                       ; +0x31, 0x18003c891\nmov     [rsp+48h+arg_10], rdi                                          ; +0x33, 0x18003c893\nmov     edi, ebp                                                       ; +0x38, 0x18003c898\ntest    eax, eax                                                       ; +0x3a, 0x18003c89a\njle     short loc_18003C8EC                                            ; +0x3c, 0x18003c89c\nxchg    ax, ax                                                         ; +0x3e, 0x18003c89e\nlea     rdx, [rsp+48h+arg_0]                                           ; +0x40, 0x18003c8a0\nmovsxd  rax, edi                                                       ; +0x45, 0x18003c8a5\nimul    rcx, rax, 13Ch                                                 ; +0x48, 0x18003c8a8\nmov     rax, [rsi]                                                     ; +0x4f, 0x18003c8af\nmov     r8d, 2                                                         ; +0x52, 0x18003c8b2\nadd     rcx, [rbx+220h]                                                ; +0x58, 0x18003c8b8\nmov     [rsp+48h+arg_0], rcx                                           ; +0x5f, 0x18003c8bf\nmov     byte ptr [rsp+48h+var_18], bpl                                 ; +0x64, 0x18003c8c4\nmov     [rsp+48h+var_20], ebp                                          ; +0x69, 0x18003c8c9\nmov     r9, [rcx+20h]                                                  ; +0x6d, 0x18003c8cd\nmov     [rsp+48h+var_28], rdx                                          ; +0x71, 0x18003c8d1\nmov     edx, [rcx+30h]                                                 ; +0x76, 0x18003c8d6\nmov     rcx, rsi                                                       ; +0x79, 0x18003c8d9\ncall    qword ptr [rax+108h]                                           ; +0x7c, 0x18003c8dc\ninc     edi                                                            ; +0x82, 0x18003c8e2\ncmp     edi, [rbx+218h]                                                ; +0x84, 0x18003c8e4\njl      short loc_18003C8A0                                            ; +0x8a, 0x18003c8ea\nmov     rcx, rsi                                                       ; +0x8c, 0x18003c8ec\ncall    sub_1800E12D0                                                  ; +0x8f, 0x18003c8ef\nmov     rax, [rbx+220h]                                                ; +0x94, 0x18003c8f4\nmov     rdi, [rsp+48h+arg_10]                                          ; +0x9b, 0x18003c8fb\nmov     [rsi+100h], rax                                                ; +0xa0, 0x18003c900\nmov     [rbx+220h], rbp                                                ; +0xa7, 0x18003c907\nmov     rbp, [rsp+48h+arg_8]                                           ; +0xae, 0x18003c90e\nmov     rbx, [rsp+48h+arg_18]                                          ; +0xb3, 0x18003c913\nxor     eax, eax                                                       ; +0xb8, 0x18003c918\nadd     rsp, 40h                                                       ; +0xba, 0x18003c91a\npop     rsi                                                            ; +0xbe, 0x18003c91e\nretn                                                                   ; +0xbf, 0x18003c91f", "xrefs": ["sub_18003B680 @ 0x18003b6de", "<???> @ 0x18018086c", "<???> @ 0x18018087c", "<???> @ 0x1801f7dd0"], "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"}