; ; sub_1800465B0 from 0x1800465b0 to 0x180046804 (596 bytes) ; ; 2 xrefs: ; > sub_180045B60 @ 0x180046053 ; > @ 0x1801f8208 ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 10:53:13 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1800465b0 mov [rsp+arg_10], rsi ; +0x5, 0x1800465b5 mov [rsp+arg_18], rdi ; +0xa, 0x1800465ba push r14 ; +0xf, 0x1800465bf sub rsp, 20h ; +0x11, 0x1800465c1 mov r9d, cs:dword_180165A58 ; +0x15, 0x1800465c5 mov rbx, rdx ; +0x1c, 0x1800465cc mov rdx, [rdx+8] ; +0x1f, 0x1800465cf mov rdi, r8 ; +0x23, 0x1800465d3 lea r8, [rsp+28h+arg_8] ; +0x26, 0x1800465d6 mov rsi, rcx ; +0x2b, 0x1800465db mov rdx, [rdx+78h] ; +0x2e, 0x1800465de call sub_180041D20 ; +0x32, 0x1800465e2 test eax, eax ; +0x37, 0x1800465e7 jz short loc_180046642 ; +0x39, 0x1800465e9 mov eax, [rsp+28h+arg_8] ; +0x3b, 0x1800465eb lea r8, [rsp+28h+arg_8] ; +0x3f, 0x1800465ef mov [rdi], eax ; +0x44, 0x1800465f4 mov rcx, rsi ; +0x46, 0x1800465f6 mov rdx, [rbx+8] ; +0x49, 0x1800465f9 mov r9d, cs:dword_180165A5C ; +0x4d, 0x1800465fd mov rdx, [rdx+78h] ; +0x54, 0x180046604 call sub_180041D20 ; +0x58, 0x180046608 test eax, eax ; +0x5d, 0x18004660d jz short loc_180046642 ; +0x5f, 0x18004660f mov eax, [rsp+28h+arg_8] ; +0x61, 0x180046611 lea rcx, [rax+1]; Size ; +0x65, 0x180046615 cmp rcx, rax ; +0x69, 0x180046619 jnb short loc_180046628 ; +0x6c, 0x18004661c mov qword ptr [rdi+8], 0 ; +0x6e, 0x18004661e jmp short loc_180046639 ; +0x76, 0x180046626 call j__malloc_base ; +0x78, 0x180046628 mov [rdi+8], rax ; +0x7d, 0x18004662d mov r8, rax ; +0x81, 0x180046631 test rax, rax ; +0x84, 0x180046634 jnz short loc_18004665A ; +0x87, 0x180046637 mov rax, [rbx] ; +0x89, 0x180046639 mov dword ptr [rax], 8 ; +0x8c, 0x18004663c xor eax, eax ; +0x92, 0x180046642 mov rbx, [rsp+28h+arg_0] ; +0x94, 0x180046644 mov rsi, [rsp+28h+arg_10] ; +0x99, 0x180046649 mov rdi, [rsp+28h+arg_18] ; +0x9e, 0x18004664e add rsp, 20h ; +0xa3, 0x180046653 pop r14 ; +0xa7, 0x180046657 retn ; +0xa9, 0x180046659 mov eax, [rsp+28h+arg_8] ; +0xaa, 0x18004665a test eax, eax ; +0xae, 0x18004665e jz short loc_18004667D ; +0xb0, 0x180046660 mov rdx, [rbx+8] ; +0xb2, 0x180046662 mov r9d, eax ; +0xb6, 0x180046666 mov rcx, rsi ; +0xb9, 0x180046669 mov rdx, [rdx+78h] ; +0xbc, 0x18004666c call sub_180041BB0 ; +0xc0, 0x180046670 test eax, eax ; +0xc5, 0x180046675 jz short loc_180046642 ; +0xc7, 0x180046677 mov eax, [rsp+28h+arg_8] ; +0xc9, 0x180046679 mov ecx, eax ; +0xcd, 0x18004667d lea r8, [rsp+28h+arg_8] ; +0xcf, 0x18004667f mov rax, [rdi+8] ; +0xd4, 0x180046684 mov byte ptr [rcx+rax], 0 ; +0xd8, 0x180046688 mov rcx, rsi ; +0xdc, 0x18004668c mov rdx, [rbx+8] ; +0xdf, 0x18004668f mov r9d, cs:dword_180165A60 ; +0xe3, 0x180046693 mov rdx, [rdx+78h] ; +0xea, 0x18004669a call sub_180041D20 ; +0xee, 0x18004669e test eax, eax ; +0xf3, 0x1800466a3 jz short loc_180046642 ; +0xf5, 0x1800466a5 mov eax, [rsp+28h+arg_8] ; +0xf7, 0x1800466a7 lea rcx, [rax+1]; Size ; +0xfb, 0x1800466ab cmp rcx, rax ; +0xff, 0x1800466af jnb short loc_1800466C1 ; +0x102, 0x1800466b2 mov qword ptr [rdi+10h], 0 ; +0x104, 0x1800466b4 jmp loc_180046639 ; +0x10c, 0x1800466bc call j__malloc_base ; +0x111, 0x1800466c1 mov [rdi+10h], rax ; +0x116, 0x1800466c6 mov r8, rax ; +0x11a, 0x1800466ca test rax, rax ; +0x11d, 0x1800466cd jz loc_180046639 ; +0x120, 0x1800466d0 mov eax, [rsp+28h+arg_8] ; +0x126, 0x1800466d6 test eax, eax ; +0x12a, 0x1800466da jz short loc_1800466FD ; +0x12c, 0x1800466dc mov rdx, [rbx+8] ; +0x12e, 0x1800466de mov r9d, eax ; +0x132, 0x1800466e2 mov rcx, rsi ; +0x135, 0x1800466e5 mov rdx, [rdx+78h] ; +0x138, 0x1800466e8 call sub_180041BB0 ; +0x13c, 0x1800466ec test eax, eax ; +0x141, 0x1800466f1 jz loc_180046642 ; +0x143, 0x1800466f3 mov eax, [rsp+28h+arg_8] ; +0x149, 0x1800466f9 mov ecx, eax ; +0x14d, 0x1800466fd lea r8, [rdi+18h] ; +0x14f, 0x1800466ff mov rax, [rdi+10h] ; +0x153, 0x180046703 mov byte ptr [rcx+rax], 0 ; +0x157, 0x180046707 mov rcx, rsi ; +0x15b, 0x18004670b mov rdx, [rbx+8] ; +0x15e, 0x18004670e mov r9d, cs:dword_180165A64 ; +0x162, 0x180046712 mov rdx, [rdx+78h] ; +0x169, 0x180046719 call sub_180041D20 ; +0x16d, 0x18004671d test eax, eax ; +0x172, 0x180046722 jz loc_180046642 ; +0x174, 0x180046724 mov rdx, [rbx+8] ; +0x17a, 0x18004672a lea r8, [rdi+1Ch] ; +0x17e, 0x18004672e mov r9d, cs:dword_180165A68 ; +0x182, 0x180046732 mov rcx, rsi ; +0x189, 0x180046739 mov rdx, [rdx+78h] ; +0x18c, 0x18004673c call sub_180041D20 ; +0x190, 0x180046740 test eax, eax ; +0x195, 0x180046745 jz loc_180046642 ; +0x197, 0x180046747 mov rdx, [rbx+8] ; +0x19d, 0x18004674d lea r8, [rdi+20h] ; +0x1a1, 0x180046751 mov r9d, cs:dword_180165A6C ; +0x1a5, 0x180046755 mov rcx, rsi ; +0x1ac, 0x18004675c mov rdx, [rdx+78h] ; +0x1af, 0x18004675f call sub_180041D20 ; +0x1b3, 0x180046763 test eax, eax ; +0x1b8, 0x180046768 jz loc_180046642 ; +0x1ba, 0x18004676a mov rdx, [rbx+8] ; +0x1c0, 0x180046770 lea r8, [rdi+24h] ; +0x1c4, 0x180046774 mov r9d, cs:dword_180165A70 ; +0x1c8, 0x180046778 mov rcx, rsi ; +0x1cf, 0x18004677f mov rdx, [rdx+78h] ; +0x1d2, 0x180046782 call sub_180041D20 ; +0x1d6, 0x180046786 test eax, eax ; +0x1db, 0x18004678b jz loc_180046642 ; +0x1dd, 0x18004678d mov rdx, [rbx+8] ; +0x1e3, 0x180046793 lea r8, [rdi+28h] ; +0x1e7, 0x180046797 mov r9d, cs:dword_180165A74 ; +0x1eb, 0x18004679b mov rcx, rsi ; +0x1f2, 0x1800467a2 mov rdx, [rdx+78h] ; +0x1f5, 0x1800467a5 call sub_180041D20 ; +0x1f9, 0x1800467a9 test eax, eax ; +0x1fe, 0x1800467ae jz loc_180046642 ; +0x200, 0x1800467b0 mov eax, [rdi+28h] ; +0x206, 0x1800467b6 test eax, eax ; +0x209, 0x1800467b9 lea rcx, [rax+1] ; +0x20b, 0x1800467bb cmovnz rcx, rax; Size ; +0x20f, 0x1800467bf call j__malloc_base ; +0x213, 0x1800467c3 mov [rdi+30h], rax ; +0x218, 0x1800467c8 mov r8, rax ; +0x21c, 0x1800467cc test rax, rax ; +0x21f, 0x1800467cf jz loc_180046639 ; +0x222, 0x1800467d2 mov eax, [rdi+28h] ; +0x228, 0x1800467d8 test eax, eax ; +0x22b, 0x1800467db jz short loc_1800467FA ; +0x22d, 0x1800467dd mov rdx, [rbx+8] ; +0x22f, 0x1800467df mov r9d, eax ; +0x233, 0x1800467e3 mov rcx, rsi ; +0x236, 0x1800467e6 mov rdx, [rdx+78h] ; +0x239, 0x1800467e9 call sub_180041BB0 ; +0x23d, 0x1800467ed test eax, eax ; +0x242, 0x1800467f2 jz loc_180046642 ; +0x244, 0x1800467f4 mov eax, 1 ; +0x24a, 0x1800467fa jmp loc_180046644 ; +0x24f, 0x1800467ff