{"type": "func", "start": 6443265328, "end": 6443265503, "name": "sub_1800C6D30", "pseudocode": "// \n// sub_1800C6D30 from 0x1800c6d30 to 0x1800c6ddf (175 bytes)\n// \n// 5 xrefs:\n// > sub_1800C6850 @ 0x1800c68ee\n// > sub_1800C6AE0 @ 0x1800c6bd8\n// > <???> @ 0x18014bf08\n// > <???> @ 0x18014bf18\n// > <???> @ 0x1801c3978\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:27 +0000\n// \n\nchar *__fastcall sub_1800C6D30(__int64 a1, __int64 a2, __int64 a3)\n{\n  char *result; // rax\n  unsigned __int64 v6; // rbx\n  size_t v7; // rbx\n  unsigned __int64 v8; // rax\n  const void *v9; // rdx\n  char *v10; // rdi\n  signed __int64 v11; // rbx\n\n  *(_DWORD *)a2 = *(_DWORD *)a3;\n  result = nullptr;\n  *(_QWORD *)(a2 + 8) = 0;\n  *(_QWORD *)(a2 + 16) = 0;\n  *(_QWORD *)(a2 + 24) = 0;\n  v6 = (__int64)(*(_QWORD *)(a3 + 16) - *(_QWORD *)(a3 + 8)) >> 2;\n  if ( v6 )\n  {\n    if ( v6 > 0x3FFFFFFFFFFFFFFFLL )\n      std::vector<void *>::_Xlen();\n    v7 = 4 * v6;\n    v8 = sub_18000CE80(v7);\n    *(_QWORD *)(a2 + 8) = v8;\n    *(_QWORD *)(a2 + 16) = v8;\n    *(_QWORD *)(a2 + 24) = v7 + v8;\n    v9 = *(const void **)(a3 + 8);\n    v10 = *(char **)(a2 + 8);\n    v11 = *(_QWORD *)(a3 + 16) - (_QWORD)v9;\n    memmove(v10, v9, v11);\n    result = &v10[4 * (v11 >> 2)];\n    *(_QWORD *)(a2 + 16) = result;\n  }\n  return result;\n}", "assembly": "; \n; sub_1800C6D30 from 0x1800c6d30 to 0x1800c6ddf (175 bytes)\n; \n; 5 xrefs:\n; > sub_1800C6850 @ 0x1800c68ee\n; > sub_1800C6AE0 @ 0x1800c6bd8\n; > <???> @ 0x18014bf08\n; > <???> @ 0x18014bf18\n; > <???> @ 0x1801c3978\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:27 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800c6d30\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800c6d35\npush    r14                                                            ; +0xa, 0x1800c6d3a\nsub     rsp, 20h                                                       ; +0xc, 0x1800c6d3c\nmov     eax, [r8]                                                      ; +0x10, 0x1800c6d40\nmov     r14, r8                                                        ; +0x13, 0x1800c6d43\nmov     [rdx], eax                                                     ; +0x16, 0x1800c6d46\nmov     rsi, rdx                                                       ; +0x18, 0x1800c6d48\nxor     eax, eax                                                       ; +0x1b, 0x1800c6d4b\nmov     [rdx+8], rax                                                   ; +0x1d, 0x1800c6d4d\nmov     [rdx+10h], rax                                                 ; +0x21, 0x1800c6d51\nmov     [rdx+18h], rax                                                 ; +0x25, 0x1800c6d55\nmov     rbx, [r8+10h]                                                  ; +0x29, 0x1800c6d59\nsub     rbx, [r8+8]                                                    ; +0x2d, 0x1800c6d5d\nsar     rbx, 2                                                         ; +0x31, 0x1800c6d61\ntest    rbx, rbx                                                       ; +0x35, 0x1800c6d65\njz      short loc_1800C6DC8                                            ; +0x38, 0x1800c6d68\nmov     rax, 3FFFFFFFFFFFFFFFh                                         ; +0x3a, 0x1800c6d6a\ncmp     rbx, rax                                                       ; +0x44, 0x1800c6d74\nja      short loc_1800C6DD9                                            ; +0x47, 0x1800c6d77\nlea     rbx, ds:0[rbx*4]                                               ; +0x49, 0x1800c6d79\nmov     [rsp+28h+arg_0], rdi                                           ; +0x51, 0x1800c6d81\nmov     rcx, rbx                                                       ; +0x56, 0x1800c6d86\ncall    sub_18000CE80                                                  ; +0x59, 0x1800c6d89\nmov     [rsi+8], rax                                                   ; +0x5e, 0x1800c6d8e\nmov     [rsi+10h], rax                                                 ; +0x62, 0x1800c6d92\nadd     rax, rbx                                                       ; +0x66, 0x1800c6d96\nmov     [rsi+18h], rax                                                 ; +0x69, 0x1800c6d99\nmov     rdx, [r14+8]; Src                                              ; +0x6d, 0x1800c6d9d\nmov     rbx, [r14+10h]                                                 ; +0x71, 0x1800c6da1\nmov     rdi, [rsi+8]                                                   ; +0x75, 0x1800c6da5\nsub     rbx, rdx                                                       ; +0x79, 0x1800c6da9\nmov     r8, rbx; Size                                                  ; +0x7c, 0x1800c6dac\nmov     rcx, rdi; void *                                               ; +0x7f, 0x1800c6daf\ncall    memmove                                                        ; +0x82, 0x1800c6db2\nsar     rbx, 2                                                         ; +0x87, 0x1800c6db7\nlea     rax, [rdi+rbx*4]                                               ; +0x8b, 0x1800c6dbb\nmov     rdi, [rsp+28h+arg_0]                                           ; +0x8f, 0x1800c6dbf\nmov     [rsi+10h], rax                                                 ; +0x94, 0x1800c6dc4\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x98, 0x1800c6dc8\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x9d, 0x1800c6dcd\nadd     rsp, 20h                                                       ; +0xa2, 0x1800c6dd2\npop     r14                                                            ; +0xa6, 0x1800c6dd6\nretn                                                                   ; +0xa8, 0x1800c6dd8\ncall    ?_Xlen@?$vector@PEAXV?$allocator@PEAX@std@@@std@@IEBAXXZ_0; std::vector<void *>::_Xlen(void) ; +0xa9, 0x1800c6dd9\ndb 0CCh                                                                ; +0xae, 0x1800c6dde", "xrefs": ["sub_1800C6850 @ 0x1800c68ee", "sub_1800C6AE0 @ 0x1800c6bd8", "<???> @ 0x18014bf08", "<???> @ 0x18014bf18", "<???> @ 0x1801c3978"], "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"}