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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov eax, dword [rcx + 0x258]
mov rdi, rcx
cmp eax, 1
je 0x1400b95d6
cmp eax, 3
jne 0x1400b96a4
xor esi, esi
cmp dword [rdi + 0x280], esi
jne 0x1400b95f5
mov rax, qword [rdi + 0x270]
test rax, rax
je 0x1400b9656
mov eax, dword [rax + 8]
mov dword [rdi + 0x280], eax
mov rdx, qword [rdi + 0x270]
movsxd r8, dword [rdi + 0x280]
xor r9d, r9d
mov ecx, dword [rdx + 8]
sub rcx, r8
lea rdx, [rcx + rdx + 0x10]
mov rcx, qword [rdi + 0x260]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x1400b9693
test eax, eax
je 0x1400b9672
sub dword [rdi + 0x280], eax
jne 0x1400b95d8
mov rax, qword [rdi + 0x270]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400cf780
test rbx, rbx
mov qword [rdi + 0x270], rbx
jne 0x1400b95d8
mov qword [rdi + 0x278], rsi
jmp 0x1400b95d8
mov dword [rdi + 0x268], 1
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rdx, str.426_Connection_closed__transfer_aborted._r_n
mov rcx, rdi
call fcn.1400b8410
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400b980f
cmp dword [rdi + 0x258], 2
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r12
jne 0x1400b9805
lea rcx, [rdi + 0x2a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [rdi + 0x288]
mov r12d, dword [rdi + 0x278]
mov ebx, dword [rdi + 0x2cc]
lea rcx, [rdi + 0x2a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
je 0x1400b9779
mov rcx, qword [rdi + 0x260]
movsxd rax, esi
movsxd rdx, r12d
sub rdx, rax
xor r9d, r9d
mov r8d, esi
add rdx, qword [rdi + 0x270]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
mov ebx, eax
je 0x1400b97b3
test eax, eax
je 0x1400b97a0
lea rcx, [rdi + 0x2a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rdi + 0x2a0]
sub esi, ebx
mov dword [rdi + 0x288], esi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, [rdi + 0x2a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [rdi + 0x288]
mov r12d, dword [rdi + 0x278]
mov ebx, dword [rdi + 0x2cc]
lea rcx, [rdi + 0x2a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test esi, esi
jne 0x1400b96f0
cmp ebx, 1
jne 0x1400b97dc
mov dword [rdi + 0x268], ebx
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rdx, str.426_Connection_closed__transfer_aborted._r_n
mov rcx, rdi
call fcn.1400b8410
xor eax, eax
jmp 0x1400b9786
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400b9805
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.426_send_failed__d_r_n
mov rcx, rdi
mov r8d, eax
call fcn.1400b8410
xor eax, eax
jmp 0x1400b9786
cmp ebx, 2
jne 0x1400b97f4
lea rdx, str.451_Transfer_aborted:_read_error._r_n
mov rcx, rdi
call fcn.1400b8410
xor eax, eax
jmp 0x1400b9786
test ebx, ebx
jne 0x1400b9805
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x1400b9786
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.500_send_failed__d._r_n
mov rcx, rdi
mov r8d, eax
call fcn.1400b8410
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
ret