Function at 0x1401b53d0
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Set socket configuration

Disassembly:
push rbp
push rbx
push rsi
push r13
push r14
push r15
lea rbp, [rsp - 0x88]
sub rsp, 0x188
mov rax, qword [0x14032f0c0]
xor rax, rsp
mov qword [rbp + 0x70], rax
cmp byte [0x140336ac1], 0
mov rsi, rdx
mov r14, qword [rcx + 0x10]
mov r13, rcx
je 0x1401b5443
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x140336ab8]
mov rax, qword [rsp + 0x58]
cqo
idiv r8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x1401b546e
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x60], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x68], eax
lea r15, [r14 + 0x98]
movups xmm0, xmmword [rsp + 0x60]
lea rdx, [r14 + 8]
mov qword [rsp + 0x1d0], rdi
mov r8, r15
mov rcx, rsi
movups xmmword [r14 + 0x148], xmm0
call fcn.1401b43c0
mov ebx, eax
test eax, eax
jne 0x1401b550b
mov rbx, qword [r13 + 0x10]
mov edx, dword [rbx + 0x14]
lea r9, [rbx + 0x110]
lea r8, [rbx + 0xe0]
lea rcx, [rbx + 0x18]
call fcn.14018c760
test al, al
jne 0x1401b556d
call fcn.1402277f0
mov ecx, dword [rax]
mov dword [rbx + 0x178], ecx
call fcn.1402277f0
mov ebx, dword [rax]
call fcn.1402277f0
lea rdx, [rsp + 0x70]
mov ecx, ebx
mov rdi, rax
call fcn.1401b9030
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.14019b0a0
mov ebx, 2
mov r14, qword [r15]
cmp r14, 0xffffffffffffffff
je 0x1401b58fa
mov rdi, qword [r13 + 0x18]
test rdi, rdi
je 0x1401b58ea
cmp qword [rdi + 0x18], 0
mov rdx, r14
mov rcx, rsi
je 0x1401b58e5
call fcn.14018ac20
test rsi, rsi
je 0x1401b58b5
mov rax, qword [rsi + 0xe0]
test rax, rax
je 0x1401b5893
mov byte [rax + 0x1ab], 1
mov rdx, r14
mov rax, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
call rax
jmp 0x1401b58c4
xor ebx, ebx
mov qword [rsp + 0x180], r12
cmp dword [r14 + 8], 0x17
jne 0x1401b55a8
mov rcx, qword [r15]
lea r9, [rsp + 0x50]
lea edx, [rbx + 0x29]
mov dword [rsp + 0x50], ebx
lea r8d, [rbx + 0x1b]
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
lea rdx, str.__Trying___s_:_d...
jmp 0x1401b55af
lea rdx, str.__Trying__s:_d...
mov r9d, dword [r14 + 0x110]
lea r8, [r14 + 0xe0]
mov rcx, rsi
call fcn.14019b1d0
mov eax, dword [r14 + 8]
mov r12, qword [rsp + 0x180]
cmp eax, 2
je 0x1401b55db
cmp eax, 0x17
jne 0x1401b55e2
cmp dword [r14 + 0xc], 1
je 0x1401b55ef
mov rcx, qword [r15]
call fcn.1401b45a0
jmp 0x1401b5723
cmp byte [rsi + 0xa94], bl
je 0x1401b5646
mov rcx, qword [r15]
lea r9, [rsp + 0x50]
mov edx, 6
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401b5646
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x70]
call fcn.1401b9030
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rsi
call fcn.14019b1d0
mov rcx, qword [r15]
call fcn.1401b45a0
cmp byte [rsi + 0xa9b], 0
je 0x1401b5723
mov rdi, qword [r15]
lea r9, [rsp + 0x50]
mov rcx, rdi
mov dword [rsp + 0x50], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401b569a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__qd:_errno__d
jmp 0x1401b5715
mov eax, dword [rsi + 0xa0c]
lea r8, [rsp + 0x60]
btr eax, 0x1f
mov dword [rsp + 0x60], 1
imul eax, eax, 0x3e8
mov edx, 0x98000004
mov dword [rsp + 0x64], eax
mov eax, dword [rsi + 0xa10]
btr eax, 0x1f
imul ecx, eax, 0x3e8
lea rax, [rsp + 0x58]
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x68], ecx
xor ecx, ecx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea r9d, [rcx + 0xc]
mov qword [rsp + 0x20], rcx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1401b5723
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__qd:_errno__d
mov r9d, eax
mov r8, rdi
mov rcx, rsi
call fcn.14019b1d0
cmp qword [rsi + 0x268], 0
je 0x1401b5797
mov rax, qword [rsi + 0xe0]
lea rdi, [rsi + 0xd8]
test rax, rax
jne 0x1401b5748
mov rax, qword [rdi]
test rax, rax
je 0x1401b574f
mov byte [rax + 0x1ab], 1
mov rdx, qword [r15]
xor r8d, r8d
mov rcx, qword [rsi + 0x270]
call qword [rsi + 0x268]
mov ecx, eax
mov rax, qword [rsi + 0xe0]
test rax, rax
jne 0x1401b5778
mov rax, qword [rdi]
test rax, rax
je 0x1401b577f
mov byte [rax + 0x1ab], 0
cmp ecx, 2
jne 0x1401b5789
mov dil, 1
jmp 0x1401b579a
test ecx, ecx
je 0x1401b5797
mov ebx, 0x2a
jmp 0x1401b550b
xor dil, dil
mov r9d, dword [r14 + 8]
cmp r9d, 2
je 0x1401b57aa
cmp r9d, 0x17
jne 0x1401b57d0
mov r8, qword [r15]
mov rcx, rsi
mov rdx, qword [r13 + 0x18]
call fcn.1401b4660
mov ebx, eax
test eax, eax
je 0x1401b57d0
cmp eax, 1
jne 0x1401b550b
lea ebx, [rax + 6]
jmp 0x1401b550b
mov rcx, qword [r15]
lea r8, [rsp + 0x50]
mov edx, 0x8004667e
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [r14 + 0xc], 2
setne al
mov byte [r14 + 0x17e], al
test dil, dil
je 0x1401b58fa
mov rdx, rsi
mov rcx, r13
call fcn.1401b51c0
cmp byte [0x140336ac1], 0
je 0x1401b5850
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x140336ab8]
mov rax, qword [rsp + 0x58]
cqo
idiv r8
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x1401b587b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x60], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x68], eax
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r14 + 0x158], xmm0
mov byte [r13 + 0x24], 1
jmp 0x1401b58fa
mov rax, qword [rsi + 0xd8]
test rax, rax
je 0x1401b58b5
mov byte [rax + 0x1ab], 1
mov rdx, r14
mov rax, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x20]
call rax
jmp 0x1401b58c4
mov rcx, qword [rdi + 0x20]
mov rdx, r14
call qword [rdi + 0x18]
test rsi, rsi
je 0x1401b58f3
mov rax, qword [rsi + 0xe0]
test rax, rax
jne 0x1401b58dc
mov rax, qword [rsi + 0xd8]
test rax, rax
je 0x1401b58f3
mov byte [rax + 0x1ab], 0
jmp 0x1401b58f3
call fcn.14018ac20
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r15], 0xffffffffffffffff
mov rax, qword [r15]
lea r8, str.cf_socket_open_______d__fd_qd
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov rdx, r13
mov rcx, rsi
call fcn.14019b2c0
mov rdi, qword [rsp + 0x1d0]
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1401f4d70
add rsp, 0x188
pop r15
pop r14
pop r13
pop rsi
pop rbx
pop rbp
ret