Function at 0x1400b9470
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 0x1400b9496
cmp eax, 3
jne 0x1400b9564
xor esi, esi
cmp dword [rdi + 0x280], esi
jne 0x1400b94b5
mov rax, qword [rdi + 0x270]
test rax, rax
je 0x1400b9516
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 0x1400b9553
test eax, eax
je 0x1400b9532
sub dword [rdi + 0x280], eax
jne 0x1400b9498
mov rax, qword [rdi + 0x270]
mov rcx, rax
mov rbx, qword [rax]
call fcn.1400cf470
test rbx, rbx
mov qword [rdi + 0x270], rbx
jne 0x1400b9498
mov qword [rdi + 0x278], rsi
jmp 0x1400b9498
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.1400b82d0
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 0x1400b96cf
cmp dword [rdi + 0x258], 2
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], r12
jne 0x1400b96c5
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 0x1400b9639
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 0x1400b9673
test eax, eax
je 0x1400b9660
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 0x1400b95b0
cmp ebx, 1
jne 0x1400b969c
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.1400b82d0
xor eax, eax
jmp 0x1400b9646
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x1400b96c5
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.1400b82d0
xor eax, eax
jmp 0x1400b9646
cmp ebx, 2
jne 0x1400b96b4
lea rdx, str.451_Transfer_aborted:_read_error._r_n
mov rcx, rdi
call fcn.1400b82d0
xor eax, eax
jmp 0x1400b9646
test ebx, ebx
jne 0x1400b96c5
mov rcx, qword [rdi + 0x298]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, 1
jmp 0x1400b9646
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.1400b82d0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
xor eax, eax
add rsp, 0x20
pop rdi
ret