; ; sub_180043C20 from 0x180043c20 to 0x180043c8f (111 bytes) ; ; 2 xrefs: ; > sub_180044E10 @ 0x180044f9a ; > @ 0x1801f8100 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; mov [rsp+arg_0], rbx ; +0x0, 0x180043c20 mov [rsp+arg_8], rsi ; +0x5, 0x180043c25 push rdi ; +0xa, 0x180043c2a sub rsp, 20h ; +0xb, 0x180043c2b mov eax, ecx ; +0xf, 0x180043c2f mov rsi, r8 ; +0x11, 0x180043c31 test rax, rax ; +0x14, 0x180043c34 mov rdi, rdx ; +0x17, 0x180043c37 lea r9, ds:0[rax*4] ; +0x1a, 0x180043c3a lea rcx, [r9+1] ; +0x22, 0x180043c42 cmovnz rcx, r9; Size ; +0x26, 0x180043c46 call j__malloc_base ; +0x2a, 0x180043c4a mov rbx, rax ; +0x2f, 0x180043c4f test rax, rax ; +0x32, 0x180043c52 jnz short loc_180043C67 ; +0x35, 0x180043c55 mov rbx, [rsp+28h+arg_0] ; +0x37, 0x180043c57 mov rsi, [rsp+28h+arg_8] ; +0x3c, 0x180043c5c add rsp, 20h ; +0x41, 0x180043c61 pop rdi ; +0x45, 0x180043c65 retn ; +0x46, 0x180043c66 mov rcx, [rdi]; Block ; +0x47, 0x180043c67 test rcx, rcx ; +0x4a, 0x180043c6a jz short loc_180043C74 ; +0x4d, 0x180043c6d call free ; +0x4f, 0x180043c6f mov [rdi], rbx ; +0x54, 0x180043c74 mov eax, 1 ; +0x57, 0x180043c77 mov [rsi], rbx ; +0x5c, 0x180043c7c mov rbx, [rsp+28h+arg_0] ; +0x5f, 0x180043c7f mov rsi, [rsp+28h+arg_8] ; +0x64, 0x180043c84 add rsp, 20h ; +0x69, 0x180043c89 pop rdi ; +0x6d, 0x180043c8d retn ; +0x6e, 0x180043c8e