Function at 0x1400b8b90
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 0x1400b8bb6
cmp eax, 3
jne 0x1400b8c84
xor esi, esi
cmp dword [rdi + 0x280], esi
jne 0x1400b8bd5
mov rax, qword [rdi + 0x270]
test rax, rax
je 0x1400b8c36
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 0x1400b8c73
test eax, eax
je 0x1400b8c52
sub dword [rdi + 0x280], eax
jne 0x1400b8bb8
mov rax, qword [rdi + 0x270]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400ce0b0
test rbx, rbx
mov qword [rdi + 0x270], rbx
jne 0x1400b8bb8
mov qword [rdi + 0x278], rsi
jmp 0x1400b8bb8
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.1400b79f0
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 0x1400b8def
cmp dword [rdi + 0x258], 2
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r12
jne 0x1400b8de5
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 0x1400b8d59
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 0x1400b8d93
test eax, eax
je 0x1400b8d80
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 0x1400b8cd0
cmp ebx, 1
jne 0x1400b8dbc
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.1400b79f0
xor eax, eax
jmp 0x1400b8d66
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400b8de5
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.1400b79f0
xor eax, eax
jmp 0x1400b8d66
cmp ebx, 2
jne 0x1400b8dd4
lea rdx, str.451_Transfer_aborted:_read_error._r_n
mov rcx, rdi
call fcn.1400b79f0
xor eax, eax
jmp 0x1400b8d66
test ebx, ebx
jne 0x1400b8de5
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x1400b8d66
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.1400b79f0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
ret