Function at 0x18001a0a8
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 0x18001a33a
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 0x18001a23b
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, [0x1800194a8]
mov qword [rdi + 0x68], rax
lea rax, [0x1800194b0]
mov qword [rdi + 0x70], rax
lea rax, [0x1800194d0]
mov qword [rdi + 0x78], rax
lea rax, [0x18001954c]
mov qword [rdi + 0x80], rax
lea rax, [0x180019550]
mov qword [rdi + 0x88], rax
lea rax, [0x18001955c]
mov qword [rdi + 0x90], rax
lea rax, [0x180019568]
mov qword [rdi + 0x98], rax
lea rax, [0x180019574]
mov qword [rdi + 0xa0], rax
lea rax, [0x180019838]
mov qword [rdi + 0xa8], rax
lea rax, [0x180019944]
mov qword [rdi + 0xb0], rax
lea rax, [0x1800197e8]
mov qword [rdi + 0xd8], rax
lea rax, [0x180019a58]
mov qword [rdi + 0xb8], rax
lea rax, [0x180019b7c]
mov qword [rdi + 0xc0], rax
lea rax, [fcn.180019c08]
mov qword [rdi + 0xc8], rax
lea rax, [0x180019c8c]
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 0x18001a2d3
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.1800109fc
lea r8, [fcn.180019134]
mov qword [rdi + 0x40], rax
mov rdx, r14
mov rcx, rax
call fcn.180010678
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.180019304]
lea edx, [r15 - 1]
call fcn.180010678
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.180019394]
mov edx, r15d
call fcn.180010678
mov qword [rbx + 8], rdi
call fcn.1800109fc
lea rcx, [rbx + 0x10]
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov rcx, qword [rbx + 0x38]
lea r8, [0x180019d34]
mov rdx, r14
call fcn.180010678
mov rcx, qword [rbx + 0x38]
lea r8, [0x180019e8c]
mov edx, 2
call fcn.180010678
mov rcx, qword [rbx + 0x38]
lea r8, [0x180019f24]
mov rdx, r15
call fcn.180010678
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001a064]
mov edx, 5
call fcn.180010678
mov rdi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
add rsp, 0x20
pop r15
ret