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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x50
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x140004559
test rbx, rbx
je 0x140004559
cmp dword [rcx + 0x74], 0
je 0x140004360
mov eax, dword [rcx + 0x8c]
shr eax, 2
not eax
test al, 1
je 0x1400043a8
nop
call fcn.140004a00
cmp eax, 0xffffffff
je 0x1400043b3
cmp dword [rdi + 0x74], 0
jne 0x140004350
mov qword [rsp + 0x60], rsi
mov esi, dword [rdi + 0x78]
test esi, esi
je 0x1400043c6
call fcn.14001daf4
mov ecx, esi
mov r9, rax
call fcn.140004200
mov dword [r9], eax
lea rcx, str.ERROR:_d__io:_p
mov edx, dword [rdi + 0x78]
mov r8, rdi
call fcn.140007d70
or eax, 0xffffffff
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
call fcn.14001daf4
mov dword [rax], 0xb
or eax, 0xffffffff
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
mov rax, qword [rdi + 0x60]
mov ecx, 0x11800
mov dword [rsp + 0x40], ecx
test rax, rax
jne 0x140004412
call fcn.14001da34
mov qword [rsp + 0x48], rax
test rax, rax
jne 0x140004405
call fcn.14001daf4
mov dword [rax], 0xc
call fcn.14001daf4
mov r8, rdi
lea rcx, str.send___ERROR:_d__io:_p
mov edx, dword [rax]
jmp 0x14000438b
mov ecx, dword [rsp + 0x40]
mov dword [rdi + 0x68], ecx
mov qword [rdi + 0x60], rax
jmp 0x140004417
mov qword [rsp + 0x48], rax
cmp ecx, ebx
mov r8, rbp
cmovb ebx, ecx
mov rcx, rax
mov edx, ebx
mov r9d, ebx
mov dword [rsp + 0x40], ebx
call fcn.1400024d0
test eax, eax
je 0x140004447
mov edx, eax
lea rcx, str.memcpy_s_failed_with_error:__d.
call fcn.140007d70
jmp 0x140004390
xor ebx, ebx
lea rcx, [0x1400042c0]
mov qword [rsp + 0x30], rcx
lea rax, [rdi + 0x20]
mov rcx, qword [rdi + 0x90]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea r8d, [rbx + 1]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x1400044ca
mov eax, dword [rsp + 0x40]
lea edx, [rbx + 1]
xor ecx, ecx
mov dword [rdi + 0x6c], eax
mov dword [rdi + 0x74], 1
call qword [sym.imp.KERNEL32.dll_SleepEx]
cmp dword [rdi + 0x74], ebx
jne 0x1400044ab
cmp dword [rdi + 0x6c], ebx
jne 0x1400044ab
mov eax, dword [rsp + 0x40]
jmp 0x140004393
call fcn.14001daf4
mov rdx, rdi
lea rcx, str.send___ERROR:_Unexpected_IO_state__io:_p
mov dword [rax], 0x83
call fcn.140007d70
jmp 0x140004390
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x14000452c
mov eax, dword [rdi + 0x8c]
mov ecx, dword [rsp + 0x40]
shr eax, 2
not eax
mov dword [rdi + 0x74], 1
mov dword [rdi + 0x6c], ecx
test al, 1
je 0x140004525
call fcn.140004a00
cmp eax, 0xffffffff
jne 0x14000451c
call fcn.14001daf4
cmp dword [rax], 4
jne 0x140004390
cmp dword [rdi + 0x74], ebx
jne 0x140004390
call fcn.14001daf4
mov dword [rax], ebx
cmp dword [rdi + 0x74], ebx
jne 0x1400044f4
mov ecx, dword [rsp + 0x40]
mov eax, ecx
jmp 0x140004393
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.140004200
mov ebx, eax
call fcn.14001daf4
mov dword [rax], ebx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, rdi
lea rcx, str.send___WSASend___ERROR:_d__io:_p
mov edx, eax
jmp 0x14000438b
call fcn.14001daf4
mov r9, rdi
lea rcx, str.send___ERROR_invalid_arguments__buf:_p__len:_d__io:_p
mov r8, rbx
mov rdx, rbp
mov dword [rax], 0x16
call fcn.140007d70
mov rbx, qword [rsp + 0x68]
or eax, 0xffffffff
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret