; ; _realloc_base from 0x180138640 to 0x1801386ba (122 bytes) ; ; 3 xrefs: ; > j__realloc_base @ 0x18012f84c ; > _recalloc_base @ 0x18013b62e ; > @ 0x180203680 ; ; 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, 0x180138640 push rdi ; +0x5, 0x180138645 sub rsp, 20h ; +0x6, 0x180138646 mov rbx, rdx ; +0xa, 0x18013864a mov rdi, rcx ; +0xd, 0x18013864d test rcx, rcx ; +0x10, 0x180138650 jnz short loc_18013865F ; +0x13, 0x180138653 mov rcx, rdx; Size ; +0x15, 0x180138655 call _malloc_base ; +0x18, 0x180138658 jmp short loc_18013867E ; +0x1d, 0x18013865d test rbx, rbx ; +0x1f, 0x18013865f jnz short loc_18013866B ; +0x22, 0x180138662 call _free_base ; +0x24, 0x180138664 jmp short loc_18013867C ; +0x29, 0x180138669 cmp rbx, 0FFFFFFFFFFFFFFE0h ; +0x2b, 0x18013866b jbe short loc_18013869E ; +0x2f, 0x18013866f call _errno ; +0x31, 0x180138671 mov dword ptr [rax], 0Ch ; +0x36, 0x180138676 xor eax, eax ; +0x3c, 0x18013867c mov rbx, [rsp+28h+arg_0] ; +0x3e, 0x18013867e add rsp, 20h ; +0x43, 0x180138683 pop rdi ; +0x47, 0x180138687 retn ; +0x48, 0x180138688 call sub_18013BEC4 ; +0x49, 0x180138689 test eax, eax ; +0x4e, 0x18013868e jz short loc_180138671 ; +0x50, 0x180138690 mov rcx, rbx; Size ; +0x52, 0x180138692 call _callnewh ; +0x55, 0x180138695 test eax, eax ; +0x5a, 0x18013869a jz short loc_180138671 ; +0x5c, 0x18013869c mov rcx, cs:hHeap; hHeap ; +0x5e, 0x18013869e mov r9, rbx; dwBytes ; +0x65, 0x1801386a5 mov r8, rdi; lpMem ; +0x68, 0x1801386a8 xor edx, edx; dwFlags ; +0x6b, 0x1801386ab call cs:HeapReAlloc ; +0x6d, 0x1801386ad test rax, rax ; +0x73, 0x1801386b3 jz short loc_180138689 ; +0x76, 0x1801386b6 jmp short loc_18013867E ; +0x78, 0x1801386b8