Function at 0x14001ba70
Capabilities:
Create thread

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov qword [rbp], 0xfffffffffffffffe
nop dword [rax]
cmp dword [0x140185f8c], 0xa
jl 0x14001bb80
mov eax, dword [0x140185f90]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14001bb80
mov eax, reloc.WS2_32.dll_recv
call fcn.1400f0d10
sub rsp, rax
mov rbx, rsp
sub rsp, 0x20
mov ecx, 8
call fcn.1400f0b5c
add rsp, 0x20
mov r14, rax
lea rsi, [0x140018ef0]
mov qword [rax], rsi
lea rdi, [rbx + 8]
sub rsp, 0x30
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0
lea r8, [0x140058f70]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add rsp, 0x30
mov qword [rbx], rax
test rax, rax
je 0x14001bdb3
mov eax, reloc.WS2_32.dll_recv
call fcn.1400f0d10
sub rsp, rax
mov rdi, rsp
sub rsp, 0x20
mov ecx, 8
call fcn.1400f0b5c
add rsp, 0x20
mov rbx, rax
mov qword [rax], rsi
lea rsi, [rdi + 8]
sub rsp, 0x30
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 0
lea r8, [0x140058f70]
xor ecx, ecx
xor edx, edx
mov r9, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add rsp, 0x30
mov qword [rdi], rax
test rax, rax
jne 0x14001ba90
jmp 0x14001bdcf
mov eax, reloc.WS2_32.dll_recv
call fcn.1400f0d10
sub rsp, rax
mov rdi, rsp
mov eax, reloc.WS2_32.dll_recv
call fcn.1400f0d10
sub rsp, rax
mov rsi, rsp
sub rsp, 0x20
mov ecx, 8
call fcn.1400f0b5c
add rsp, 0x20
mov r14, rax
lea rax, [0x140018ef0]
mov qword [r14], rax
lea rbx, [rdi + 8]
sub rsp, 0x30
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0
lea r8, [0x140058f70]
xor ecx, ecx
xor edx, edx
mov r9, r14
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add rsp, 0x30
mov qword [rdi], rax
test rax, rax
je 0x14001bdeb
cmp dword [0x140185f8c], 0xa
jl 0x14001bc16
mov eax, dword [0x140185f90]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x14001bab2
mov qword [rbp - 0x10], rbx
sub rsp, 0x20
mov ecx, 8
call fcn.1400f0b5c
add rsp, 0x20
mov rbx, rax
lea rax, [0x14001b7e0]
mov qword [rbx], rax
mov r15, rsi
add r15, 8
sub rsp, 0x30
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0
lea r8, [0x140058f70]
xor ecx, ecx
xor edx, edx
mov r9, rbx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add rsp, 0x30
mov qword [rsi], rax
test rax, rax
je 0x14001be07
cmp dword [0x140185f8c], 0xa
mov r14, qword [rbp - 0x10]
jl 0x14001bca2
mov eax, dword [0x140185f90]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14001bca2
nop word cs:[rax + rax]
jmp 0x14001bca0
mov ebx, dword [r14]
test ebx, ebx
je 0x14001be24
sub rsp, 0x20
call sub.MSVCP140.dll__Thrd_id
add rsp, 0x20
cmp ebx, eax
je 0x14001be3a
movups xmm0, xmmword [rdi]
movaps xmmword [rbp - 0x20], xmm0
sub rsp, 0x20
lea rcx, [rbp - 0x20]
xor edx, edx
call sub.MSVCP140.dll__Thrd_join
add rsp, 0x20
test eax, eax
jne 0x14001be50
mov qword [rdi], 0
mov dword [rdi + 8], 0
cmp dword [0x140185f8c], 0xa
jl 0x14001bd12
mov eax, dword [0x140185f90]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
je 0x14001bd12
nop dword [rax]
jmp 0x14001bd10
mov edi, dword [r15]
test edi, edi
je 0x14001be66
sub rsp, 0x20
call sub.MSVCP140.dll__Thrd_id
add rsp, 0x20
cmp edi, eax
je 0x14001be7c
movups xmm0, xmmword [rsi]
movaps xmmword [rbp - 0x20], xmm0
sub rsp, 0x20
lea rcx, [rbp - 0x20]
xor edx, edx
call sub.MSVCP140.dll__Thrd_join
add rsp, 0x20
test eax, eax
jne 0x14001be92
mov qword [rsi], 0
mov dword [rsi + 8], 0
cmp dword [0x140185f8c], 0xa
jl 0x14001bd7c
mov eax, dword [0x140185f90]
lea ecx, [rax + 1]
imul ecx, eax
and ecx, 1
jne 0x14001bda3
cmp dword [r14], 0
jne 0x14001bda9
xor eax, eax
lea rsp, [rbp + 8]
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
cmp dword [r15], 0
jne 0x14001bda9
cmp dword [r14], 0
jne 0x14001bda9
cmp dword [r15], 0
jne 0x14001bda9
cmp dword [r14], 0
je 0x14001bd91
sub rsp, 0x20
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
mov qword [rbp - 0x10], r14
mov dword [rdi], 0
sub rsp, 0x20
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 0x10], rbx
mov dword [rsi], 0
sub rsp, 0x20
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 0x10], r14
mov dword [rbx], 0
sub rsp, 0x20
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 8], rbx
mov dword [r15], 0
sub rsp, 0x20
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 8], r15
sub rsp, 0x20
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 8], r15
sub rsp, 0x20
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 8], r15
sub rsp, 0x20
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 8], r15
sub rsp, 0x20
mov ecx, 1
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 8], r15
sub rsp, 0x20
mov ecx, 5
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
mov qword [rbp - 8], r15
sub rsp, 0x20
mov ecx, 2
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
add rsp, 0x20
int3