{"type": "func", "start": 6443549376, "end": 6443549663, "name": "sub_18010C2C0", "pseudocode": "// \n// sub_18010C2C0 from 0x18010c2c0 to 0x18010c3df (287 bytes)\n// \n// 5 xrefs:\n// > sub_18010DD40 @ 0x18010dd79\n// > <???> @ 0x180190604\n// > <???> @ 0x180190614\n// > <???> @ 0x1801aea50\n// > <???> @ 0x1802018a4\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 10:54:33 +0000\n// \n\nvoid __fastcall sub_18010C2C0(__int64 a1, __int64 a2, int a3, unsigned int a4)\n{\n  unsigned int v4; // eax\n  unsigned int v5; // ebp\n  __int64 v8; // r10\n  __int64 v9; // r13\n  int v10; // r12d\n  __int64 v11; // r8\n  int v12; // r9d\n  __int64 v13; // rsi\n  unsigned __int64 v14; // r14\n  __int64 v15; // rdi\n  __int64 v16; // rdx\n  int v17; // eax\n  __int64 v18; // rdx\n  int v19; // eax\n  __int64 v20; // rdx\n  __int64 v21; // rcx\n  __int64 v22; // rdx\n  __int64 v23; // rax\n\n  if ( a4 )\n  {\n    v4 = a4;\n    v5 = 0;\n    v8 = 0;\n    v9 = a3;\n    while ( 1 )\n    {\n      v10 = 0;\n      v11 = 0;\n      if ( v9 >= 4 )\n        break;\n      if ( (int)v9 > 0 )\n      {\n        v12 = v9 * v5;\n        goto LABEL_10;\n      }\nLABEL_13:\n      ++v5;\n      v8 += 4;\n      if ( v5 >= v4 )\n        return;\n    }\n    v12 = v9 * v5;\n    v13 = a1 + 16;\n    v14 = ((unsigned __int64)(v9 - 4) >> 2) + 1;\n    v10 = 4 * v14;\n    v11 = 4 * v14;\n    v15 = (unsigned int)v9 * v5 + 2;\n    do\n    {\n      v16 = *(_QWORD *)(v13 - 16);\n      v13 += 32;\n      v17 = *(_DWORD *)(v8 + v16);\n      v18 = *(_QWORD *)(v13 - 40);\n      *(_DWORD *)(a2 + 4LL * (unsigned int)(v15 - 2)) = v17;\n      v19 = *(_DWORD *)(v8 + v18);\n      v20 = *(_QWORD *)(v13 - 24);\n      *(_DWORD *)(a2 + 4LL * (unsigned int)(v15 - 1)) = v19;\n      v21 = (unsigned int)(v15 + 1);\n      *(_DWORD *)(a2 + 4 * v15) = *(_DWORD *)(v8 + *(_QWORD *)(v13 - 32));\n      v15 = (unsigned int)(v15 + 4);\n      *(_DWORD *)(a2 + 4 * v21) = *(_DWORD *)(v8 + v20);\n      --v14;\n    }\n    while ( v14 );\n    if ( v11 < v9 )\n    {\nLABEL_10:\n      v22 = (unsigned int)(v12 + v10);\n      do\n      {\n        v23 = *(_QWORD *)(a1 + 8 * v11++);\n        *(_DWORD *)(a2 + 4 * v22) = *(_DWORD *)(v8 + v23);\n        v22 = (unsigned int)(v22 + 1);\n      }\n      while ( v11 < v9 );\n    }\n    v4 = a4;\n    goto LABEL_13;\n  }\n}", "assembly": "; \n; sub_18010C2C0 from 0x18010c2c0 to 0x18010c3df (287 bytes)\n; \n; 5 xrefs:\n; > sub_18010DD40 @ 0x18010dd79\n; > <???> @ 0x180190604\n; > <???> @ 0x180190614\n; > <???> @ 0x1801aea50\n; > <???> @ 0x1802018a4\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 10:54:33 +0000\n; \ntest    r9d, r9d                                                       ; +0x0, 0x18010c2c0\njz      locret_18010C3DE                                               ; +0x3, 0x18010c2c3\nmov     [rsp+arg_18], r9d                                              ; +0x9, 0x18010c2c9\npush    rbx                                                            ; +0xe, 0x18010c2ce\npush    rbp                                                            ; +0xf, 0x18010c2cf\npush    r13                                                            ; +0x10, 0x18010c2d0\npush    r15                                                            ; +0x12, 0x18010c2d2\nsub     rsp, 8                                                         ; +0x14, 0x18010c2d4\nmov     eax, [rsp+28h+arg_18]                                          ; +0x18, 0x18010c2d8\nxor     ebp, ebp                                                       ; +0x1c, 0x18010c2dc\nmov     [rsp+28h+arg_0], rsi                                           ; +0x1e, 0x18010c2de\nmov     rbx, rdx                                                       ; +0x23, 0x18010c2e3\nmov     [rsp+28h+arg_8], rdi                                           ; +0x26, 0x18010c2e6\nmov     r15, rcx                                                       ; +0x2b, 0x18010c2eb\nmov     [rsp+28h+arg_10], r12                                          ; +0x2e, 0x18010c2ee\nxor     r10d, r10d                                                     ; +0x33, 0x18010c2f3\nmov     [rsp+28h+var_28], r14                                          ; +0x36, 0x18010c2f6\nmovsxd  r13, r8d                                                       ; +0x3a, 0x18010c2fa\nnop     dword ptr [rax]                                                ; +0x3d, 0x18010c2fd\nxor     r12d, r12d                                                     ; +0x40, 0x18010c300\nxor     r8d, r8d                                                       ; +0x43, 0x18010c303\ncmp     r13, 4                                                         ; +0x46, 0x18010c306\njl      short loc_18010C389                                            ; +0x4a, 0x18010c30a\nmov     r9d, ebp                                                       ; +0x4c, 0x18010c30c\nlea     r14, [r13-4]                                                   ; +0x4f, 0x18010c30f\nimul    r9d, r13d                                                      ; +0x53, 0x18010c313\nlea     rsi, [r15+10h]                                                 ; +0x57, 0x18010c317\nshr     r14, 2                                                         ; +0x5b, 0x18010c31b\ninc     r14                                                            ; +0x5f, 0x18010c31f\nlea     r12d, ds:0[r14*4]                                              ; +0x62, 0x18010c322\nlea     r8, ds:0[r14*4]                                                ; +0x6a, 0x18010c32a\nlea     edi, [r9+2]                                                    ; +0x72, 0x18010c332\nnop     word ptr [rax+rax+00000000h]                                   ; +0x76, 0x18010c336\nmov     rdx, [rsi-10h]                                                 ; +0x80, 0x18010c340\nlea     ecx, [rdi-2]                                                   ; +0x84, 0x18010c344\nlea     rsi, [rsi+20h]                                                 ; +0x87, 0x18010c347\nmov     eax, [r10+rdx]                                                 ; +0x8b, 0x18010c34b\nmov     rdx, [rsi-28h]                                                 ; +0x8f, 0x18010c34f\nmov     [rbx+rcx*4], eax                                               ; +0x93, 0x18010c353\nlea     ecx, [rdi-1]                                                   ; +0x96, 0x18010c356\nmov     eax, [r10+rdx]                                                 ; +0x99, 0x18010c359\nmov     rdx, [rsi-18h]                                                 ; +0x9d, 0x18010c35d\nmov     [rbx+rcx*4], eax                                               ; +0xa1, 0x18010c361\nlea     ecx, [rdi+1]                                                   ; +0xa4, 0x18010c364\nmov     rax, [rsi-20h]                                                 ; +0xa7, 0x18010c367\nmov     eax, [r10+rax]                                                 ; +0xab, 0x18010c36b\nmov     [rbx+rdi*4], eax                                               ; +0xaf, 0x18010c36f\nlea     edi, [rdi+4]                                                   ; +0xb2, 0x18010c372\nmov     eax, [r10+rdx]                                                 ; +0xb5, 0x18010c375\nmov     [rbx+rcx*4], eax                                               ; +0xb9, 0x18010c379\nsub     r14, 1                                                         ; +0xbc, 0x18010c37c\njnz     short loc_18010C340                                            ; +0xc0, 0x18010c380\ncmp     r8, r13                                                        ; +0xc2, 0x18010c382\njl      short loc_18010C395                                            ; +0xc5, 0x18010c385\njmp     short loc_18010C3AF                                            ; +0xc7, 0x18010c387\ntest    r13d, r13d                                                     ; +0xc9, 0x18010c389\njle     short loc_18010C3B3                                            ; +0xcc, 0x18010c38c\nmov     r9d, ebp                                                       ; +0xce, 0x18010c38e\nimul    r9d, r13d                                                      ; +0xd1, 0x18010c391\nlea     edx, [r9+r12]                                                  ; +0xd5, 0x18010c395\nmov     rax, [r15+r8*8]                                                ; +0xd9, 0x18010c399\ninc     r8                                                             ; +0xdd, 0x18010c39d\nmov     eax, [r10+rax]                                                 ; +0xe0, 0x18010c3a0\nmov     [rbx+rdx*4], eax                                               ; +0xe4, 0x18010c3a4\nlea     edx, [rdx+1]                                                   ; +0xe7, 0x18010c3a7\ncmp     r8, r13                                                        ; +0xea, 0x18010c3aa\njl      short loc_18010C399                                            ; +0xed, 0x18010c3ad\nmov     eax, [rsp+28h+arg_18]                                          ; +0xef, 0x18010c3af\ninc     ebp                                                            ; +0xf3, 0x18010c3b3\nadd     r10, 4                                                         ; +0xf5, 0x18010c3b5\ncmp     ebp, eax                                                       ; +0xf9, 0x18010c3b9\njb      loc_18010C300                                                  ; +0xfb, 0x18010c3bb\nmov     r14, [rsp+28h+var_28]                                          ; +0x101, 0x18010c3c1\nmov     r12, [rsp+28h+arg_10]                                          ; +0x105, 0x18010c3c5\nmov     rdi, [rsp+28h+arg_8]                                           ; +0x10a, 0x18010c3ca\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x10f, 0x18010c3cf\nadd     rsp, 8                                                         ; +0x114, 0x18010c3d4\npop     r15                                                            ; +0x118, 0x18010c3d8\npop     r13                                                            ; +0x11a, 0x18010c3da\npop     rbp                                                            ; +0x11c, 0x18010c3dc\npop     rbx                                                            ; +0x11d, 0x18010c3dd\nretn                                                                   ; +0x11e, 0x18010c3de", "xrefs": ["sub_18010DD40 @ 0x18010dd79", "<???> @ 0x180190604", "<???> @ 0x180190614", "<???> @ 0x1801aea50", "<???> @ 0x1802018a4"], "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"}