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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc0
mov edi, dword [r9]
mov r14, qword [r9 + 0x10]
mov qword [rsp + 0x70], rcx
mov rbp, rcx
lea r12, [rsp + 0x70]
mov r13, rdx
mov rcx, qword [0x140147408]
mov rbx, r8
mov rdx, r12
mov rsi, r9
lea r8, [sym.intcompare]
mov dword [rsp + 0x4c], 0
call sym.ListFindItem
test rax, rax
jne 0x1400cfa9b
mov ecx, ebx
test edi, edi
jle 0x1400cfa60
cmp edi, 1
je 0x1400cfa76
mov edx, edi
mov rax, r14
pxor xmm0, xmm0
shr edx, 1
shl rdx, 4
add rdx, r14
nop word [rax + rax]
movdqu xmm2, xmmword [rax]
add rax, 0x10
paddq xmm0, xmm2
cmp rax, rdx
jne 0x1400cf7a0
movdqa xmm1, xmm0
psrldq xmm1, 8
paddq xmm0, xmm1
movq rax, xmm0
add rbx, rax
test dil, 1
je 0x1400cf968
mov eax, edi
and eax, 0xfffffffe
cdqe
mov dword [rsp + 0x70], ecx
mov rdx, qword [rsi + 0x18]
add rbx, qword [r14 + rax*8]
mov rax, qword [rsi + 8]
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x50], 1
mov rcx, qword [rax]
mov qword [rsp + 0x88], rcx
cmp edi, 1
je 0x1400cfa28
mov rcx, qword [rax + 8]
mov qword [rsp + 0x98], rcx
cmp edi, 2
je 0x1400cfa40
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0xa8], rcx
cmp edi, 3
je 0x1400cf998
mov rax, qword [rax + 0x18]
mov qword [rsp + 0xb8], rax
mov rax, qword [r14]
mov dword [rsp + 0x80], eax
mov rax, qword [r14 + 8]
mov dword [rsp + 0x90], eax
mov rax, qword [r14 + 0x10]
mov dword [rsp + 0xa0], eax
mov rax, qword [r14 + 0x18]
mov dword [rsp + 0xb0], eax
mov r8d, edi
lea rcx, [rsp + 0x54]
shl r8, 2
call sym.memcpy
add edi, 1
lea r9, [rsp + 0x4c]
mov rdx, r12
mov rcx, rbp
mov dword [rsp + 0x4c], 0
mov r8d, edi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x1400cf9c0
mov edx, dword [rsp + 0x4c]
xor eax, eax
mov r13, rdx
cmp rdx, rbx
je 0x1400cf950
mov ecx, 8
call sym.malloc
mov rsi, rax
test rax, rax
je 0x1400cfa91
mov qword [rsp + 0x28], rbp
mov r9d, r13d
lea r8, str.Partial_write:__lu_bytes_of__lu_actually_written_on_socket__d
mov edx, 0xffffffff
mov qword [rsp + 0x20], rbx
mov ecx, 3
call sym.Log
mov eax, dword [rsp + 0x4c]
mov qword [rsp + 0x20], rbx
mov edx, edi
lea r9, [rsp + 0x50]
mov r8, r12
mov rcx, rbp
mov qword [rsp + 0x28], rax
call sym.SocketBuffer_pendingWrite
mov qword [rsi], rbp
mov rdx, rsi
mov rcx, qword [0x140147408]
mov r8d, 4
call sym.ListAppend
mov rdx, rax
mov eax, 0xffffffea
test rdx, rdx
je 0x1400cfa89
add rsp, 0xc0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x18]
mov dword [rsp + 0x70], ecx
mov qword [rsp + 0x78], r13
mov rcx, qword [rax]
mov dword [rsp + 0x50], 1
mov qword [rsp + 0x88], rcx
jmp 0x1400cf808
mov rax, qword [r14]
mov dword [rsp + 0x80], eax
mov rax, qword [r14 + 8]
mov dword [rsp + 0x90], eax
mov rax, qword [r14 + 0x10]
mov dword [rsp + 0xa0], eax
jmp 0x1400cf869
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp eax, 0x2714
je 0x1400cfa7d
cmp eax, 0x2733
je 0x1400cf8bc
cmp eax, 0x2734
je 0x1400cfa1a
mov ecx, eax
call sym.strerror
mov qword [rsp + 0x30], rbp
mov edx, 0xffffffff
lea r8, str.Socket_error__s__d__in__s_for_socket__d
mov r9, rax
lea rax, str.WSASend___putdatas
mov dword [rsp + 0x20], esi
mov ecx, 3
mov qword [rsp + 0x28], rax
call sym.Log
mov eax, 0xffffffff
jmp 0x1400cf950
mov rax, qword [r14]
mov dword [rsp + 0x80], eax
jmp 0x1400cf869
mov rax, qword [r14]
mov dword [rsp + 0x80], eax
mov rax, qword [r14 + 8]
mov dword [rsp + 0x90], eax
jmp 0x1400cf869
mov qword [rsp + 0x78], r13
mov dword [rsp + 0x70], ebx
mov dword [rsp + 0x50], 1
jmp 0x1400cf87a
xor eax, eax
jmp 0x1400cf7d5
cmp eax, 0x2733
jne 0x1400cfa1a
jmp 0x1400cf8bc
mov rcx, rsi
call sym.free
mov eax, 0xffffff9d
jmp 0x1400cf950
mov r9, rbp
mov edx, 0xffffffff
mov ecx, 6
lea r8, str.Trying_to_write_to_socket__d_for_which_there_is_already_pending_output
call sym.Log
jmp 0x1400cfa1a