Function at 0x180010aa0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x180035040]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rbx, rcx
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x1a0], rax
test rax, rax
je 0x180010cc8
mov ecx, 8
call fcn.1800280e0
mov qword [rax], rbx
mov qword [rbp + 0x37], rax
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x1800194e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
test rax, rax
je 0x180010cae
cmp dword [rbx + 0x170], edi
jne 0x180010ca7
xorps xmm0, xmm0
movaps xmmword [rbp + 0x37], xmm0
movaps xmm1, xmmword [rbp + 0x27]
movaps xmmword [rbp + 0x27], xmm1
movdqa xmmword [rbp + 0x27], xmm0
movups xmmword [rbx + 0x168], xmm1
mov ecx, 8
call fcn.1800280e0
mov qword [rax], rbx
mov qword [rbp + 0x37], rax
lea rcx, [rbp + 0x2f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x180019510]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x27], rax
test rax, rax
je 0x180010c98
cmp dword [rbx + 0xb0], edi
jne 0x180010c91
xorps xmm0, xmm0
movaps xmmword [rbp + 0x37], xmm0
movaps xmm1, xmmword [rbp + 0x27]
movaps xmmword [rbp + 0x27], xmm1
movdqa xmmword [rbp + 0x27], xmm0
movups xmmword [rbx + 0xa8], xmm1
movups xmmword [rbp + 0x27], xmm0
mov rax, qword [rbx + 0x178]
test rax, rax
je 0x180010cbd
cmp byte [rbx + 0x180], dil
je 0x180010be3
cmp byte [rax + 0xb8], dil
jne 0x180010cbd
cmp byte [rbx + 0x188], 0
jne 0x180010cf2
mov byte [rbx + 0x188], 1
mov rbx, rax
mov qword [rbp + 0x27], rax
mov byte [rbp + 0x2f], 1
test rax, rax
je 0x180010c0b
lock inc dword [rax + 8]
movups xmmword [rbp + 0x37], xmm0
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x37], rbx
mov byte [rbp + 0x3f], 1
test rbx, rbx
je 0x180010cfd
cmp byte [rax + 0xb8], 0
jne 0x180010cfd
mov rax, qword [rax]
mov dl, 1
mov rcx, rbx
call qword [rax + 0x10]
nop
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180010c70
mov rcx, qword [rbx + 0xc8]
test rcx, rcx
je 0x180010c62
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax]
jmp 0x180010c70
mov rax, qword [rbx]
mov edx, 1
mov rcx, rbx
call qword [rax]
nop
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.180027fa0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp + 0x2f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rbp + 0x2f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 4
call fcn.1800061c0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
call fcn.180001ae0
mov r8, rax
lea rcx, [rbp - 9]
call fcn.180001730
lea rdx, [0x1800325e8]
lea rcx, [rbp - 9]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
mov ecx, 2
call fcn.1800061c0
nop
mov ecx, 4
call fcn.1800061c0
int3