Function at 0x18001c518
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 0x18001c7aa
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 0x18001c6ab
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, [0x18001b918]
mov qword [rdi + 0x68], rax
lea rax, [0x18001b920]
mov qword [rdi + 0x70], rax
lea rax, [0x18001b940]
mov qword [rdi + 0x78], rax
lea rax, [0x18001b9bc]
mov qword [rdi + 0x80], rax
lea rax, [0x18001b9c0]
mov qword [rdi + 0x88], rax
lea rax, [0x18001b9cc]
mov qword [rdi + 0x90], rax
lea rax, [0x18001b9d8]
mov qword [rdi + 0x98], rax
lea rax, [0x18001b9e4]
mov qword [rdi + 0xa0], rax
lea rax, [0x18001bca8]
mov qword [rdi + 0xa8], rax
lea rax, [0x18001bdb4]
mov qword [rdi + 0xb0], rax
lea rax, [0x18001bc58]
mov qword [rdi + 0xd8], rax
lea rax, [0x18001bec8]
mov qword [rdi + 0xb8], rax
lea rax, [0x18001bfec]
mov qword [rdi + 0xc0], rax
lea rax, [fcn.18001c078]
mov qword [rdi + 0xc8], rax
lea rax, [0x18001c0fc]
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 0x18001c743
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.180011750
lea r8, [fcn.18001b5a4]
mov qword [rdi + 0x40], rax
mov rdx, r14
mov rcx, rax
call fcn.1800113cc
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.18001b774]
lea edx, [r15 - 1]
call fcn.1800113cc
mov rcx, qword [rdi + 0x40]
lea r8, [fcn.18001b804]
mov edx, r15d
call fcn.1800113cc
mov qword [rbx + 8], rdi
call fcn.180011750
lea rcx, [rbx + 0x10]
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c1a4]
mov rdx, r14
call fcn.1800113cc
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c2fc]
mov edx, 2
call fcn.1800113cc
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c394]
mov rdx, r15
call fcn.1800113cc
mov rcx, qword [rbx + 0x38]
lea r8, [0x18001c4d4]
mov edx, 5
call fcn.1800113cc
mov rdi, qword [rsp + 0x38]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov r14, qword [rsp + 0x40]
add rsp, 0x20
pop r15
ret