Function at 0x18001a0ec
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov qword [rsp + 0x18], r14
push r15
sub rsp, 0x20
mov edi, 0x40
mov r8d, 0x1000
mov edx, edi
xor ecx, ecx
lea r9d, [rdi - 0x3c]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x18001a37e
mov r8d, edi
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_memset]
mov r15d, 0xe8
lea r9d, [rdi - 0x3c]
mov edx, r15d
mov r8d, 0x1000
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rdi, rax
mov r14d, 1
test rax, rax
je 0x18001a27f
mov r8d, r15d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ntdll.dll_memset]
xor r9d, r9d
mov dword [rdi + 0x2c], 0x1388
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
mov qword [rdi + 0x30], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
and qword [rdi + 8], 0
lea rcx, [rdi + 0x40]
mov qword [rdi + 0x38], rax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
and dword [rdi + 0xe0], 0
lea rax, [0x1800194ec]
mov qword [rdi + 0x68], rax
lea rax, [0x1800194f4]
mov qword [rdi + 0x70], rax
lea rax, [0x180019514]
mov qword [rdi + 0x78], rax
lea rax, [0x180019590]
mov qword [rdi + 0x80], rax
lea rax, [0x180019594]
mov qword [rdi + 0x88], rax
lea rax, [0x1800195a0]
mov qword [rdi + 0x90], rax
lea rax, [0x1800195ac]
mov qword [rdi + 0x98], rax
lea rax, [0x1800195b8]
mov qword [rdi + 0xa0], rax
lea rax, [0x18001987c]
mov qword [rdi + 0xa8], rax
lea rax, [0x180019988]
mov qword [rdi + 0xb0], rax
lea rax, [0x18001982c]
mov qword [rdi + 0xd8], rax
lea rax, [0x180019a9c]
mov qword [rdi + 0xb8], rax
lea rax, [0x180019bc0]
mov qword [rdi + 0xc0], rax
lea rax, [fcn.180019c4c]
mov qword [rdi + 0xc8], rax
lea rax, [0x180019cd0]
mov qword [rdi + 0xd0], rax
mov edx, 0x48
mov qword [rbx], rdi
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rdx - 0x44]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rdi, rax
mov r15d, 3
test rax, rax
je 0x18001a317
xor edx, edx
lea r8d, [r15 + 0x45]
mov rcx, rax
call qword [sym.imp.ntdll.dll_memset]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateEventW]
mov qword [rdi + 0x10], rax
call fcn.180010a44
lea r8, [fcn.180019178]
mov qword [rdi + 0x40], rax
mov rdx, r14
mov rcx, rax
call fcn.1800106c0
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.180019348]
lea edx, [r15 - 1]
call fcn.1800106c0
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.1800193d8]
mov edx, r15d
call fcn.1800106c0
mov qword [rbx + 8], rdi
call fcn.180010a44
lea rcx, [rbx + 0x10]
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov rcx, qword [rbx + 0x38]
lea r8, [0x180019d78]
mov rdx, r14
call fcn.1800106c0
mov rcx, qword [rbx + 0x38]
lea r8, [0x180019ed0]
mov edx, 2
call fcn.1800106c0
mov rcx, qword [rbx + 0x38]
lea r8, [0x180019f68]
mov rdx, r15
call fcn.1800106c0
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001a0a8]
mov edx, 5
call fcn.1800106c0
mov rdi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
add rsp, 0x20
pop r15
ret