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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
mov rdi, rcx
movsxd rbx, edx
mov r8, qword [rax + 0x1e0]
mov ecx, dword [r8 + rbx*4 + 8]
lea r10, [r8 + rbx*4]
test ecx, ecx
je 0x14005a02a
sub ecx, 2
je 0x140059fbc
cmp ecx, 1
jne 0x14005a0bb
mov ecx, dword [r8 + rbx*4 + 0x408]
test ecx, ecx
je 0x140059fa9
cmp ecx, 1
jne 0x14005a0bb
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 0x140059fff
cmp ecx, 1
jne 0x14005a0bb
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.14005a2f0
cmp dword [r8 + rbx*4 + 0x1808], 1
mov dword [r10 + 8], 1
jne 0x14005a0bb
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14005a500
cmp dword [r8 + rbx*4 + 0x808], 1
mov rcx, rdi
mov qword [rsp + 0x30], rsi
lea rsi, [r8 + rbx*4]
mov r8d, ebx
jne 0x14005a078
mov edx, 0xfb
mov dword [r10 + 8], 1
call fcn.14005a2f0
cmp dword [rsi + 0x1808], 1
jne 0x14005a0b6
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14005a500
cmp dword [rsi + 0x1808], 1
jne 0x14005a0ac
mov edx, 0xfb
mov dword [r10 + 8], 1
call fcn.14005a2f0
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14005a500
mov edx, 0xfc
call fcn.14005a2f0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x1f
jne 0x14005a6d9
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x14005a54f
lfence
mov rax, qword [rbx]
mov byte [rax], 0xff
inc qword [rbx]
mov rax, qword [rbx]
jmp 0x14005a552
mov rax, rsi
cmp rax, rbx
jae 0x14005a574
lfence
mov rax, qword [rbx]
mov byte [rax], 0xfa
inc qword [rbx]
cmp qword [rbx], rbx
jae 0x14005a574
lfence
mov rax, qword [rbx]
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx r8d, ax
cmp r9, rbx
jae 0x14005a623
lfence
mov rdx, qword [rbx]
movzx ecx, byte [rsp + 0x48]
mov byte [rdx], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a623
lfence
mov rcx, qword [rbx]
movzx eax, byte [rsp + 0x49]
mov byte [rcx], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a623
lfence
mov rax, qword [rbx]
mov byte [rax], r8b
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a623
lfence
mov rax, qword [rbx]
shr r8w, 8
mov byte [rax], r8b
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a623
lfence
mov rax, qword [rbx]
mov byte [rax], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x14005a623
lfence
mov rax, qword [rbx]
mov byte [rax], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.140059c00
mov rcx, qword [r14 + 0x258]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x14005a685
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037de0
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.14005a380
mov rcx, qword [r14 + 0x258]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14005a6d1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.140037de0
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret