{"type": "func", "start": 6442727648, "end": 6442727812, "name": "sub_1800438E0", "pseudocode": "// \n// sub_1800438E0 from 0x1800438e0 to 0x180043984 (164 bytes)\n// \n// 9 xrefs:\n// > fmt::BasicFormatter<char>::Format @ 0x180041a74\n// > fmt::BasicFormatter<char>::Format @ 0x180041a8f\n// > fmt::BasicFormatter<char>::Format @ 0x180041b4b\n// > fmt::internal::PrintfParser<char>::Format @ 0x180041dbb\n// > fmt::internal::PrintfParser<char>::Format @ 0x180041dcb\n// > fmt::internal::PrintfParser<char>::Format @ 0x18004244d\n// > <???> @ 0x18013fb7c\n// > <???> @ 0x18013fb8c\n// > <???> @ 0x1801bb668\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:40 +0000\n// \n\nvoid *__fastcall sub_1800438E0(__int64 a1, const void *a2, __int64 a3)\n{\n  size_t v4; // rsi\n  size_t v6; // rdx\n  size_t v7; // rcx\n  size_t v8; // rdx\n  void *v9; // r14\n  void *v10; // rcx\n  void *result; // rax\n\n  v4 = a3 - (_QWORD)a2;\n  v6 = *(_QWORD *)(a1 + 8);\n  v7 = v4 + *(_QWORD *)a1;\n  if ( v7 > v6 )\n  {\n    v8 = (v6 >> 1) + v6;\n    if ( v7 < v8 )\n      v7 = v8;\n    *(_QWORD *)(a1 + 8) = v7;\n    v9 = (void *)sub_1800E4C6C(v7);\n    memmove(v9, *(const void **)(a1 + 16), *(_QWORD *)a1);\n    v10 = *(void **)(a1 + 16);\n    if ( v10 != (void *)(a1 + 24) )\n      j_j_free_0(v10);\n    *(_QWORD *)(a1 + 16) = v9;\n  }\n  result = memmove((void *)(*(_QWORD *)a1 + *(_QWORD *)(a1 + 16)), a2, v4);\n  *(_QWORD *)a1 += v4;\n  return result;\n}", "assembly": "; \n; sub_1800438E0 from 0x1800438e0 to 0x180043984 (164 bytes)\n; \n; 9 xrefs:\n; > fmt::BasicFormatter<char>::Format @ 0x180041a74\n; > fmt::BasicFormatter<char>::Format @ 0x180041a8f\n; > fmt::BasicFormatter<char>::Format @ 0x180041b4b\n; > fmt::internal::PrintfParser<char>::Format @ 0x180041dbb\n; > fmt::internal::PrintfParser<char>::Format @ 0x180041dcb\n; > fmt::internal::PrintfParser<char>::Format @ 0x18004244d\n; > <???> @ 0x18013fb7c\n; > <???> @ 0x18013fb8c\n; > <???> @ 0x1801bb668\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:40 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800438e0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800438e5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800438ea\npush    rdi                                                            ; +0xf, 0x1800438ef\nsub     rsp, 20h                                                       ; +0x10, 0x1800438f0\nmov     rbx, rcx                                                       ; +0x14, 0x1800438f4\nmov     rsi, r8                                                        ; +0x17, 0x1800438f7\nsub     rsi, rdx                                                       ; +0x1a, 0x1800438fa\nmov     rbp, rdx                                                       ; +0x1d, 0x1800438fd\nmov     rdx, [rcx+8]                                                   ; +0x20, 0x180043900\nmov     rcx, [rcx]                                                     ; +0x24, 0x180043904\nadd     rcx, rsi                                                       ; +0x27, 0x180043907\ncmp     rcx, rdx                                                       ; +0x2a, 0x18004390a\njbe     short loc_18004395A                                            ; +0x2d, 0x18004390d\nmov     rax, rdx                                                       ; +0x2f, 0x18004390f\nmov     [rsp+28h+arg_0], r14                                           ; +0x32, 0x180043912\nshr     rax, 1                                                         ; +0x37, 0x180043917\nadd     rdx, rax                                                       ; +0x3a, 0x18004391a\ncmp     rcx, rdx                                                       ; +0x3d, 0x18004391d\ncmovb   rcx, rdx; Size                                                 ; +0x40, 0x180043920\nmov     [rbx+8], rcx                                                   ; +0x44, 0x180043924\ncall    sub_1800E4C6C                                                  ; +0x48, 0x180043928\nmov     r8, [rbx]; Size                                                ; +0x4d, 0x18004392d\nmov     rcx, rax; void *                                               ; +0x50, 0x180043930\nmov     rdx, [rbx+10h]; Src                                            ; +0x53, 0x180043933\nmov     r14, rax                                                       ; +0x57, 0x180043937\ncall    memmove                                                        ; +0x5a, 0x18004393a\nmov     rcx, [rbx+10h]; Block                                          ; +0x5f, 0x18004393f\nlea     rdx, [rbx+18h]                                                 ; +0x63, 0x180043943\ncmp     rcx, rdx                                                       ; +0x67, 0x180043947\njz      short loc_180043951                                            ; +0x6a, 0x18004394a\ncall    j_j_free_0                                                     ; +0x6c, 0x18004394c\nmov     [rbx+10h], r14                                                 ; +0x71, 0x180043951\nmov     r14, [rsp+28h+arg_0]                                           ; +0x75, 0x180043955\nmov     rcx, [rbx+10h]                                                 ; +0x7a, 0x18004395a\nmov     r8, rsi; Size                                                  ; +0x7e, 0x18004395e\nadd     rcx, [rbx]; void *                                             ; +0x81, 0x180043961\nmov     rdx, rbp; Src                                                  ; +0x84, 0x180043964\ncall    memmove                                                        ; +0x87, 0x180043967\nadd     [rbx], rsi                                                     ; +0x8c, 0x18004396c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x8f, 0x18004396f\nmov     rsi, [rsp+28h+arg_18]                                          ; +0x94, 0x180043974\nmov     rbp, [rsp+28h+arg_10]                                          ; +0x99, 0x180043979\nadd     rsp, 20h                                                       ; +0x9e, 0x18004397e\npop     rdi                                                            ; +0xa2, 0x180043982\nretn                                                                   ; +0xa3, 0x180043983", "xrefs": ["fmt::BasicFormatter<char>::Format @ 0x180041a74", "fmt::BasicFormatter<char>::Format @ 0x180041a8f", "fmt::BasicFormatter<char>::Format @ 0x180041b4b", "fmt::internal::PrintfParser<char>::Format @ 0x180041dbb", "fmt::internal::PrintfParser<char>::Format @ 0x180041dcb", "fmt::internal::PrintfParser<char>::Format @ 0x18004244d", "<???> @ 0x18013fb7c", "<???> @ 0x18013fb8c", "<???> @ 0x1801bb668"], "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"}