Function at 0x14013cca0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x80
mov rbx, rcx
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], r14b
mov r15d, 0x48
nop word [rax + rax]
movzx eax, byte [rbx + 0x50]
nop
test al, al
jne 0x14013c6c1
cmp qword [rbx + 0x28], 0
je 0x14013c429
movzx ecx, byte [rbx + 0x38]
test cl, cl
je 0x14013c3f1
call fcn.14014bfd0
lea rdx, [rbx + 0x18]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x14013c403
mov rdx, qword [rdx]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006090
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
cmp byte [rbx + 0x38], 0
je 0x14013c429
xor ecx, ecx
call fcn.14014bfd0
lea rcx, [rbx + 0xa0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14013c710
cmp qword [rbx + 0x90], 0
jne 0x14013c481
cmp byte [rbx + 0x98], 0
jne 0x14013c46f
lea rcx, [rbx + 0xf0]
lea rdx, [rbx + 0xa0]
call sub.MSVCP140.dll__Cnd_wait
cmp qword [rbx + 0x90], 0
je 0x14013c447
jmp 0x14013c481
lea rcx, [rbx + 0xa0]
call fcn.14016372d
nop
jmp 0x14013c6c1
mov rcx, qword [rbx + 0x80]
dec rcx
and rcx, qword [rbx + 0x88]
mov rax, qword [rbx + 0x78]
mov rsi, qword [rax + rcx*8]
lea rax, [rsp + 0x60]
cmp rax, rsi
je 0x14013c514
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14013c4e1
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013c4dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14013c585
call fcn.140163960
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
movups xmm0, xmmword [rsi]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rsp + 0x70], xmm1
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], setsockopt
mov byte [rsi], 0
mov rcx, qword [rbx + 0x80]
dec rcx
and rcx, qword [rbx + 0x88]
mov rax, qword [rbx + 0x78]
mov rsi, qword [rax + rcx*8]
mov rdx, qword [rsi + 0x18]
cmp rdx, 0x10
jb 0x14013c563
mov rcx, qword [rsi]
inc rdx
cmp rdx, 0x1000
jb 0x14013c55e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14013c585
mov rcx, r8
call fcn.140163960
mov qword [rsi + 0x10], r14
mov qword [rsi + 0x18], setsockopt
mov byte [rsi], 0
sub qword [rbx + 0x90], 1
jne 0x14013c58c
mov qword [rbx + 0x88], r14
jmp 0x14013c593
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
inc qword [rbx + 0x88]
cmp byte [rbx + 0x98], 0
je 0x14013c5b4
cmp qword [rbx + 0x90], 0
jne 0x14013c5b4
lea rcx, [rbx + 0x138]
call sub.MSVCP140.dll__Cnd_broadcast
jmp 0x14013c5c0
lea rcx, [rbx + 0x138]
call sub.MSVCP140.dll__Cnd_signal
lea rcx, [rbx + 0xa0]
call fcn.14016372d
nop
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov rdi, rax
mov qword [rsp + 0x28], rax
mov word [rsp + 0x30], r15w
mov qword [rsp + 0x40], rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_htonl]
lea rax, [rsp + 0x30]
mov qword [rsp + 0xb8], rax
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x48], ax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000a830
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x48], ax
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x58], rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14000a700
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14013c677
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14013c677
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test rax, rax
je 0x14013c696
mov rcx, qword [rax]
mov r8, qword [rcx]
mov edx, 1
mov rcx, rax
call r8
cmp qword [rsp + 0x70], 0
je 0x14013c6ac
mov rax, qword [rbx]
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [rax]
nop
jmp 0x14013c3d0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0x10
jb 0x14013c701
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14013c6fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14013c6fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140163960
add rsp, 0x80
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, eax
call sub.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_
int3
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
movzx edi, r9b
mov rax, r8
movzx esi, dl
mov rbx, rcx
add rcx, 0x18
cmp rcx, r8
je 0x14013ccdb
mov r8, qword [r8 + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x14013ccd3
mov rax, qword [rax]
mov rdx, rax
call fcn.140015a20
mov byte [rbx + 0x38], dil
lea rcx, [rbx + 0x50]
call fcn.14013cc10
test sil, sil
je 0x14013cd68
mov ecx, 0x10
call fcn.140163924
xor edi, edi
test rax, rax
je 0x14013cd0e
lea rcx, [0x14013c390]
mov qword [rax], rcx
mov qword [rax + 8], rbx
jmp 0x14013cd11
mov rax, rdi
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14013b4d0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14013cd7f
cmp dword [rbx + 0x10], 0
jne 0x14013cd61
movaps xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx + 8], xmm0
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov rcx, rbx
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
jmp 0x14013c390
mov dword [rsp + 0x38], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3