Function at 0x1400b95e0
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 0x1400b9606
cmp eax, 3
jne 0x1400b96d4
xor esi, esi
cmp dword [rdi + 0x280], esi
jne 0x1400b9625
mov rax, qword [rdi + 0x270]
test rax, rax
je 0x1400b9686
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 0x1400b96c3
test eax, eax
je 0x1400b96a2
sub dword [rdi + 0x280], eax
jne 0x1400b9608
mov rax, qword [rdi + 0x270]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400cf780
test rbx, rbx
mov qword [rdi + 0x270], rbx
jne 0x1400b9608
mov qword [rdi + 0x278], rsi
jmp 0x1400b9608
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.1400b8440
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 0x1400b983f
cmp dword [rdi + 0x258], 2
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r12
jne 0x1400b9835
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 0x1400b97a9
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 0x1400b97e3
test eax, eax
je 0x1400b97d0
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 0x1400b9720
cmp ebx, 1
jne 0x1400b980c
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.1400b8440
xor eax, eax
jmp 0x1400b97b6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400b9835
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.1400b8440
xor eax, eax
jmp 0x1400b97b6
cmp ebx, 2
jne 0x1400b9824
lea rdx, str.451_Transfer_aborted:_read_error._r_n
mov rcx, rdi
call fcn.1400b8440
xor eax, eax
jmp 0x1400b97b6
test ebx, ebx
jne 0x1400b9835
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x1400b97b6
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.1400b8440
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
ret