Function at 0x18008dc90
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x88
mov rax, qword [0x1802a3900]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x68], rcx
mov dword [rsp + 0x64], 0
mov eax, dword [0x1802b0178]
mov dword [rsp + 0x3c], eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov eax, dword [rsp + 0x3c]
cmp eax, ecx
je 0x18008dce5
mov dword [rsp + 0x78], 0x10dd
jmp 0x18008df41
cmp dword [0x1802b0198], 0
je 0x18008dd01
mov eax, dword [0x1802b0198]
mov dword [rsp + 0x78], eax
jmp 0x18008df41
cmp qword [rsp + 0x70], 0
jne 0x18008dd1a
mov dword [rsp + 0x78], 0x57
jmp 0x18008df41
cmp qword [rsp + 0x68], 0
jne 0x18008dd33
mov dword [rsp + 0x78], 6
jmp 0x18008df41
mov rax, qword [rsp + 0x68]
cmp qword [rax], 0
jne 0x18008dd6d
mov dword [rsp + 0x64], 6
mov eax, dword [rsp + 0x64]
mov dword [0x1802b0198], eax
mov rax, qword [rsp + 0x68]
mov qword [0x1802b0190], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x78], eax
jmp 0x18008df41
mov ecx, 0x30
call fcn.18008fa50
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x18008dde6
mov dword [rsp + 0x64], 8
mov eax, dword [rsp + 0x64]
mov dword [0x1802b0198], eax
cmp qword [rsp + 0x58], 0
je 0x18008ddcd
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
cmp rax, 0
je 0x18008ddc4
mov rcx, qword [rsp + 0x30]
call fcn.18008fa8c
mov qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x68]
mov qword [0x1802b0190], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x78], eax
jmp 0x18008df41
mov rax, qword [rsp + 0x68]
mov rcx, qword [rax]
xor eax, eax
mov edx, eax
call fcn.18008bb60
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
xor eax, eax
mov edx, eax
call fcn.18008bb60
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x50]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x4c], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x48]
movsxd rdx, dword [rsp + 0x4c]
xor ecx, ecx
sub rcx, rdx
add rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x4c], 0
je 0x18008de51
movsxd rax, dword [rsp + 0x4c]
cmp rax, 0x1e
jbe 0x18008de70
mov dword [rsp + 0x64], 9
cmp dword [0x1802b0170], 0
je 0x18008de6b
jmp 0x18008dd9a
jmp 0x18008dd90
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x50]
cmp rax, qword [rsp + 0x70]
je 0x18008dea3
mov dword [rsp + 0x64], 9
cmp dword [0x1802b0170], 0
je 0x18008de9e
jmp 0x18008dd9a
jmp 0x18008dd90
mov dword [rsp + 0x7c], 0
movsxd rdx, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x40]
mov r8d, 0x40
lea r9, [rsp + 0x7c]
call sub.KERNEL32.dll_VirtualProtect
cmp eax, 0
jne 0x18008dedc
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x64], eax
jmp 0x18008dd90
mov rax, qword [rsp + 0x58]
mov dword [rax + 8], 1
mov rcx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x10], rcx
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x20], rcx
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x18], rcx
mov ecx, dword [rsp + 0x7c]
mov rax, qword [rsp + 0x58]
mov dword [rax + 0x28], ecx
mov rcx, qword [0x1802b0180]
mov rax, qword [rsp + 0x58]
mov qword [rax], rcx
mov rax, qword [rsp + 0x58]
mov qword [0x1802b0180], rax
mov dword [rsp + 0x78], 0
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x2c], eax
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.18008fc60
mov eax, dword [rsp + 0x2c]
add rsp, 0x88
ret