Function at 0x140088bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rcx
push rdi
push r13
sub rsp, 0x58
lea rdi, [rdx + 0x1f]
mov r13, rcx
and rdi, 0xffffffffffffffe0
mov qword [rsp + 0x78], rdi
jne 0x140088648
xor eax, eax
add rsp, 0x58
pop r13
pop rdi
ret
mov qword [rsp + 0x80], rbx
lea rbx, [rcx + 8]
mov qword [rsp + 0x50], rbp
mov rcx, rbx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rsi, qword [r13 + 0x70]
mov r12, qword [r13 + 0x30]
test rsi, rsi
je 0x140088793
nop word [rax + rax]
mov rax, qword [rsi + 0x30]
sub rax, qword [rsi + 0x38]
cmp rax, rdi
jb 0x14008876f
mov rcx, qword [rsi + 0x50]
cmp rcx, rdi
jae 0x1400886b3
test rcx, rcx
jne 0x14008876f
mov r14, qword [rsi + 0x40]
lea rax, [rdi - 1]
add rax, qword [rsi + 0x48]
xor edx, edx
div qword [rsi + 0x48]
mov r15, qword [rsi + 0x58]
xor ecx, ecx
xor r9d, r9d
xor edi, edi
mov rbp, rax
test r14, r14
je 0x14008875b
nop dword [rax]
mov r11, qword [r15]
lea r15, [r15 + 8]
mov rax, rcx
cmp r11, 0xffffffffffffffff
jne 0x1400886fe
xor ecx, ecx
cmp rax, r9
cmovbe rax, r9
mov r9, rax
jmp 0x140088752
lea rax, [rdi + 0x40]
mov r10d, 0x40
cmp rax, r14
jbe 0x140088713
mov r10, r14
sub r10, rdi
xor r8d, r8d
mov edx, 1
test r10, r10
je 0x140088752
inc r8
mov rax, rcx
test r11, rdx
jne 0x14008873e
inc rcx
cmp rcx, rbp
jne 0x14008874a
sub r8, rcx
add rdi, r8
jmp 0x1400888d2
xor ecx, ecx
cmp rax, r9
cmovbe rax, r9
mov r9, rax
add rdx, rdx
cmp r8, r10
jb 0x140088720
add rdi, 0x40
cmp rdi, r14
jb 0x1400886e0
imul r9, qword [rsi + 0x48]
mov rdi, qword [rsp + 0x78]
mov qword [rsi + 0x50], r9
mov rsi, qword [rsi + 0x28]
jmp 0x14008878a
mov rcx, qword [rsi + 0x28]
cmp rax, r12
jae 0x140088787
cmp rsi, qword [r13 + 0x70]
jne 0x140088787
test rcx, rcx
je 0x140088787
mov qword [r13 + 0x70], rcx
mov rsi, rcx
test rsi, rsi
jne 0x140088690
mov rsi, qword [r13 + 0x30]
mov r12, qword [r13 + 0x38]
cmp rsi, rdi
jae 0x1400887a9
mov rsi, rdi
mov rdi, qword [r13]
jmp 0x1400887b6
mov rdi, qword [r13]
test rsi, rsi
je 0x140088958
call fcn.140087d00
test rdi, rdi
jne 0x1400887c4
mov rdi, qword [rax + 0x10]
mov rax, qword [rax]
mov r9d, 0x3000
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
lea rbp, [rax - 1]
add rbp, rsi
dec rax
not rax
and rbp, rax
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x140088958
xor edx, edx
mov rax, rbp
div r12
mov ecx, 0x68
mov r13, rax
lea rdi, [rax + 7]
shr rdi, 3
add rdi, 7
and rdi, 0xfffffffffffffff8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
mov rcx, 0xffffffffffffffff
mov eax, 2
mul rdi
cmovb rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
test rsi, rsi
je 0x140088911
test rax, rax
je 0x140088911
xor eax, eax
lea r8, [rdi + rdi]
mov qword [rsi], rax
xor edx, edx
mov qword [rsi + 8], rax
mov rcx, r14
mov qword [rsi + 0x10], r15
mov dword [rsi + 0x18], 1
mov qword [rsi + 0x20], rax
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], rbp
mov qword [rsi + 0x38], rax
mov qword [rsi + 0x40], r13
mov qword [rsi + 0x48], r12
mov qword [rsi + 0x50], rbp
call sub.VCRUNTIME140.dll_memset
mov r13, qword [rsp + 0x70]
lea rax, [r14 + rdi]
mov rcx, r13
mov qword [rsi + 0x60], rax
mov rdx, rsi
mov qword [rsi + 0x58], r14
call fcn.140088070
mov rax, qword [rsp + 0x78]
xor edx, edx
dec rax
xor edi, edi
add rax, qword [rsi + 0x48]
div qword [rsi + 0x48]
mov rbp, rax
mov rax, qword [rsi + 0x30]
add qword [r13 + 0x48], rax
mov rcx, qword [rsi + 0x58]
mov r8, rbp
mov rdx, rdi
call fcn.140087fa0
mov rcx, qword [rsi + 0x60]
lea r8, [rbp - 1]
mov rdx, rdi
call fcn.140087fa0
imul rbp, qword [rsi + 0x48]
mov qword [rsi + 0x50], 0
add qword [rsi + 0x38], rbp
add qword [r13 + 0x50], rbp
imul rdi, qword [rsi + 0x48]
add rdi, qword [rsi + 0x10]
jmp 0x14008895a
mov rdi, qword [rsp + 0x70]
mov rdi, qword [rdi]
call fcn.140087d00
test rdi, rdi
jne 0x140088927
mov rdi, qword [rax + 0x10]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rsi, rsi
je 0x14008894a
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test r14, r14
je 0x140088958
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor edi, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r15, qword [rsp + 0x30]
mov rax, rdi
mov r14, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
add rsp, 0x58
pop r13
pop rdi
ret
push r14
sub rsp, 0x40
mov r14, rcx
cmp r8d, 1
jne 0x140088d0f
mov qword [rsp + 0x50], rbx
add rcx, 8
mov qword [rsp + 0x58], rbp
lea rbp, [rdx + 0x1f]
mov qword [rsp + 0x60], rsi
and rbp, 0xffffffffffffffe0
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdi, qword [r14 + 0x78]
test rdi, rdi
je 0x140088c19
nop dword [rax]
mov rax, qword [rdi + 0x10]
sub rax, qword [rdi + 0x18]
cmp rbp, rax
jbe 0x140088cc7
mov rdi, qword [rdi]
test rdi, rdi
jne 0x140088c00
mov esi, 0x8000
mov ecx, reloc.WLDAP32.dll_Ordinal_32
cmp rbp, rsi
cmova rsi, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
jne 0x140088c49
lea rcx, [r14 + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
jmp 0x140088ce7
mov r15, qword [r14]
lea r12, [rax + 0x10]
test rsi, rsi
je 0x140088c96
call fcn.140087d00
test r15, r15
jne 0x140088c63
mov r15, qword [rax + 0x10]
mov rax, qword [rax]
dec rsi
add rsi, rax
mov dword [rsp + 0x20], 0x40
dec rax
mov r9d, 0x3000
not rax
xor edx, edx
and rsi, rax
mov rcx, r15
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test rax, rax
jne 0x140088ca9
xor esi, esi
mov rcx, rdi
mov eax, esi
mov qword [rdi + 8], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140088cdd
test r12, r12
je 0x140088cb2
mov qword [r12], rsi
mov qword [rdi + 8], rax
xor esi, esi
mov qword [rdi + 0x18], rsi
mov rax, qword [r14 + 0x78]
mov qword [rdi], rax
mov qword [r14 + 0x78], rdi
mov rcx, qword [rdi + 0x18]
mov rsi, qword [rdi + 8]
add rsi, rcx
add rcx, rbp
mov qword [rdi + 0x18], rcx
add qword [r14 + 0x50], rbp
lea rcx, [r14 + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov r15, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop r14
ret
add rsp, 0x40
pop r14
jmp 0x140088620