Function at 0x14007b740
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 r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
cmp byte [0x140163eb8], 0
mov rsi, rdx
mov rdi, qword [rcx + 0x10]
mov r13, rcx
je 0x14007b7a9
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x140163eb0]
mov rax, qword [rbp + 0xa0]
cqo
idiv rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0xa0]
cqo
idiv rcx
imul rax, rdx, 0xf4240
cqo
idiv rcx
jmp 0x14007b7d4
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x30], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x38], eax
lea r14, [rdi + 0x98]
movups xmm0, xmmword [rsp + 0x30]
mov r8, r14
mov qword [rsp + 0x1a8], r12
lea rdx, [rdi + 8]
mov rcx, rsi
movups xmmword [rdi + 0x108], xmm0
call fcn.14007a9e0
mov ebx, eax
test eax, eax
jne 0x14007b873
mov rbx, qword [r13 + 0x10]
mov edx, dword [rbx + 0x14]
lea r9, [rbx + 0xfc]
lea r8, [rbx + 0xa0]
lea rcx, [rbx + 0x18]
call fcn.14006a180
test al, al
jne 0x14007b8d5
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 + 0x40]
mov ecx, ebx
mov rdi, rax
call fcn.14005b050
mov r8d, dword [rdi]
lea rdx, str.curl_sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140077850
mov ebx, 2
mov rdi, qword [r14]
cmp rdi, 0xffffffffffffffff
je 0x14007be00
mov r15, qword [r13 + 0x18]
test r15, r15
je 0x14007bdf0
cmp qword [r15 + 0x20], 0
mov rdx, rdi
mov rcx, rsi
je 0x14007bdeb
call fcn.140064a70
test rsi, rsi
je 0x14007bdc6
mov rax, qword [rsi + 0xe8]
test rax, rax
je 0x14007bdc6
mov byte [rax + 0x25b], 1
mov rdx, rdi
mov rax, qword [r15 + 0x20]
mov rcx, qword [r15 + 0x28]
call rax
jmp 0x14007bdd6
mov r9d, dword [rdi + 0xfc]
lea r8, [rdi + 0xa0]
lea rdx, str.__Trying__s:_d...
mov rcx, rsi
xor ebx, ebx
call fcn.140077a60
cmp dword [rdi + 8], 2
jne 0x14007b962
cmp dword [rdi + 0xc], 1
jne 0x14007b962
mov r15b, 1
cmp byte [rsi + 0x9b2], bl
je 0x14007b965
mov rcx, qword [r14]
lea r9, [rbp + 0xa0]
mov edx, 6
mov dword [rbp + 0xa0], 1
mov r8d, 1
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14007b965
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0x40]
call fcn.14005b050
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, rsi
call fcn.140077a60
jmp 0x14007b965
xor r15b, r15b
mov eax, dword [0x140163db4]
mov r12, qword [r14]
mov dword [rbp + 0xb0], 0x4020
mov dword [rbp + 0xa0], 0
mov dword [rbp + 0xb8], 4
test eax, eax
jne 0x14007ba96
cmp byte [reloc.WS2_32.dll_accept], al
je 0x14007b9c7
lea rcx, [0x140150880]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.RtlVerifyVersionInfo
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140163e98], rax
mov byte [reloc.WS2_32.dll_accept], 0
xor edx, edx
lea rcx, [rsp + 0x54]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [rsp + 0x40], 0x11c
mov r8b, 3
mov dword [rsp + 0x4c], eax
mov edx, 2
mov qword [rsp + 0x44], 6
xor ecx, ecx
mov dword [rsp + 0x50], 2
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, 0x20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 3
mov edx, reloc.WS2_32.dll_recv
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r8b, 1
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov r9, qword [0x140163e98]
lea rcx, [rsp + 0x40]
mov r8, rax
mov edx, 0x3b
test r9, r9
je 0x14007ba6f
call r9
test eax, eax
sete al
jmp 0x14007ba7a
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
setne al
test al, al
je 0x14007ba8a
mov dword [0x140163db4], 2
jmp 0x14007baf7
mov dword [0x140163db4], 1
jmp 0x14007ba9b
cmp eax, 2
je 0x14007baf7
lea rax, [rbp + 0xb8]
mov edx, 0xffff
lea r9, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, r12
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14007bad4
mov eax, dword [rbp + 0xb0]
cmp dword [rbp + 0xa0], eax
jg 0x14007baf7
lea r9, [rbp + 0xb0]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, r12
call qword [sym.imp.WS2_32.dll_setsockopt]
test r15b, r15b
je 0x14007bc49
cmp byte [rsi + 0x9b9], 0
je 0x14007bc49
mov r15, qword [r14]
lea r9, [rbp + 0xa0]
mov rcx, r15
mov dword [rbp + 0xa0], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 8
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14007bb53
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__qd:_errno__d
jmp 0x14007bc3b
mov eax, dword [rsi + 0x93c]
lea r9, [rbp + 0xa0]
btr eax, 0x1f
mov dword [rsp + 0x20], 4
mov edx, 6
mov dword [rbp + 0xa0], eax
mov r8d, 3
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14007bba5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r15
lea rdx, str.Failed_to_set_TCP_KEEPIDLE_on_fd__qd:_errno__d
mov r9d, eax
mov rcx, rsi
call fcn.140077a60
mov eax, dword [rsi + 0x940]
lea r9, [rbp + 0xa0]
btr eax, 0x1f
mov dword [rsp + 0x20], 4
mov edx, 6
mov dword [rbp + 0xa0], eax
mov r8d, send
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14007bbf7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8, r15
lea rdx, str.Failed_to_set_TCP_KEEPINTVL_on_fd__qd:_errno__d
mov r9d, eax
mov rcx, rsi
call fcn.140077a60
mov eax, dword [rsi + 0x944]
lea r9, [rbp + 0xa0]
btr eax, 0x1f
mov dword [rsp + 0x20], 4
mov edx, 6
mov dword [rbp + 0xa0], eax
mov r8d, reloc.WS2_32.dll_recv
mov rcx, r15
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x14007bc49
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Failed_to_set_TCP_KEEPCNT_on_fd__qd:_errno__d
mov r9d, eax
mov r8, r15
mov rcx, rsi
call fcn.140077a60
cmp qword [rsi + 0x290], 0
je 0x14007bca4
mov rax, qword [rsi + 0xe8]
test rax, rax
je 0x14007bc66
mov byte [rax + 0x25b], 1
mov rdx, qword [r14]
xor r8d, r8d
mov rcx, qword [rsi + 0x298]
call qword [rsi + 0x290]
mov rcx, qword [rsi + 0xe8]
test rcx, rcx
je 0x14007bc8c
mov byte [rcx + 0x25b], 0
cmp eax, 2
jne 0x14007bc96
mov r12b, 1
jmp 0x14007bca7
test eax, eax
je 0x14007bca4
mov ebx, 0x2a
jmp 0x14007b873
xor r12b, r12b
cmp dword [rdi + 8], 2
jne 0x14007bcdb
mov r8, qword [r14]
mov r9d, 2
mov rdx, qword [r13 + 0x18]
mov rcx, rsi
call fcn.14007ab30
mov ebx, eax
test eax, eax
je 0x14007bcdb
cmp eax, 1
jne 0x14007b873
mov ebx, 7
jmp 0x14007b873
mov rcx, qword [r14]
lea r8, [rbp + 0xa0]
mov edx, 0x8004667e
mov dword [rbp + 0xa0], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jns 0x14007bd14
mov ebx, 1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rdi + 0x14c], eax
jmp 0x14007b873
cmp dword [rdi + 0xc], 2
setne al
mov byte [rdi + 0x153], al
test ebx, ebx
jne 0x14007b873
test r12b, r12b
je 0x14007be00
mov rdx, rsi
mov rcx, r13
call fcn.14007b580
cmp byte [0x140163eb8], bl
je 0x14007bd84
lea rcx, [rbp + 0xa0]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x140163eb0]
mov rax, qword [rbp + 0xa0]
cqo
idiv r8
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0xa0]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
jmp 0x14007bdaf
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov ecx, edx
mov qword [rsp + 0x30], rcx
imul ecx, edx, 0x3e8
sub r8d, ecx
imul eax, r8d, 0x3e8
mov dword [rsp + 0x38], eax
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi + 0x118], xmm0
mov byte [r13 + 0x24], 1
jmp 0x14007be00
mov rcx, qword [r15 + 0x28]
mov rdx, rdi
call qword [r15 + 0x20]
test rsi, rsi
je 0x14007bdf9
mov rax, qword [rsi + 0xe8]
test rax, rax
je 0x14007bdf9
mov byte [rax + 0x25b], 0
jmp 0x14007bdf9
call fcn.140064a70
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [r14], 0xffffffffffffffff
mov rax, qword [r14]
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.140077ab0
mov r12, qword [rsp + 0x1a8]
mov eax, ebx
add rsp, 0x160
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret