Function at 0x18001c9d0
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 0x18001cc62
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 0x18001cb63
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, [0x18001bda4]
mov qword [rdi + 0x68], rax
lea rax, [0x18001bdac]
mov qword [rdi + 0x70], rax
lea rax, [0x18001bdcc]
mov qword [rdi + 0x78], rax
lea rax, [0x18001be48]
mov qword [rdi + 0x80], rax
lea rax, [0x18001be4c]
mov qword [rdi + 0x88], rax
lea rax, [0x18001be58]
mov qword [rdi + 0x90], rax
lea rax, [0x18001be64]
mov qword [rdi + 0x98], rax
lea rax, [0x18001be70]
mov qword [rdi + 0xa0], rax
lea rax, [0x18001c138]
mov qword [rdi + 0xa8], rax
lea rax, [0x18001c224]
mov qword [rdi + 0xb0], rax
lea rax, [0x18001c0e4]
mov qword [rdi + 0xd8], rax
lea rax, [0x18001c34c]
mov qword [rdi + 0xb8], rax
lea rax, [0x18001c47c]
mov qword [rdi + 0xc0], rax
lea rax, [fcn.18001c504]
mov qword [rdi + 0xc8], rax
lea rax, [0x18001c58c]
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 0x18001cbfb
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.18001121c
lea r8, [fcn.18001ba7c]
mov qword [rdi + 0x40], rax
mov rdx, r14
mov rcx, rax
call fcn.180010f90
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.18001bc2c]
lea edx, [r15 - 1]
call fcn.180010f90
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.18001bc90]
mov edx, r15d
call fcn.180010f90
mov qword [rbx + 8], rdi
call fcn.18001121c
lea rcx, [rbx + 0x10]
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.DLL_InitializeCriticalSection]
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c64c]
mov rdx, r14
call fcn.180010f90
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c7a8]
mov edx, 2
call fcn.180010f90
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c844]
mov rdx, r15
call fcn.180010f90
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c98c]
mov edx, 5
call fcn.180010f90
mov rdi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
add rsp, 0x20
pop r15
ret