Function at 0x1401c51f0
Capabilities:
Check for time delay via gettickcount
Reference cloudflare dns server
Reference google public dns server

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xf0
mov rax, qword [0x14037d7c0]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x78], r9
mov qword [rsp + 0x80], r8
mov ebx, edx
mov dword [rsp + 0x58], edx
mov qword [rsp + 0x60], rcx
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x70], rax
mov r14, qword [rsp + 0x160]
mov qword [rsp + 0x88], r14
mov rdi, qword [rsp + 0x168]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], rax
lea r8, str.doDnsQuery
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.1400d0c20
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0xb8], xmm0
movups xmmword [rsp + 0xc8], xmm0
movups xmmword [rsp + 0xd8], xmm0
lea rcx, [rsp + 0xb8]
call fcn.1400bc380
nop
call fcn.140114100
test eax, eax
jg 0x1401c52cd
mov rcx, rdi
call fcn.1401c73b0
test al, al
jne 0x1401c52cd
lea rdx, str.Check_cache_nameservers_failed.
jmp 0x1401c58f7
mov rdx, rdi
mov rcx, r14
call fcn.1400faa80
test al, al
je 0x1401c52e8
lea rdx, str.DNS_query_aborted_by_application.
jmp 0x1401c58f7
xor cl, cl
lea eax, [rbx - 1]
movzx r12d, cl
mov ecx, 1
cmp eax, ecx
cmovbe r12d, ecx
mov dword [rsp + 0x68], r12d
call fcn.140114790
test al, al
jne 0x1401c5316
lea rdx, str.DNS_cache_is_either_finalized_or_invalid.
jmp 0x1401c58f7
call fcn.140114100
mov r15d, eax
test eax, eax
jne 0x1401c5364
mov dl, 1
lea rcx, str.8.8.8.8
call fcn.1401144f0
mov dl, 1
lea rcx, str.1.1.1.1
call fcn.1401144f0
call fcn.140114100
mov r15d, eax
test eax, eax
jne 0x1401c5364
mov rax, qword [rdi]
lea rdx, str.No_DNS_nameservers_have_been_defined.
mov rcx, rdi
call qword [rax + 0x28]
call fcn.140114660
jmp 0x1401c5900
mov eax, 0x20
cmp r15d, eax
cmovg r15d, eax
mov dword [rsp + 0x6c], r15d
movsxd rbx, r15d
mov qword [rsp + 0x50], rbx
mov eax, 0xb8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call fcn.140257490
mov qword [rsp + 0x90], rax
lea r13, [0x1401c38b0]
test rax, rax
je 0x1401c53d9
mov qword [rax], rbx
lea rsi, [rax + 8]
mov qword [rsp + 0x20], r13
lea r9, [0x1401c3890]
mov r8, rbx
mov edx, 0xb8
mov rcx, rsi
call fcn.140257418
jmp 0x1401c53db
xor esi, esi
test rsi, rsi
jne 0x1401c53fa
mov rax, qword [rdi]
lea rdx, str.Failed_to_allocate_array_for_nameserver_connections.
mov rcx, rdi
call qword [rax + 0x28]
call fcn.140114660
jmp 0x1401c5900
xor ebp, ebp
test r12b, r12b
je 0x1401c54aa
mov qword [rsp + 0x90], rbx
mov eax, 0xb8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
add rax, 8
cmovb rax, rcx
mov rcx, rax
call fcn.140257490
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1401c545f
mov qword [rax], rbx
lea rbp, [rax + 8]
mov qword [rsp + 0x20], r13
lea r9, [0x1401c3890]
mov r8, rbx
mov edx, 0xb8
mov rcx, rbp
call fcn.140257418
jmp 0x1401c5461
xor ebp, ebp
test rbp, rbp
jne 0x1401c54aa
mov r9, r13
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1402570d4
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.140257488
nop
mov rax, qword [rdi]
lea rdx, str.Failed_to_allocate_array_for_nameserver_TLS_connections.
mov rcx, rdi
call qword [rax + 0x28]
call fcn.140114660
jmp 0x1401c5900
xor r12d, r12d
xor r13d, r13d
xor ebx, ebx
test r15d, r15d
jle 0x1401c5594
lea r15, [rbp + 0x10]
lea r12, [rsi + 0x10]
mov r14d, ebx
mov qword [r12 - 0x10], 0xffffffffffffffff
mov qword [r12 - 8], 0
mov dword [r12], 0
mov byte [r12 + 0x10], 0
mov byte [rsp + 0x98], 0
movsxd rax, r14d
imul rcx, rax, 0xb8
lea rdx, [rsi + 0x28]
add rdx, rcx
mov r9, rdi
lea r8, [rsp + 0x98]
mov ecx, ebx
call fcn.140114040
test al, al
je 0x1401c551f
inc r14d
add r12, 0xb8
cmp byte [rsp + 0x68], 0
je 0x1401c5576
cmp byte [rsp + 0x98], 0
je 0x1401c5576
mov qword [r15 - 0x10], 0xffffffffffffffff
xor eax, eax
mov qword [r15 - 8], rax
mov dword [r15], eax
mov byte [r15 + 0x10], al
movsxd rax, r13d
imul rcx, rax, 0xb8
lea rdx, [rbp + 0x28]
add rdx, rcx
mov r9, rdi
lea r8, [rsp + 0x98]
mov ecx, ebx
call fcn.140114040
test al, al
je 0x1401c5576
inc r13d
add r15, 0xb8
inc ebx
cmp ebx, dword [rsp + 0x6c]
jl 0x1401c54c6
mov dword [rsp + 0x50], r14d
mov r14, qword [rsp + 0x88]
mov r12d, dword [rsp + 0x50]
call fcn.140114660
mov r15d, dword [rsp + 0x158]
test r13d, r13d
jne 0x1401c5630
cmp dword [rsp + 0x58], 2
jne 0x1401c578f
mov rax, qword [rdi]
lea rdx, str.Your_application_requires_DoT__DNS_over_TLS___but_none_of_the_nameservers_support_DoT
mov rcx, rdi
call qword [rax + 0x28]
nop
lea r9, [0x1401c38b0]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1402570d4
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.140257488
nop
test rbp, rbp
je 0x1401c5900
lea r9, [0x1401c38b0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1402570d4
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.140257488
nop
jmp 0x1401c5900
jle 0x1401c578f
mov ebx, dword [rsp + 0x58]
lea eax, [rbx - 1]
cmp eax, 1
ja 0x1401c578f
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x38], r15d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8, rbp
mov edx, r13d
mov r13, qword [rsp + 0x60]
mov rcx, r13
call fcn.1401c47d0
test al, al
je 0x1401c56f8
lea r9, [0x1401c38b0]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1402570d4
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.140257488
nop
test rbp, rbp
je 0x1401c56f1
lea r9, [0x1401c38b0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1402570d4
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.140257488
nop
mov bl, 1
jmp 0x1401c5902
cmp ebx, 2
jne 0x1401c5794
mov rax, qword [rdi]
lea rdx, str.Your_application_requires_DoT__DNS_over_TLS___but_none_of_the_TLS_nameservers_were_successful_for_this_DNS_lookup.
mov rcx, rdi
call qword [rax + 0x28]
mov rax, qword [rdi]
mov r8, r13
lea rdx, str.domain
mov rcx, rdi
call qword [rax + 0x58]
nop
lea r9, [0x1401c38b0]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1402570d4
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.140257488
nop
test rbp, rbp
je 0x1401c5900
lea r9, [0x1401c38b0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1402570d4
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.140257488
nop
jmp 0x1401c5900
mov r13, qword [rsp + 0x60]
test rbp, rbp
je 0x1401c57c7
lea r9, [0x1401c38b0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1402570d4
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.140257488
nop
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r15d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, rsi
mov edx, r12d
mov rcx, r13
call fcn.1401c4c20
test al, al
je 0x1401c5839
lea r9, [0x1401c38b0]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1402570d4
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.140257488
nop
mov bl, 1
jmp 0x1401c5902
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
mov eax, 0xcccccccd
mul r15d
mov ebp, edx
shr ebp, 2
cmp byte [r14 + 0x2c], 0
je 0x1401c58c2
mov rcx, r14
call fcn.1400fa900
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r15d
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x80]
mov r8, rsi
mov edx, r12d
mov rcx, r13
call fcn.1401c4c20
test al, al
jne 0x1401c594b
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jb 0x1401c58c2
sub eax, ebx
cmp eax, r15d
ja 0x1401c58c2
mov r8, rdi
mov rdx, qword [r14 + 8]
mov ecx, ebp
call fcn.1400d0860
cmp byte [r14 + 0x2c], 0
jne 0x1401c5854
lea r9, [0x1401c38b0]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1402570d4
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.140257488
nop
lea rdx, str.DNS_query_failed.
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0xb8]
call fcn.1400bc530
nop
lea rcx, [rsp + 0xa0]
call fcn.1400d0d40
movzx eax, bl
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1402577a0
mov rbx, qword [rsp + 0x138]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r9, [0x1401c38b0]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1402570d4
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.140257488
nop
mov bl, 1
jmp 0x1401c5902