Function at 0x1808b73d8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
cmp qword [rsp + 0xa8], 0
jne 0x1808b7405
xor eax, eax
jmp 0x1808b7691
mov eax, dword [rsp + 0xa0]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x40], 0
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x58]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 4]
cmp eax, 0x14c
jne 0x1808b7478
mov rax, qword [rsp + 0x30]
add rax, 0xf8
mov qword [rsp + 0x38], rax
jmp 0x1808b7498
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 4]
cmp eax, 0x8664
jne 0x1808b7498
mov rax, qword [rsp + 0x30]
add rax, 0x108
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
jmp 0x1808b74ac
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
je 0x1808b750c
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 8]
lea r9, [rsp + 0x40]
mov r8d, 0x40
mov edx, eax
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1808b74a2
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x98], rax
jae 0x1808b761e
mov rax, qword [rsp + 0x98]
add rax, 8
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 4]
sub rax, 8
xor edx, edx
mov ecx, 2
div rcx
mov dword [rsp + 0x44], eax
mov dword [rsp + 0x20], 0
jmp 0x1808b7561
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x20], eax
je 0x1808b75f8
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x1808b7583
jmp 0x1808b7557
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
and eax, 0xfff
mov rcx, qword [rsp + 0x98]
mov ecx, dword [rcx]
add ecx, eax
mov eax, ecx
mov eax, eax
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax*2]
sar eax, 0xc
mov dword [rsp + 0x48], eax
cmp dword [rsp + 0x48], 0xa
je 0x1808b75db
jmp 0x1808b75f3
mov rax, qword [rsp + 0x60]
mov rax, qword [rax]
add rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rax
jmp 0x1808b7557
mov rax, qword [rsp + 0x98]
mov eax, dword [rax + 4]
mov rcx, qword [rsp + 0x98]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x98], rax
jmp 0x1808b750c
mov dword [rsp + 0x28], 0
jmp 0x1808b7632
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x30]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x28], eax
je 0x1808b768f
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 0xc]
mov rcx, qword [rsp + 0x90]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x78], rax
movsxd rax, dword [rsp + 0x28]
imul rax, rax, 0x28
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + rax + 8]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov edx, eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1808b7628
xor eax, eax
add rsp, 0x88
ret