Function at 0x140004ff0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xa0
mov rax, qword [0x140017010]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x58], r8
lea rbx, [rcx + 0x1a8]
cmp byte [rcx + 8], 0
je 0x140005075
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x68], 4
mov r14, rbx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x140005075
cmp dword [rsp + 0x60], eax
sete al
test al, al
jne 0x140005080
mov rcx, rsi
call fcn.140006290
mov r14, rbx
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000508d
mov rdx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x80], xmm1
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x1400050b0
lea rcx, [rsp + 0x70]
call fcn.140008600
nop
lea rdx, [rsp + 0x70]
cmp qword [rsp + 0x88], 0x10
cmovae rdx, qword [rsp + 0x70]
xor r9d, r9d
mov r8d, dword [rsp + 0x80]
mov rcx, qword [r14]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x14000512b
lea rdx, str.Failed_to_send_data._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002ec0
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov rcx, rbx
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__::operator___int____ptr64]
lea rdx, [0x140003090]
mov rcx, rax
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__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140005178
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.140006110
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140005178
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005173
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005173
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e1cc
mov rdx, rbp
mov rcx, rsi
call fcn.140006110
nop
mov rdx, qword [rsp + 0x88]
cmp rdx, 0x10
jb 0x1400051c7
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051c2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051c2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000e1cc
movdqa xmm0, xmmword [0x1400119c0]
movdqu xmmword [rsp + 0x80], xmm0
mov byte [rsp + 0x70], 0
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140005213
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x14000520e
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005247
mov rcx, r8
call fcn.14000e1cc
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], recv
mov byte [rdi], 0
mov rax, rbp
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14000e170
add rsp, 0xa0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3