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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1402e1040]
xor rax, rsp
mov qword [rbp + 0x50], rax
cmp byte [0x1402e3f79], 0
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
mov r13, rcx
mov byte [rsp + 0x30], 0
je 0x140121ff7
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x38]
mov r8, qword [0x1402e3f70]
mov rax, rcx
cqo
idiv r8
mov qword [rsp + 0x38], rax
mov rax, rcx
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x140122022
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x38], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x40], eax
lea r15, [rdi + 0x98]
movups xmm0, xmmword [rsp + 0x38]
mov r8, r15
mov qword [rsp + 0x1b0], r14
lea rdx, [rdi + 8]
mov rcx, rsi
movups xmmword [rdi + 0x108], xmm0
call fcn.140120f00
mov ebx, eax
test eax, eax
jne 0x1401220c1
mov rbx, qword [r13 + 0x10]
mov edx, dword [rbx + 0x14]
lea r9, [rbx + 0xfc]
lea r8, [rbx + 0xa0]
lea rcx, [rbx + 0x18]
call fcn.14010dd80
test al, al
jne 0x140122123
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, dword [rax]
mov dword [rbx + 0x14c], ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, [rsp + 0x50]
mov ecx, ebx
mov rdi, rax
call fcn.1400fae60
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140101e00
mov ebx, 2
mov rdi, qword [r15]
cmp rdi, 0xffffffffffffffff
je 0x1401224c0
mov r14, qword [r13 + 0x18]
test r14, r14
je 0x1401224b0
cmp qword [r14 + 0x18], 0
mov rdx, rdi
mov rcx, rsi
je 0x1401224ab
call fcn.14010b730
test rsi, rsi
je 0x140122486
mov rax, qword [rsi + 0xd8]
test rax, rax
je 0x140122486
mov byte [rax + 0x22b], 1
mov rdx, rdi
mov rax, qword [r14 + 0x18]
mov rcx, qword [r14 + 0x20]
call rax
jmp 0x140122496
mov r9d, dword [rdi + 0xfc]
lea r8, [rdi + 0xa0]
lea rdx, str.__Trying__s:_d...
mov rcx, rsi
xor ebx, ebx
call fcn.140101ff0
cmp dword [rdi + 8], 2
jne 0x14012230c
cmp dword [rdi + 0xc], 1
jne 0x14012230c
cmp byte [rsi + 0xa5a], bl
je 0x1401221af
mov rcx, qword [r15]
lea r9, [rsp + 0x38]
mov edx, 6
mov dword [rsp + 0x38], 1
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401221af
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x50]
call fcn.1400fae60
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rsi
call fcn.140101ff0
mov rcx, qword [r15]
call fcn.140120f90
cmp byte [rsi + 0xa61], 0
je 0x140122314
mov r14, qword [r15]
lea r9, [rsp + 0x38]
mov rcx, r14
mov dword [rsp + 0x38], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140122214
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r14
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__qd:_errno__d
mov r9d, eax
mov rcx, rsi
call fcn.140101ff0
jmp 0x140122314
mov eax, dword [rsi + 0x9cc]
lea r9, [rsp + 0x38]
btr eax, 0x1f
mov dword [rsp + 0x20], 4
imul eax, eax, 0x3e8
mov edx, 6
mov r8d, 3
mov rcx, r14
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140122268
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r14
lea rdx, str.Failed_to_set_TCP_KEEPIDLE_on_fd__qd:_errno__d
mov r9d, eax
mov rcx, rsi
call fcn.140101ff0
mov eax, dword [rsi + 0x9d0]
lea r9, [rsp + 0x38]
btr eax, 0x1f
mov dword [rsp + 0x20], 4
imul eax, eax, 0x3e8
mov edx, 6
mov r8d, reloc.WS2_32.dll_recvfrom
mov rcx, r14
mov dword [rsp + 0x38], eax
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1401222bc
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r14
lea rdx, str.Failed_to_set_TCP_KEEPINTVL_on_fd__qd:_errno__d
mov r9d, eax
mov rcx, rsi
call fcn.140101ff0
mov eax, dword [rsi + 0x9d4]
lea r9, [rsp + 0x38]
btr eax, 0x1f
mov dword [rsp + 0x20], 4
mov edx, 6
mov dword [rsp + 0x38], eax
mov r8d, reloc.WS2_32.dll_recv
mov rcx, r14
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x140122314
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r14
lea rdx, str.Failed_to_set_TCP_KEEPCNT_on_fd__qd:_errno__d
mov r9d, eax
mov rcx, rsi
call fcn.140101ff0
jmp 0x140122314
mov rcx, qword [r15]
call fcn.140120f90
cmp qword [rsi + 0x280], 0
je 0x140122361
mov rax, qword [rsi + 0xd8]
test rax, rax
je 0x140122331
mov byte [rax + 0x22b], 1
mov rdx, qword [r15]
xor r8d, r8d
mov rcx, qword [rsi + 0x288]
call qword [rsi + 0x280]
mov rcx, qword [rsi + 0xd8]
test rcx, rcx
je 0x140122357
mov byte [rcx + 0x22b], 0
cmp eax, 2
jne 0x140122395
mov byte [rsp + 0x30], 1
cmp dword [rdi + 8], 2
jne 0x1401223a3
mov r8, qword [r15]
mov r9d, 2
mov rdx, qword [r13 + 0x18]
mov rcx, rsi
call fcn.1401212e0
mov ebx, eax
test eax, eax
je 0x1401223a3
cmp eax, 1
jne 0x1401220c1
mov ebx, 7
jmp 0x1401220c1
test eax, eax
je 0x140122361
mov ebx, Ordinal_46
jmp 0x1401220c1
mov rcx, qword [r15]
lea r8, [rsp + 0x38]
mov edx, 0x8004667e
mov dword [rsp + 0x38], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jns 0x1401223d8
mov ebx, 1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi + 0x14c], eax
jmp 0x1401220c1
cmp dword [rdi + 0xc], 2
setne al
mov byte [rdi + 0x152], al
test ebx, ebx
jne 0x1401220c1
cmp byte [rsp + 0x30], bl
je 0x1401224c0
mov rdx, rsi
mov rcx, r13
call fcn.140121da0
cmp byte [0x1402e3f79], bl
je 0x140122444
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x38]
mov r8, qword [0x1402e3f70]
mov rax, rcx
cqo
idiv r8
mov qword [rsp + 0x38], rax
mov rax, rcx
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14012246f
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x38], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x40], eax
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdi + 0x118], xmm0
mov byte [r13 + 0x24], 1
jmp 0x1401224c0
mov rcx, qword [r14 + 0x20]
mov rdx, rdi
call qword [r14 + Ordinal_27]
test rsi, rsi
je 0x1401224b9
mov rax, qword [rsi + 0xd8]
test rax, rax
je 0x1401224b9
mov byte [rax + 0x22b], 0
jmp 0x1401224b9
call fcn.14010b730
mov rcx, rdi
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.140102040
mov r14, qword [rsp + 0x1b0]
mov eax, ebx
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.140171bd0
add rsp, 0x160
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret