Function at 0x140046ca0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov r15, rcx
xor edi, edi
mov qword [rcx], rdi
mov dword [rcx + 8], edi
lea rsi, [rcx + 0x10]
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rdi
movups xmmword [rbp + 0x17], xmm0
lea ecx, [rdi + 0x20]
call fcn.140060858
mov rbx, rax
mov dword [rax], 1
mov dword [rax + 4], 2
xor eax, eax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rdi
mov dword [rbx + 0x18], edi
mov qword [rbp + 0x27], rbx
lock inc dword [rbx]
mov qword [rbp + 0x6f], rbx
lea ecx, [rdi + 0x10]
call fcn.140060858
mov qword [rbp + 0x6f], rdi
mov qword [rax], rbx
mov qword [rax + 8], r15
mov qword [rbp + 0x77], rax
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x140047090]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp + 0x17], rax
test rax, rax
je 0x140046e8a
lea rax, [rbp + 0x17]
lea ebx, [rdi - 2]
lea r14d, [rdi - 1]
cmp rsi, rax
je 0x140046dbe
mov rcx, rsi
call fcn.1400015f0
cmp dword [rsi + 8], edi
jne 0x140046e69
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rbp + 0x17]
movups xmmword [rbp - 9], xmm1
movups xmmword [rbp + 0x17], xmm0
movups xmmword [rsi], xmm1
mov rax, qword [rbp + 0x27]
mov qword [rbp + 0x27], rdi
mov rcx, qword [rsi + 0x10]
mov qword [rsi + 0x10], rax
test rcx, rcx
je 0x140046dc2
mov eax, ebx
lock xadd dword [rcx + 4], eax
and eax, 0xfffffffe
cmp eax, 2
jne 0x140046dbe
mov eax, r14d
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140046dbe
lea edx, [rdi + 0x20]
call fcn.140060aec
mov rdi, qword [rbp + 0x27]
mov eax, dword [rbp + 0x1f]
test eax, eax
je 0x140046e3a
test rdi, rdi
je 0x140046dd9
mov rcx, rdi
call fcn.1400013c0
mov eax, dword [rbp + 0x1f]
test eax, eax
jne 0x140046de7
lea ecx, [rax + 1]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
call qword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [rbp + 0x1f], eax
jne 0x140046dfe
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [rbp - 0x29], xmm0
xor edx, edx
lea rcx, [rbp - 0x29]
call qword [sym.imp.MSVCP140.dll__Thrd_join]
test eax, eax
je 0x140046e22
mov ecx, 2
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm0
mov rdi, qword [rbp + 0x27]
psrldq xmm0, 8
movd eax, xmm0
test rdi, rdi
je 0x140046e65
lock xadd dword [rdi + 4], ebx
and ebx, 0xfffffffe
cmp ebx, 2
jne 0x140046e62
lock xadd dword [rdi], r14d
cmp r14d, 1
jne 0x140046e62
lea edx, [rbx + 0x1e]
mov rcx, rdi
call fcn.140060aec
mov eax, dword [rbp + 0x1f]
test eax, eax
je 0x140046e70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov rax, r15
mov rbx, qword [rsp + 0xd8]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp + 0x1f], edi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3