Function at 0x140041410
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 [0x1401dc478]
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 0x140040df3
cmp qword [rsi + 0x28], 0
je 0x140040b2a
movzx ecx, byte [rsi + 0x38]
test cl, cl
je 0x140040af1
call fcn.140041700
lea rdx, [rsi + 0x18]
cmp qword [rsi + 0x30], 0x10
jb 0x140040b00
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.14000c800
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 0x140040b2a
xor ecx, ecx
call fcn.140041700
lea rcx, [rbx + 0xa0]
call sub.MSVCP140.dll__Mtx_lock
test eax, eax
jne 0x140040e66
cmp qword [rbx + 0x90], 0
jne 0x140040b8a
nop dword [rax + rax]
cmp byte [rbx + 0x98], 0
jne 0x140040b78
lea rcx, [rbx + 0xf0]
lea rdx, [rbx + 0xa0]
call sub.MSVCP140.dll__Cnd_wait
cmp qword [rbx + 0x90], 0
je 0x140040b50
jmp 0x140040b8a
lea rcx, [rbx + 0xa0]
call sub.MSVCP140.dll__Mtx_unlock
nop
jmp 0x140040df3
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 0x140040c3c
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x140040bf7
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040bf2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140040cae
call fcn.140161d84
mov qword [rsp + 0x98], r12
mov qword [rsp + 0xa0], sendto
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], sendto
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 0x140040c8b
mov rcx, qword [r15]
inc rdx
cmp rdx, 0x1000
jb 0x140040c86
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140040cae
mov rcx, r8
call fcn.140161d84
mov qword [r15 + 0x10], r12
mov qword [r15 + 0x18], sendto
mov byte [r15], 0
sub qword [rdi + 0x90], 1
jne 0x140040cb5
mov qword [rdi + 0x88], r12
jmp 0x140040cbc
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 0x140040cdd
cmp qword [rbx + 0x90], 0
jne 0x140040cdd
lea rcx, [rbx + 0x138]
call sub.MSVCP140.dll__Cnd_broadcast
jmp 0x140040ce9
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.14003f980
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.14003f830
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140040da3
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140040da3
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
nop
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.WS2_32.dll_recv]
test rax, rax
je 0x140040dbf
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
cmp qword [rsp + 0x98], 0
je 0x140040ddb
mov rax, qword [rsi]
lea rdx, [rsp + 0x88]
mov rcx, rsi
call qword [rax]
nop
jmp 0x140040ad0
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0x10
jb 0x140040e39
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040e34
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040e34
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140161d84
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.1401623e0
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 0x140041448
mov rdx, r8
cmp qword [r8 + 0x18], 0x10
jb 0x14004143f
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.140016a00
mov byte [rbx + 0x38], dil
lea rcx, [rbx + 0x50]
call fcn.140041380
test sil, sil
je 0x1400414d5
mov ecx, reloc.WS2_32.dll_recv
call fcn.140161d48
xor edi, edi
test rax, rax
je 0x14004147b
lea rcx, [0x140040a70]
mov qword [rax], rcx
mov qword [rax + 8], rbx
jmp 0x14004147e
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, [0x14003f650]
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 0x1400414ec
cmp dword [rbx + 0x10], 0
jne 0x1400414ce
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 0x140040a70
mov dword [rsp + 0x38], edi
mov ecx, 6
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3