Function at 0x1800056a0
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 [0x18021f400]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
lea rcx, [0x1802380a6]
call fcn.180140630
mov dword [rbp + 4], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18021f908], eax
je 0x18000570d
mov eax, 0x10dd
jmp 0x18000595b
cmp dword [0x18021f90c], 0
je 0x180005721
mov eax, dword [0x18021f90c]
jmp 0x18000595b
cmp qword [rbp + 0x1f8], 0
jne 0x180005735
mov eax, 0x57
jmp 0x18000595b
cmp qword [rbp + 0x1f0], 0
jne 0x180005749
mov eax, 6
jmp 0x18000595b
mov rax, qword [rbp + 0x1f0]
cmp qword [rax], 0
jne 0x18000577c
mov dword [rbp + 4], 6
mov eax, dword [rbp + 4]
mov dword [0x18021f90c], eax
mov rax, qword [rbp + 0x1f0]
mov qword [0x18021f910], rax
mov eax, dword [rbp + 4]
jmp 0x18000595b
mov ecx, 0x30
call fcn.180140350
mov qword [rbp + 0x188], rax
mov rax, qword [rbp + 0x188]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x18000581a
mov dword [rbp + 4], 8
mov eax, dword [rbp + 4]
mov dword [0x18021f90c], eax
cmp qword [rbp + 0x28], 0
je 0x180005804
mov rax, qword [rbp + 0x28]
mov qword [rbp + 0x1a8], rax
mov edx, 0x30
mov rcx, qword [rbp + 0x1a8]
call fcn.1801403a0
cmp qword [rbp + 0x1a8], 0
jne 0x1800057e9
mov qword [rbp + 0x1b8], 0
jmp 0x1800057fc
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 [0x18021f910], rax
mov eax, dword [rbp + 4]
jmp 0x18000595b
xor edx, edx
mov rax, qword [rbp + 0x1f0]
mov rcx, qword [rax]
call fcn.180005650
mov qword [rbp + 0x48], rax
xor edx, edx
mov rcx, qword [rbp + 0x1f8]
call fcn.180005650
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 0x180005878
movsxd rax, dword [rbp + 0x64]
cmp rax, 0x1e
jbe 0x180005894
mov dword [rbp + 4], 9
cmp dword [0x18021f900], 0
je 0x18000588f
jmp 0x1800057af
jmp 0x1800057a6
mov rax, qword [rbp + 0x48]
mov rcx, qword [rbp + 0x1f8]
cmp qword [rax + 0x50], rcx
je 0x1800058c1
mov dword [rbp + 4], 9
cmp dword [0x18021f900], 0
je 0x1800058bc
jmp 0x1800057af
jmp 0x1800057a6
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 0x1800058fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 4], eax
jmp 0x1800057a6
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 [0x18021f920]
mov qword [rax], rcx
mov rax, qword [rbp + 0x28]
mov qword [0x18021f920], rax
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x18014c1f0]
call fcn.180140400
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.180140880
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret