Function at 0x14006fdc0
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov rax, qword [0x140248318]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rsi, rcx
mov qword [rsp + 0x50], rcx
mov rbx, rcx
mov rdi, rcx
xor r12d, r12d
mov qword [r11 - 0x50], r12
mov qword [r11 - 0x40], r12
mov qword [r11 - 0x38], 0xf
mov byte [r11 - 0x50], r12b
mov r13d, 0x48
nop dword [rax + rax]
movzx eax, byte [rsi + 0x50]
nop
test al, al
jne 0x14006f713
cmp qword [rsi + 0x28], 0
je 0x14006f44a
movzx ecx, byte [rsi + 0x38]
test cl, cl
je 0x14006f411
call fcn.140070000
lea rdx, [rsi + 0x18]
cmp qword [rsi + 0x30], 0x10
jb 0x14006f420
mov rdx, qword [rsi + 0x18]
mov r8, qword [rsi + 0x28]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140010e10
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 [rsi + 0x38], 0
je 0x14006f44a
xor ecx, ecx
call fcn.140070000
lea rcx, [rbx + 0xa0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x14006f786
cmp qword [rbx + 0x90], 0
jne 0x14006f4aa
nop dword [rax + rax]
cmp byte [rbx + 0x98], 0
jne 0x14006f498
lea rcx, [rbx + 0xf0]
lea rdx, [rbx + 0xa0]
call sub.MSVCP140.dll__Cnd_wait
cmp qword [rbx + 0x90], 0
je 0x14006f470
jmp 0x14006f4aa
lea rcx, [rbx + 0xa0]
call sub.MSVCP140.dll__Mtx_unlock
nop
jmp 0x14006f713
mov rcx, qword [rdi + 0x80]
dec rcx
and rcx, qword [rdi + 0x88]
mov rax, qword [rdi + 0x78]
mov r15, qword [rax + rcx*8]
lea rax, [rsp + 0x88]
cmp rax, r15
je 0x14006f55c
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x14006f517
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006f512
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006f5ce
call fcn.14018bbf4
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], socket
mov byte [rsp + 0x88], 0
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x88], xmm0
movups xmm1, xmmword [r15 + 0x10]
movups xmmword [rsp + 0x98], xmm1
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], setsockopt
mov byte [r15], 0
mov rcx, qword [rdi + 0x80]
dec rcx
and rcx, qword [rdi + 0x88]
mov rax, qword [rdi + 0x78]
mov r15, qword [rax + rcx*8]
mov rdx, qword [r15 + 0x18]
cmp rdx, 0x10
jb 0x14006f5ab
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x14006f5a6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006f5ce
mov rcx, r8
call fcn.14018bbf4
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], setsockopt
mov byte [r15], 0
sub qword [rdi + 0x90], 1
jne 0x14006f5d5
mov qword [rdi + 0x88], r12
jmp 0x14006f5dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
inc qword [rdi + 0x88]
cmp byte [rbx + 0x98], 0
je 0x14006f5fd
cmp qword [rbx + 0x90], 0
jne 0x14006f5fd
lea rcx, [rbx + 0x138]
call sub.MSVCP140.dll__Cnd_broadcast
jmp 0x14006f609
lea rcx, [rbx + 0x138]
call sub.MSVCP140.dll__Cnd_signal
lea rcx, [rbx + 0xa0]
call sub.MSVCP140.dll__Mtx_unlock
nop
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov r14, rax
mov qword [rsp + 0x80], rax
mov word [rsp + 0x20], r13w
mov qword [rsp + 0x30], rax
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.WS2_32.dll_htonl]
lea rax, [rsp + 0x20]
mov qword [rsp + 0x68], rax
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x38], ax
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x88]
call fcn.1400160f0
movzx eax, word [rsp + 0x20]
mov word [rsp + 0x38], ax
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x48], rcx
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x88]
call fcn.140015fa0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14006f6c3
mov rax, qword [rcx]
call qword [rax + 0x10]
test rax, rax
je 0x14006f6c3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x10]
test rax, rax
je 0x14006f6df
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
cmp qword [rsp + 0x98], 0
je 0x14006f6fb
mov rax, qword [rsi]
lea rdx, [rsp + 0x88]
mov rcx, rsi
call qword [rax]
nop
jmp 0x14006f3f0
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x14006f759
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006f754
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006f754
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14018bbf4
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.14018bc90
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
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
movzx esi, dl
mov rbx, rcx
add rcx, 0x18
cmp rcx, r8
je 0x14006fdf8
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14006fdef
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.14000e9c0
mov byte [rbx + 0x38], dil
lea rcx, [rbx + 0x50]
call fcn.14006fd30
test sil, sil
je 0x14006fe85
mov ecx, 0x10
call fcn.14018bbb8
xor edi, edi
test rax, rax
je 0x14006fe2b
lea rcx, [0x14006f390]
mov qword [rax], rcx
mov qword [rax + 8], rbx
jmp 0x14006fe2e
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, [0x14006e480]
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 0x14006fe9c
cmp dword [rbx + 0x10], 0
jne 0x14006fe7e
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 0x14006f390
mov dword [rsp + 0x38], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3