Function at 0x1800365c0
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 + 0x1a8]
mov edx, dword [r8 + rbx*4 + 8]
lea rcx, [r8 + rbx*4]
test edx, edx
je 0x1800360e6
sub edx, 2
je 0x18003607a
cmp edx, 1
jne 0x18003617b
mov edx, dword [r8 + rbx*4 + 0x408]
test edx, edx
je 0x180036068
cmp edx, 1
jne 0x18003617b
mov dword [rcx + 8], edx
mov dword [r8 + rbx*4 + 0x408], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov dword [rcx + 8], 0
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov edx, dword [r8 + rbx*4 + 0x408]
test edx, edx
je 0x1800360bc
cmp edx, 1
jne 0x18003617b
mov dword [rcx + 8], 3
mov edx, 0xfc
mov dword [r8 + rbx*4 + 0x1008], 0
mov rcx, rdi
mov r8d, ebx
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1800363b0
cmp dword [r8 + rbx*4 + 0x1808], 1
mov dword [rcx + 8], 1
jne 0x18003617b
mov edx, ebx
mov rcx, rdi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800365c0
cmp dword [r8 + rbx*4 + 0x808], 1
mov qword [rsp + 0x30], rsi
lea rsi, [r8 + rbx*4]
mov r8d, ebx
jne 0x180036133
mov dword [rcx + 8], 1
mov edx, 0xfb
mov rcx, rdi
call fcn.1800363b0
cmp dword [rsi + 0x1808], 1
jne 0x180036176
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800365c0
cmp dword [rsi + 0x1808], 1
jne 0x180036169
mov dword [rcx + 8], 1
mov edx, 0xfb
mov rcx, rdi
call fcn.1800363b0
mov edx, ebx
mov rcx, rdi
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x1800365c0
mov edx, 0xfc
mov rcx, rdi
call fcn.1800363b0
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp edx, 0x1f
jne 0x18003676c
push rsi
push rdi
push r15
sub rsp, 0x20
mov rsi, qword [rcx]
mov r15, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], r14
mov rdi, qword [rsi + 0x1a8]
lea r14, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov rax, r14
mov qword [rbx], r14
cmp r14, rbx
jae 0x180036611
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x18003662a
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x18003662a
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]
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 0x180036660
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x50]
cmp r9, rbx
jae 0x1800366b6
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800366b6
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800366b6
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800366b6
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1800366b6
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rsi
call fcn.180035cc0
mov rcx, qword [r15 + 0x4c0]
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 0x180036718
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.180014e30
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r15
call fcn.180036440
mov rcx, qword [r15 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x180036764
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.180014e30
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret