Function at 0x180005af0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1f8
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x218]
mov rax, qword [0x18021f4c0]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
lea rcx, [0x1802380a6]
call fcn.180141ee0
nop
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021f878], eax
je 0x180005b5e
mov eax, 0x10dd
jmp 0x180005dac
cmp dword [0x18021f87c], 0
je 0x180005b72
mov eax, dword [0x18021f87c]
jmp 0x180005dac
cmp qword [rbp + 0x1f8], 0
jne 0x180005b86
mov eax, 0x57
jmp 0x180005dac
cmp qword [rbp + 0x1f0], 0
jne 0x180005b9a
mov eax, 6
jmp 0x180005dac
mov rax, qword [rbp + 0x1f0]
cmp qword [rax], 0
jne 0x180005bcd
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x18021f87c], eax
mov rax, qword [rbp + 0x1f0]
mov qword [0x18021f880], rax
mov eax, dword [rbp + 4]
jmp 0x180005dac
mov ecx, 0x30
call fcn.180141bf0
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x180005c6b
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x18021f87c], eax
cmp qword [rbp + 0x28], 0
je 0x180005c55
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x1a8], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x1a8]
call fcn.180141c50
cmp qword [rbp + 0x1a8], 0
jne 0x180005c3a
mov qword [rbp + 0x1b8], 0
jmp 0x180005c4d
mov qword [rbp + 0x28], 0x8123
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x1b8], rax
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x1f0]
mov qword [0x18021f880], rax
mov eax, dword [rbp + 4]
jmp 0x180005dac
xor edx, edx
mov rax, qword [rbp + 0x1f0]
mov rcx, qword [rax]
call fcn.180005aa0
mov qword [rbp + 0x48], rax
xor edx, edx
mov rcx, qword [rbp + 0x1f8]
call fcn.180005aa0
mov qword [rbp + 0x1f8], rax
mov rax, qword [rbp + 0x48]
movzx eax, byte [rax + 0x3e]
mov dword [rbp + 0x64], eax
movsxd rax, dword [rbp + 0x64]
mov rcx, qword [rbp + 0x48]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp dword [rbp + 0x64], 0
je 0x180005cc9
movsxd rax, dword [rbp + 0x64]
cmp rax, 0x1e
jbe 0x180005ce5
mov dword [rbp + 4], 9
cmp dword [0x18021f870], 0
je 0x180005ce0
jmp 0x180005c00
jmp 0x180005bf7
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x1f8]
cmp qword [rax + 0x50], rcx
je 0x180005d12
mov dword [rbp + 4], 9
cmp dword [0x18021f870], 0
je 0x180005d0d
jmp 0x180005c00
jmp 0x180005bf7
mov dword [rbp + 0xa4], 0
movsxd rax, dword [rbp + 0x64]
lea r9, [rbp + 0xa4]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180005d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x180005bf7
mov rax, qword [rbp + 0x28]
mov dword [rax + 8], 1
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1f0]
mov qword [rax + 0x10], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
mov qword [rax + 0x20], rcx
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x88]
mov qword [rax + 0x18], rcx
mov rax, qword [rbp + 0x28]
mov ecx, dword [rbp + 0xa4]
mov dword [rax + 0x28], ecx
mov rax, qword [rbp + 0x28]
mov rcx, qword [0x18021f890]
mov qword [rax], rcx
mov rax, qword [rbp + 0x28]
mov qword [0x18021f890], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014d150]
call fcn.180141cb0
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.180142130
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret