Function at 0x1800331e0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov r13d, 8
mov rbx, qword [0x180162518]
test rbx, rbx
jne 0x180033284
mov ecx, 0x90
call fcn.1800d1934
mov rbx, rax
mov qword [rsp + 0xb0], rax
test rax, rax
je 0x18003327b
lea rdi, [rax + 0x28]
mov qword [rsp + 0xb8], rdi
mov rcx, r13
call fcn.1800d1934
test rax, rax
je 0x180033248
mov qword [rax], rdi
jmp 0x18003324a
xor eax, eax
mov qword [rdi], rax
mov rcx, rdi
call fcn.180043afc
mov qword [rdi + 0x30], rax
mov byte [rax + 0x29], 1
mov rax, qword [rdi + 0x30]
mov qword [rax + 8], rax
mov rax, qword [rdi + 0x30]
mov qword [rax], rax
mov rax, qword [rdi + 0x30]
mov qword [rax + 0x10], rax
and qword [rdi + 0x38], 0
jmp 0x18003327d
xor ebx, ebx
mov qword [0x180162518], rbx
xor esi, esi
mov rcx, qword [0x180162fc8]
mov rdx, rcx
mov r8, qword [0x180162fc0]
sub rdx, r8
sar rdx, 3
xor edi, edi
test rdx, rdx
je 0x18003330b
cmp rdi, rdx
jb 0x1800332b6
call fcn.1800d15f4
mov r8, qword [0x180162fc0]
mov rbx, qword [r8 + rdi*8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x30]
lea rdx, [rbx + 0x48]
lea rcx, [rsp + 0x48]
call fcn.18003189c
mov rdx, rax
mov rcx, qword [0x180162518]
call fcn.1800392fc
inc esi
inc rdi
mov rcx, qword [0x180162fc8]
mov rdx, rcx
mov r8, qword [0x180162fc0]
sub rdx, r8
sar rdx, 3
mov eax, esi
cmp rax, rdx
jb 0x1800332a5
mov rbx, qword [0x180162518]
xor esi, esi
sub rcx, r8
sar rcx, 3
xor edi, edi
test rcx, rcx
je 0x18003335e
cmp rdi, rcx
jb 0x18003332c
call fcn.1800d15f4
mov r8, qword [0x180162fc0]
mov rcx, qword [r8 + rdi*8]
mov rax, qword [rcx]
call qword [rax + 0x18]
inc esi
inc rdi
mov rcx, qword [0x180162fc8]
mov r8, qword [0x180162fc0]
sub rcx, r8
sar rcx, 3
mov eax, esi
cmp rax, rcx
jb 0x18003331b
mov rbx, qword [0x180162518]
lea rcx, [rbx + 0x68]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 8], rax
mov rcx, qword [rbx + 0x60]
inc rcx
mov rax, r13
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1800d04fc
mov qword [rbx + 0x10], rax
mov rcx, qword [rbx]
mov qword [rax], rcx
mov rax, qword [rbx + 0x58]
mov rsi, qword [rax]
mov qword [rsp + 0x40], rsi
mov rdi, qword [rbx + 0x28]
mov qword [rsp + 0x38], rdi
mov rbp, r13
mov r12, qword [rbx + 0x58]
test rdi, rdi
je 0x1800333e0
cmp rdi, qword [rbx + 0x28]
je 0x1800333e5
call fcn.1800d15f4
cmp rsi, r12
je 0x18003342c
test rdi, rdi
jne 0x1800333f9
call fcn.1800d15f4
xor r11d, r11d
jmp 0x1800333fc
mov r11, qword [rdi]
cmp rsi, qword [r11 + 0x30]
jne 0x180033407
call fcn.1800d15f4
mov rcx, qword [rbx + 0x10]
mov rax, qword [rsi + 0x18]
mov qword [rcx + rbp], rax
add rbp, r13
lea rcx, [rsp + 0x38]
call fcn.18001e364
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
jmp 0x1800333d1
lea rax, [rbx + 0x20]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rbx
lea r8, [0x18003967c]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x18], rax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret