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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbx, r8
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
je 0x1400054a7
test rbx, rbx
je 0x1400054a7
cmp dword [rcx + 0x74], 0
je 0x14000524c
mov eax, dword [rcx + 0x8c]
shr eax, 2
not eax
test al, 1
je 0x1400052ad
nop dword [rax + rax]
or r8d, 0xffffffff
xor edx, edx
xor ecx, ecx
call fcn.1400059b0
cmp eax, 0xffffffff
je 0x1400054f8
cmp dword [rdi + 0x74], 0
jne 0x140005230
mov esi, dword [rdi + 0x78]
test esi, esi
je 0x1400052bd
call fcn.140020434
mov ecx, esi
mov r9, rax
call fcn.1400050a0
mov dword [r9], eax
mov r8d, 0x229
mov eax, dword [rdi + 0x78]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], eax
lea rax, str.ERROR:_d__io:_p
xor esi, esi
mov qword [rsp + 0x30], rax
lea rdx, str.socketio_send
mov qword [rsp + 0x28], rsi
lea rcx, str.C:OpenSSHcontribwin32openssh......contribwin32win32compat_socketio.c
xor r9d, r9d
mov dword [rsp + 0x20], 7
call fcn.140008ef0
jmp 0x1400054f8
call fcn.140020434
mov dword [rax], 0xb
jmp 0x1400054f8
mov rax, qword [rdi + 0x60]
mov ecx, 0x11800
mov dword [rsp + 0x50], ecx
test rax, rax
jne 0x140005318
call fcn.140020374
mov qword [rsp + 0x58], rax
test rax, rax
jne 0x14000530b
call fcn.140020434
mov dword [rax], 0xc
call fcn.140020434
mov qword [rsp + 0x40], rdi
mov r8d, 0x233
mov eax, dword [rax]
mov dword [rsp + 0x38], eax
lea rax, str.send___ERROR:_d__io:_p
jmp 0x14000527e
mov ecx, dword [rsp + 0x50]
mov dword [rdi + 0x68], ecx
mov qword [rdi + 0x60], rax
jmp 0x14000531d
mov qword [rsp + 0x58], rax
cmp ecx, ebx
mov r8, rbp
cmovb ebx, ecx
mov rcx, rax
mov edx, ebx
mov r9d, ebx
mov dword [rsp + 0x50], ebx
call fcn.140002a70
xor r9d, r9d
xor esi, esi
test eax, eax
je 0x14000537a
mov dword [rsp + 0x38], eax
mov r8d, 0x23e
lea rax, str.memcpy_s_failed_with_error:__d.
mov qword [rsp + 0x30], rax
lea rdx, str.socketio_send
mov qword [rsp + 0x28], rsi
lea rcx, str.C:OpenSSHcontribwin32openssh......contribwin32win32compat_socketio.c
mov dword [rsp + 0x20], 7
call fcn.140008ef0
jmp 0x1400054f8
lea rcx, [0x140005160]
mov r8d, 1
mov qword [rsp + 0x30], rcx
lea rax, [rdi + 0x20]
mov rcx, qword [rdi + 0x90]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x140005402
mov eax, dword [rsp + 0x50]
mov edx, 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], esi
jne 0x1400053dd
cmp dword [rdi + 0x6c], esi
jne 0x1400053dd
mov eax, dword [rsp + 0x50]
jmp 0x1400054fb
call fcn.140020434
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov r8d, 0x24c
mov dword [rax], 0x83
lea rax, str.send___ERROR:_Unexpected_IO_state__io:_p
jmp 0x140005350
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x140005470
mov eax, dword [rdi + 0x8c]
mov ecx, dword [rsp + 0x50]
shr eax, 2
not eax
mov dword [rdi + 0x74], 1
mov dword [rdi + 0x6c], ecx
test al, 1
je 0x140005469
nop dword [rax]
or r8d, 0xffffffff
xor edx, edx
xor ecx, ecx
call fcn.1400059b0
cmp eax, 0xffffffff
jne 0x140005460
call fcn.140020434
cmp dword [rax], 4
jne 0x1400054f8
cmp dword [rdi + 0x74], esi
jne 0x1400054f8
call fcn.140020434
mov dword [rax], esi
cmp dword [rdi + 0x74], esi
jne 0x140005430
mov ecx, dword [rsp + 0x50]
mov eax, ecx
jmp 0x1400054fb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400050a0
mov ebx, eax
call fcn.140020434
mov dword [rax], ebx
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov qword [rsp + 0x40], rdi
mov r8d, 0x268
mov dword [rsp + 0x38], eax
lea rax, str.send___WSASend___ERROR:_d__io:_p
jmp 0x140005280
call fcn.140020434
mov qword [rsp + 0x48], rdi
lea rdx, str.socketio_send
mov qword [rsp + 0x40], rbx
lea rcx, str.C:OpenSSHcontribwin32openssh......contribwin32win32compat_socketio.c
mov qword [rsp + 0x38], rbp
xor esi, esi
mov dword [rax], 0x16
xor r9d, r9d
lea rax, str.send___ERROR_invalid_arguments__buf:_p__len:_d__io:_p
mov r8d, 0x20e
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov dword [rsp + 0x20], 7
call fcn.140008ef0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret