{"type": "func", "start": 6442732464, "end": 6442732581, "name": "sub_180044BB0", "pseudocode": "// \n// sub_180044BB0 from 0x180044bb0 to 0x180044c25 (117 bytes)\n// \n// 39 xrefs:\n// > sub_18003DC70 @ 0x18003e011\n// > sub_18003DC70 @ 0x18003e07d\n// > sub_18003E5C0 @ 0x18003e964\n// > sub_18003E5C0 @ 0x18003e9cd\n// > sub_1800407B0 @ 0x180040858\n// > sub_1800407B0 @ 0x1800408af\n// > sub_1800407B0 @ 0x1800408ec\n// > sub_1800407B0 @ 0x180040918\n// > sub_180040E10 @ 0x180040e45\n// > sub_180040E10 @ 0x180040eaf\n// > fmt::internal::UTF16ToUTF8::UTF16ToUTF8 @ 0x180041266\n// > fmt::BasicWriter<char>::operator<< @ 0x1800413be\n// > fmt::internal::UTF16ToUTF8::Convert @ 0x1800417a6\n// > fmt::internal::PrintfParser<char>::Format @ 0x180042246\n// > fmt::internal::PrintfParser<char>::Format @ 0x1800422fb\n// > fmt::internal::PrintfParser<char>::Format @ 0x18004234b\n// > fmt::internal::PrintfParser<char>::Format @ 0x1800423d0\n// > fmt::internal::PrintfParser<char>::Format @ 0x1800423f1\n// > fmt::internal::PrintfParser<char>::Format @ 0x180042473\n// > sub_180042D70 @ 0x180042e0c\n// > sub_180042D70 @ 0x180042e2d\n// > sub_180042D70 @ 0x180042e5b\n// > sub_180042D70 @ 0x180042f10\n// > sub_180042D70 @ 0x180042f31\n// > sub_180042FA0 @ 0x18004305e\n// > sub_180042FA0 @ 0x1800430e1\n// > sub_180042FA0 @ 0x180043102\n// > sub_180042FA0 @ 0x180043191\n// > sub_180042FA0 @ 0x1800431b2\n// > sub_180042FA0 @ 0x1800431e5\n// > fmt::BasicFormatter<char>::format @ 0x180043cde\n// > fmt::BasicFormatter<char>::format @ 0x180043d65\n// > fmt::BasicFormatter<char>::format @ 0x180043db8\n// > fmt::BasicFormatter<char>::format @ 0x180043e4f\n// > fmt::BasicFormatter<char>::format @ 0x180043e81\n// > fmt::BasicFormatter<char>::format @ 0x180043ebc\n// > <???> @ 0x18013fb58\n// > <???> @ 0x18013fb68\n// > <???> @ 0x1801bb6d4\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_180044BB0(__int64 a1, size_t a2)\n{\n  size_t v4; // rcx\n  size_t v5; // r8\n  size_t v6; // rcx\n  void *v7; // rsi\n  void *v8; // rcx\n\n  v4 = *(_QWORD *)(a1 + 8);\n  if ( a2 > v4 )\n  {\n    v5 = v4 + (v4 >> 1);\n    v6 = a2;\n    if ( a2 < v5 )\n      v6 = v5;\n    *(_QWORD *)(a1 + 8) = v6;\n    v7 = (void *)sub_1800E4C6C(v6);\n    memmove(v7, *(const void **)(a1 + 16), *(_QWORD *)a1);\n    v8 = *(void **)(a1 + 16);\n    if ( v8 != (void *)(a1 + 24) )\n      j_j_free_0(v8);\n    *(_QWORD *)(a1 + 16) = v7;\n  }\n  *(_QWORD *)a1 = a2;\n}", "assembly": "; \n; sub_180044BB0 from 0x180044bb0 to 0x180044c25 (117 bytes)\n; \n; 39 xrefs:\n; > sub_18003DC70 @ 0x18003e011\n; > sub_18003DC70 @ 0x18003e07d\n; > sub_18003E5C0 @ 0x18003e964\n; > sub_18003E5C0 @ 0x18003e9cd\n; > sub_1800407B0 @ 0x180040858\n; > sub_1800407B0 @ 0x1800408af\n; > sub_1800407B0 @ 0x1800408ec\n; > sub_1800407B0 @ 0x180040918\n; > sub_180040E10 @ 0x180040e45\n; > sub_180040E10 @ 0x180040eaf\n; > fmt::internal::UTF16ToUTF8::UTF16ToUTF8 @ 0x180041266\n; > fmt::BasicWriter<char>::operator<< @ 0x1800413be\n; > fmt::internal::UTF16ToUTF8::Convert @ 0x1800417a6\n; > fmt::internal::PrintfParser<char>::Format @ 0x180042246\n; > fmt::internal::PrintfParser<char>::Format @ 0x1800422fb\n; > fmt::internal::PrintfParser<char>::Format @ 0x18004234b\n; > fmt::internal::PrintfParser<char>::Format @ 0x1800423d0\n; > fmt::internal::PrintfParser<char>::Format @ 0x1800423f1\n; > fmt::internal::PrintfParser<char>::Format @ 0x180042473\n; > sub_180042D70 @ 0x180042e0c\n; > sub_180042D70 @ 0x180042e2d\n; > sub_180042D70 @ 0x180042e5b\n; > sub_180042D70 @ 0x180042f10\n; > sub_180042D70 @ 0x180042f31\n; > sub_180042FA0 @ 0x18004305e\n; > sub_180042FA0 @ 0x1800430e1\n; > sub_180042FA0 @ 0x180043102\n; > sub_180042FA0 @ 0x180043191\n; > sub_180042FA0 @ 0x1800431b2\n; > sub_180042FA0 @ 0x1800431e5\n; > fmt::BasicFormatter<char>::format @ 0x180043cde\n; > fmt::BasicFormatter<char>::format @ 0x180043d65\n; > fmt::BasicFormatter<char>::format @ 0x180043db8\n; > fmt::BasicFormatter<char>::format @ 0x180043e4f\n; > fmt::BasicFormatter<char>::format @ 0x180043e81\n; > fmt::BasicFormatter<char>::format @ 0x180043ebc\n; > <???> @ 0x18013fb58\n; > <???> @ 0x18013fb68\n; > <???> @ 0x1801bb6d4\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, 0x180044bb0\npush    rdi                                                            ; +0x5, 0x180044bb5\nsub     rsp, 20h                                                       ; +0x6, 0x180044bb6\nmov     rbx, rcx                                                       ; +0xa, 0x180044bba\nmov     rdi, rdx                                                       ; +0xd, 0x180044bbd\nmov     rcx, [rcx+8]                                                   ; +0x10, 0x180044bc0\ncmp     rdx, rcx                                                       ; +0x14, 0x180044bc4\njbe     short loc_180044C17                                            ; +0x17, 0x180044bc7\nmov     r8, rcx                                                        ; +0x19, 0x180044bc9\nmov     [rsp+28h+arg_0], rsi                                           ; +0x1c, 0x180044bcc\nshr     r8, 1                                                          ; +0x21, 0x180044bd1\nadd     r8, rcx                                                        ; +0x24, 0x180044bd4\nmov     rcx, rdx                                                       ; +0x27, 0x180044bd7\ncmp     rdx, r8                                                        ; +0x2a, 0x180044bda\ncmovb   rcx, r8; Size                                                  ; +0x2d, 0x180044bdd\nmov     [rbx+8], rcx                                                   ; +0x31, 0x180044be1\ncall    sub_1800E4C6C                                                  ; +0x35, 0x180044be5\nmov     r8, [rbx]; Size                                                ; +0x3a, 0x180044bea\nmov     rcx, rax; void *                                               ; +0x3d, 0x180044bed\nmov     rdx, [rbx+10h]; Src                                            ; +0x40, 0x180044bf0\nmov     rsi, rax                                                       ; +0x44, 0x180044bf4\ncall    memmove                                                        ; +0x47, 0x180044bf7\nmov     rcx, [rbx+10h]; Block                                          ; +0x4c, 0x180044bfc\nlea     rdx, [rbx+18h]                                                 ; +0x50, 0x180044c00\ncmp     rcx, rdx                                                       ; +0x54, 0x180044c04\njz      short loc_180044C0E                                            ; +0x57, 0x180044c07\ncall    j_j_free_0                                                     ; +0x59, 0x180044c09\nmov     [rbx+10h], rsi                                                 ; +0x5e, 0x180044c0e\nmov     rsi, [rsp+28h+arg_0]                                           ; +0x62, 0x180044c12\nmov     [rbx], rdi                                                     ; +0x67, 0x180044c17\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x6a, 0x180044c1a\nadd     rsp, 20h                                                       ; +0x6f, 0x180044c1f\npop     rdi                                                            ; +0x73, 0x180044c23\nretn                                                                   ; +0x74, 0x180044c24", "xrefs": ["sub_18003DC70 @ 0x18003e011", "sub_18003DC70 @ 0x18003e07d", "sub_18003E5C0 @ 0x18003e964", "sub_18003E5C0 @ 0x18003e9cd", "sub_1800407B0 @ 0x180040858", "sub_1800407B0 @ 0x1800408af", "sub_1800407B0 @ 0x1800408ec", "sub_1800407B0 @ 0x180040918", "sub_180040E10 @ 0x180040e45", "sub_180040E10 @ 0x180040eaf", "fmt::internal::UTF16ToUTF8::UTF16ToUTF8 @ 0x180041266", "fmt::BasicWriter<char>::operator<< @ 0x1800413be", "fmt::internal::UTF16ToUTF8::Convert @ 0x1800417a6", "fmt::internal::PrintfParser<char>::Format @ 0x180042246", "fmt::internal::PrintfParser<char>::Format @ 0x1800422fb", "fmt::internal::PrintfParser<char>::Format @ 0x18004234b", "fmt::internal::PrintfParser<char>::Format @ 0x1800423d0", "fmt::internal::PrintfParser<char>::Format @ 0x1800423f1", "fmt::internal::PrintfParser<char>::Format @ 0x180042473", "sub_180042D70 @ 0x180042e0c", "sub_180042D70 @ 0x180042e2d", "sub_180042D70 @ 0x180042e5b", "sub_180042D70 @ 0x180042f10", "sub_180042D70 @ 0x180042f31", "sub_180042FA0 @ 0x18004305e", "sub_180042FA0 @ 0x1800430e1", "sub_180042FA0 @ 0x180043102", "sub_180042FA0 @ 0x180043191", "sub_180042FA0 @ 0x1800431b2", "sub_180042FA0 @ 0x1800431e5", "fmt::BasicFormatter<char>::format @ 0x180043cde", "fmt::BasicFormatter<char>::format @ 0x180043d65", "fmt::BasicFormatter<char>::format @ 0x180043db8", "fmt::BasicFormatter<char>::format @ 0x180043e4f", "fmt::BasicFormatter<char>::format @ 0x180043e81", "fmt::BasicFormatter<char>::format @ 0x180043ebc", "<???> @ 0x18013fb58", "<???> @ 0x18013fb68", "<???> @ 0x1801bb6d4"], "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"}