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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [rcx + 0x1c0]
mov rdi, rcx
movsxd rbx, edx
mov ecx, dword [r8 + rbx*4 + 8]
lea r10, [r8 + rbx*4]
test ecx, ecx
je 0x14009e257
sub ecx, 2
je 0x14009e1e9
cmp ecx, 1
jne 0x14009e2e8
mov ecx, dword [r8 + rbx*4 + 0x408]
test ecx, ecx
je 0x14009e1d6
cmp ecx, 1
jne 0x14009e2e8
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 0x14009e22c
cmp ecx, 1
jne 0x14009e2e8
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.14009e520
cmp dword [r8 + rbx*4 + 0x1808], 1
mov dword [r10 + 8], 1
jne 0x14009e2e8
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14009e720
cmp dword [r8 + rbx*4 + 0x808], 1
mov rcx, rdi
mov qword [rsp + 0x30], rsi
lea rsi, [r8 + rbx*4]
mov r8d, ebx
jne 0x14009e2a5
mov edx, 0xfb
mov dword [r10 + 8], 1
call fcn.14009e520
cmp dword [rsi + 0x1808], 1
jne 0x14009e2e3
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14009e720
cmp dword [rsi + 0x1808], 1
jne 0x14009e2d9
mov edx, 0xfb
mov dword [r10 + 8], 1
call fcn.14009e520
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14009e720
mov edx, 0xfc
call fcn.14009e520
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x1f
jne 0x14009e8cd
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, qword [rcx + 0x1c0]
mov rdi, rcx
mov r15, qword [rcx + 0x20]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
lea rbx, [rsi + 0x1ed8]
mov qword [rsp + 0x58], r14
lea r14, [rsi + 0x1cd8]
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x14009e772
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x14009e78b
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x14009e78b
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x14009e7c1
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x14009e817
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e817
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e817
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e817
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14009e817
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ee0], r9
lea r8, [rsi + 0x1cda]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.14009de40
mov rcx, qword [r15 + 0x220]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14009e879
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1400c0398]
mov rcx, rdi
mov r8d, eax
call fcn.140074760
lea rdx, [rsi + 0x1cdb]
mov r8d, 4
mov rcx, rdi
call fcn.14009e5b0
mov rcx, qword [r15 + 0x220]
lea rdx, [rsi + 0x1cdf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14009e8c5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x1400c0398]
mov rcx, rdi
mov r8d, eax
call fcn.140074760
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret