Function at 0x14018a6c0
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 [0x140353c70]
xor rax, rsp
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0x80], r9
mov qword [rsp + 0x88], r8
mov ebx, edx
mov dword [rsp + 0x60], edx
mov qword [rsp + 0x68], rcx
mov rax, qword [rsp + 0x150]
mov qword [rsp + 0x78], rax
mov r13, qword [rsp + 0x160]
mov qword [rsp + 0x90], r13
mov rsi, 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, rsi
lea rcx, [rsp + 0xa0]
call fcn.14004ce70
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.14003e200
nop
call fcn.14010e8a0
test eax, eax
jg 0x14018a7a0
mov rcx, rsi
call fcn.14018cef0
test al, al
jne 0x14018a7a0
lea rdx, str.Check_cache_nameservers_failed.
jmp 0x14018ae0c
cmp byte [0x1403598f8], 0
je 0x14018a7b1
mov rcx, rsi
call fcn.14010ea00
mov rdx, rsi
mov rcx, r13
call fcn.1401a2300
test al, al
je 0x14018a7cc
lea rdx, str.DNS_query_aborted_by_application.
jmp 0x14018ae0c
xor cl, cl
lea eax, [rbx - 1]
movzx r15d, cl
mov ecx, 1
cmp eax, ecx
cmovbe r15d, ecx
mov dword [rsp + 0x70], r15d
call fcn.14010eff0
test al, al
jne 0x14018a7fa
lea rdx, str.DNS_cache_is_either_finalized_or_invalid.
jmp 0x14018ae0c
call fcn.14010e8a0
mov edi, eax
test eax, eax
jne 0x14018a855
lea rdx, str.HQ__r_V975F_u_5aeQp_B_FSK:4ZTF_Qi4YYjB_9K_FZK_7BQ_B_8
mov rcx, rsi
call fcn.14004e200
mov dl, 1
lea rcx, str.8.8.8.8
call fcn.14010ecb0
mov dl, 1
lea rcx, str.1.1.1.1
call fcn.14010ecb0
call fcn.14010e8a0
mov edi, eax
test eax, eax
jne 0x14018a855
mov rax, qword [rsi]
lea rdx, str.No_DNS_nameservers_have_been_defined.
mov rcx, rsi
call qword [rax + 0x28]
call fcn.14010ee50
jmp 0x14018ae15
mov eax, 0x20
cmp edi, eax
cmovg edi, eax
mov dword [rsp + 0x74], edi
movsxd rbx, edi
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.140247a64
mov qword [rsp + 0x58], rax
lea r12, [0x140188b80]
test rax, rax
je 0x14018a8c4
mov qword [rax], rbx
lea rbp, [rax + 8]
mov qword [rsp + 0x20], r12
lea r9, [0x140188b60]
mov r8, rbx
mov edx, 0xb8
mov rcx, rbp
call fcn.1402481b0
jmp 0x14018a8c6
xor ebp, ebp
test rbp, rbp
jne 0x14018a8e5
mov rax, qword [rsi]
lea rdx, str.Failed_to_allocate_array_for_nameserver_connections.
mov rcx, rsi
call qword [rax + 0x28]
call fcn.14010ee50
jmp 0x14018ae15
xor r14d, r14d
test r15b, r15b
je 0x14018a994
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.140247a64
mov qword [rsp + 0x58], rax
test rax, rax
je 0x14018a948
mov qword [rax], rbx
lea r14, [rax + 8]
mov qword [rsp + 0x20], r12
lea r9, [0x140188b60]
mov r8, rbx
mov edx, 0xb8
mov rcx, r14
call fcn.1402481b0
jmp 0x14018a94b
xor r14d, r14d
test r14, r14
jne 0x14018a994
mov r9, r12
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140247d04
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402483cc
nop
mov rax, qword [rsi]
lea rdx, str.Failed_to_allocate_array_for_nameserver_TLS_connections.
mov rcx, rsi
call qword [rax + 0x28]
call fcn.14010ee50
jmp 0x14018ae15
xor ecx, ecx
mov dword [rsp + 0x58], ecx
xor ebx, ebx
xor r12d, r12d
test edi, edi
jle 0x14018aa9d
lea r15, [r14 + 0x10]
lea rdx, [rbp + 0x10]
mov r13d, ecx
mov ebx, ecx
mov rdi, rdx
mov qword [rdx - 0x10], 0xffffffffffffffff
mov qword [rdx - 8], 0
mov dword [rdx], 0
mov byte [rdx + 0x10], 0
mov byte [rsp + 0x98], 0
movsxd rax, ecx
imul rdx, rax, 0xb8
add rdx, 0x28
add rdx, rbp
mov r9, rsi
lea r8, [rsp + 0x98]
mov ecx, r12d
call fcn.14010e7b0
lea ecx, [rbx + 1]
test al, al
cmove ecx, ebx
mov dword [rsp + 0x58], ecx
lea rdx, [rdi + 0xb8]
cmove rdx, rdi
mov qword [rsp + 0x50], rdx
cmp byte [rsp + 0x70], 0
je 0x14018aa7a
cmp byte [rsp + 0x98], 0
je 0x14018aa7a
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 rdx, rax, 0xb8
add rdx, 0x28
add rdx, r14
mov r9, rsi
lea r8, [rsp + 0x98]
mov ecx, r12d
call fcn.14010e7b0
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test al, al
je 0x14018aa7a
inc r13d
add r15, 0xb8
inc r12d
cmp r12d, dword [rsp + 0x74]
jl 0x14018a9b2
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x58], ecx
mov r13, qword [rsp + 0x90]
mov ebx, dword [rsp + 0x50]
call fcn.14010ee50
mov edi, dword [rsp + 0x158]
test ebx, ebx
jne 0x14018ab37
cmp dword [rsp + 0x60], 2
jne 0x14018ac9a
mov rax, qword [rsi]
lea rdx, str.Your_application_requires_DoT__DNS_over_TLS___but_none_of_the_nameservers_support_DoT
mov rcx, rsi
call qword [rax + 0x28]
nop
lea r9, [0x140188b80]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140247d04
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402483cc
nop
test r14, r14
je 0x14018ae15
lea r9, [0x140188b80]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140247d04
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402483cc
nop
jmp 0x14018ae15
jle 0x14018ac9a
mov r15d, dword [rsp + 0x60]
lea eax, [r15 - 1]
mov r12, qword [rsp + 0x68]
cmp eax, 1
ja 0x14018ac9f
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], r13
mov dword [rsp + 0x38], edi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x20], rax
mov r9b, 1
mov r8, r14
mov edx, ebx
mov rcx, r12
call fcn.140189de0
test al, al
je 0x14018ac02
lea r9, [0x140188b80]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140247d04
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402483cc
nop
test r14, r14
je 0x14018abfb
lea r9, [0x140188b80]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140247d04
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402483cc
nop
mov bl, 1
jmp 0x14018ae17
cmp r15d, 2
jne 0x14018ac9f
mov rax, qword [rsi]
lea rdx, str.Your_application_requires_DoT__DNS_over_TLS___but_none_of_the_TLS_nameservers_were_successful_for_this_DNS_lookup.
mov rcx, rsi
call qword [rax + 0x28]
mov rax, qword [rsi]
mov r8, r12
mov rdx, qword [str.domain]
mov rcx, rsi
call qword [rax + 0x58]
nop
lea r9, [0x140188b80]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140247d04
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402483cc
nop
test r14, r14
je 0x14018ae15
lea r9, [0x140188b80]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140247d04
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402483cc
nop
jmp 0x14018ae15
mov r12, qword [rsp + 0x68]
test r14, r14
je 0x14018acd2
lea r9, [0x140188b80]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140247d04
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402483cc
nop
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8, rbp
mov r14d, dword [rsp + 0x58]
mov edx, r14d
mov rcx, r12
call fcn.14018a260
test al, al
je 0x14018ad4b
lea r9, [0x140188b80]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140247d04
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402483cc
nop
mov bl, 1
jmp 0x14018ae17
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
mov eax, 0xcccccccd
mul edi
mov r15d, edx
shr r15d, 2
cmp byte [r13 + 0x2c], 0
je 0x14018add7
mov rcx, r13
call fcn.1401a2180
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], edi
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x88]
mov r8, rbp
mov edx, r14d
mov rcx, r12
call fcn.14018a260
test al, al
jne 0x14018ae60
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jb 0x14018add7
sub eax, ebx
cmp eax, edi
ja 0x14018add7
mov r8, rsi
mov rdx, qword [r13 + 8]
mov ecx, r15d
call fcn.14007c4e0
cmp byte [r13 + 0x2c], 0
jne 0x14018ad67
lea r9, [0x140188b80]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140247d04
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402483cc
nop
lea rdx, str.DNS_query_failed.
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0xb8]
call fcn.14003e3b0
nop
lea rcx, [rsp + 0xa0]
call fcn.14004d020
movzx eax, bl
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.1402474e0
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, [0x140188b80]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140247d04
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402483cc
nop
mov bl, 1
jmp 0x14018ae17