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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x198]
mov rdi, rcx
movsxd rbx, edx
mov ecx, dword [r8 + rbx*4 + 8]
lea r10, [r8 + rbx*4]
test ecx, ecx
je 0x14011cb17
sub ecx, 2
je 0x14011caa9
cmp ecx, 1
jne 0x14011cba8
mov ecx, dword [r8 + rbx*4 + 0x408]
test ecx, ecx
je 0x14011ca96
cmp ecx, 1
jne 0x14011cba8
mov dword [r10 + 8], ecx
mov dword [r8 + rbx*4 + 0x408], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [r10 + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [r8 + rbx*4 + 0x408]
test ecx, ecx
je 0x14011caec
cmp ecx, 1
jne 0x14011cba8
mov dword [r8 + rbx*4 + 0x1008], 0
mov edx, 0xfc
mov r8d, ebx
mov dword [r10 + 8], 3
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.14011cde0
cmp dword [r8 + rbx*4 + 0x1808], 1
mov dword [r10 + 8], 1
jne 0x14011cba8
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14011cfe0
cmp dword [r8 + rbx*4 + 0x808], 1
mov rcx, rdi
mov qword [rsp + 0x30], rsi
lea rsi, [r8 + rbx*4]
mov r8d, ebx
jne 0x14011cb65
mov edx, 0xfb
mov dword [r10 + 8], 1
call fcn.14011cde0
cmp dword [rsi + 0x1808], 1
jne 0x14011cba3
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14011cfe0
cmp dword [rsi + 0x1808], 1
jne 0x14011cb99
mov edx, 0xfb
mov dword [r10 + 8], 1
call fcn.14011cde0
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14011cfe0
mov edx, 0xfc
call fcn.14011cde0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x1f
jne 0x14011d196
push rbp
push rdi
push r13
sub rsp, 0x20
mov rbp, qword [rcx + 0x198]
mov rdi, rcx
mov r13, qword [rcx + 0x20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
lea rsi, [rbp + 0x1cd8]
mov qword [rsp + 0x50], r14
lea rbx, [rbp + 0x1ed8]
mov qword [rsp + 0x58], r15
mov qword [rbx], rsi
mov rax, rsi
cmp rsi, rbx
jae 0x14011d036
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14011d04f
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14011d04f
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rbp + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rbp + 0x1caa]
movzx r14d, ax
shr r14w, 8
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
shr cx, 8
cmp r9, rbx
jae 0x14011d08e
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x14011d0a1
mov byte [r9], r14b
inc qword [rbx]
mov r9, qword [rbx]
mov r14, qword [rsp + 0x50]
cmp r9, rbx
jae 0x14011d0e0
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14011d0e0
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14011d0e0
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14011d0e0
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rbp + 0x1ee0], r9
lea r8, [rbp + 0x1cda]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.14011c700
mov rcx, qword [r13 + 0x188]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14011d142
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400edea0
lea rdx, [rbp + 0x1cdb]
mov r8d, 4
mov rcx, rdi
call fcn.14011ce70
mov rcx, qword [r13 + 0x188]
lea rdx, [rbp + 0x1cdf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14011d18e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.1400edea0
add rsp, 0x20
pop r13
pop rdi
pop rbp
ret