Function at 0x1400c13c0
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x5c0]
sub rsp, 0x6c0
mov rax, qword [0x1402dc010]
xor rax, rsp
mov qword [rbp + 0x5b0], rax
mov rbx, rcx
xor r15d, r15d
lea rdi, [rcx + 0x12]
cmp byte [rcx + 0x10], r15b
jne 0x1400c140d
cmp byte [rdi], r15b
je 0x1400c1491
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x5c]
cmp eax, dword [rbx + 0x24]
jbe 0x1400c1491
movzx r10d, word [rbx + 0x54]
movzx ecx, byte [rbx + 0x50]
mov edx, dword [rbx + 0x50]
mov eax, edx
shr eax, 8
movzx r9d, al
mov eax, edx
shr eax, 0x10
movzx r8d, al
shr edx, 0x18
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, str.Connection_to__d._d._d._d:_d_lost_n
call fcn.1400c0f40
mov word [rbx + 0x10], 0x100
mov byte [rdi], r15b
mov byte [rbx + 0x13], 1
mov r14, qword [rbx + 0x48]
test r14, r14
je 0x1400c1491
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x1400c147a
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [r14 + 0x10], r15
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400c148d
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x48], r15
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2746
jne 0x1400c1517
cmp byte [rdi], r15b
je 0x1400c1517
movzx r10d, word [rbx + 0x54]
movzx ecx, byte [rbx + 0x50]
mov edx, dword [rbx + 0x50]
mov eax, edx
shr eax, 8
movzx r9d, al
mov eax, edx
shr eax, 0x10
movzx r8d, al
shr edx, 0x18
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, str.Disconnected_from__d._d._d._d:_d_n
call fcn.1400c0f40
mov byte [rdi], r15b
mov byte [rbx + 0x13], 1
mov byte [rbx + 0x10], r15b
mov rsi, qword [rbx + 0x48]
test rsi, rsi
je 0x1400c1517
mov rcx, qword [rsi + 0x10]
test rcx, rcx
je 0x1400c1500
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rsi + 0x10], r15
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1400c1513
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rbx + 0x48], r15
cmp byte [rbx + 0x13], r15b
jne 0x1400c16f0
cmp byte [rbx + 0x11], r15b
jne 0x1400c1610
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1400c1610
mov rcx, qword [rbx + 0x48]
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0x3a8], rax
mov dword [rbp + 0x3a0], 1
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x80], 1
mov rax, qword [rcx + 0x10]
mov qword [rbp + 0x198], rax
mov dword [rbp + 0x190], 1
mov qword [rsp + 0x30], 0xa
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x190]
lea r8, [rbp - 0x80]
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.WSOCK32.dll_select]
test eax, eax
je 0x1400c1610
mov rcx, qword [rbx + 0x48]
lea rdx, [rbp - 0x80]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
je 0x1400c1610
cmp byte [rdi], r15b
jne 0x1400c1619
movzx r10d, word [rbx + 0x54]
movzx ecx, byte [rbx + 0x50]
mov edx, dword [rbx + 0x50]
mov eax, edx
shr eax, 8
movzx r9d, al
mov eax, edx
shr eax, 0x10
movzx r8d, al
shr edx, 0x18
mov dword [rsp + 0x28], r10d
mov dword [rsp + 0x20], ecx
lea rcx, str.Connection_with__d._d._d._d:_d_established_n
call fcn.1400c0f40
mov byte [rdi], 1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x58], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x5c], eax
cmp byte [rdi], r15b
je 0x1400c16f0
cmp byte [rbx + 0x11], r15b
jne 0x1400c16f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0x58]
cmp eax, 0x1388
jbe 0x1400c16f0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x58], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x70], reloc.WSOCK32.dll_ntohs
mov qword [rsp + 0x68], 1
mov word [rsp + 0x58], socket
movups xmm0, xmmword [rsp + 0x58]
movups xmmword [rsp + 0x38], xmm0
movups xmm1, xmmword [rsp + 0x68]
movups xmmword [rsp + 0x48], xmm1
movdqa xmm0, xmmword [0x14028e7b0]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x30], rax
cmp qword [rbx + 0x48], 0
je 0x1400c16db
mov r8d, 1
lea rdx, [0x140279c4c]
lea rcx, [rsp + 0x38]
call fcn.1400267a0
mov r8d, dword [rsp + 0x48]
inc r8d
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdx, qword [rsp + 0x38]
mov rax, qword [rbx + 0x48]
xor r9d, r9d
mov rcx, qword [rax + 0x10]
call qword [sym.imp.WSOCK32.dll_send]
nop
lea rcx, [rsp + 0x38]
call fcn.1400075a0
nop
lea rcx, [rsp + 0x58]
call fcn.1400075a0
mov rcx, qword [rbp + 0x5b0]
xor rcx, rsp
call fcn.140239760
lea r11, [rsp + 0x6c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret