Function at 0x1402be970
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 [0x14040f040]
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.14015bdd0
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.140146c30
nop
call fcn.1401df480
test eax, eax
jg 0x1402bea50
mov rcx, rsi
call fcn.1402c11a0
test al, al
jne 0x1402bea50
lea rdx, str.Check_cache_nameservers_failed.
jmp 0x1402bf0bc
cmp byte [0x14054b638], 0
je 0x1402bea61
mov rcx, rsi
call fcn.1401df5e0
mov rdx, rsi
mov rcx, r13
call fcn.140185fe0
test al, al
je 0x1402bea7c
lea rdx, str.DNS_query_aborted_by_application.
jmp 0x1402bf0bc
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.1401dfbd0
test al, al
jne 0x1402beaaa
lea rdx, str.DNS_cache_is_either_finalized_or_invalid.
jmp 0x1402bf0bc
call fcn.1401df480
mov edi, eax
test eax, eax
jne 0x1402beb05
lea rdx, str.HQ__r_V975F_u_5aeQp_B_FSK:4ZTF_Qi4YYjB_9K_FZK_7BQ_B_8
mov rcx, rsi
call fcn.14015d240
mov dl, 1
lea rcx, str.8.8.8.8
call fcn.1401df890
mov dl, 1
lea rcx, str.1.1.1.1
call fcn.1401df890
call fcn.1401df480
mov edi, eax
test eax, eax
jne 0x1402beb05
mov rax, qword [rsi]
lea rdx, str.No_DNS_nameservers_have_been_defined.
mov rcx, rsi
call qword [rax + 0x28]
call fcn.1401dfa30
jmp 0x1402bf0c5
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.140108c60
mov qword [rsp + 0x58], rax
lea r12, [0x1402bcdf0]
test rax, rax
je 0x1402beb74
mov qword [rax], rbx
lea rbp, [rax + 8]
mov qword [rsp + 0x20], r12
lea r9, [0x1402bcdd0]
mov r8, rbx
mov edx, 0xb8
mov rcx, rbp
call fcn.1402eafa8
jmp 0x1402beb76
xor ebp, ebp
test rbp, rbp
jne 0x1402beb95
mov rax, qword [rsi]
lea rdx, str.Failed_to_allocate_array_for_nameserver_connections.
mov rcx, rsi
call qword [rax + 0x28]
call fcn.1401dfa30
jmp 0x1402bf0c5
xor r14d, r14d
test r15b, r15b
je 0x1402bec44
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.140108c60
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1402bebf8
mov qword [rax], rbx
lea r14, [rax + 8]
mov qword [rsp + 0x20], r12
lea r9, [0x1402bcdd0]
mov r8, rbx
mov edx, 0xb8
mov rcx, r14
call fcn.1402eafa8
jmp 0x1402bebfb
xor r14d, r14d
test r14, r14
jne 0x1402bec44
mov r9, r12
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140108b90
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402eb018
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.1401dfa30
jmp 0x1402bf0c5
xor ecx, ecx
mov dword [rsp + 0x58], ecx
xor ebx, ebx
xor r12d, r12d
test edi, edi
jle 0x1402bed4d
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.1401df390
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 0x1402bed2a
cmp byte [rsp + 0x98], 0
je 0x1402bed2a
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.1401df390
mov ecx, dword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test al, al
je 0x1402bed2a
inc r13d
add r15, 0xb8
inc r12d
cmp r12d, dword [rsp + 0x74]
jl 0x1402bec62
mov dword [rsp + 0x50], r13d
mov dword [rsp + 0x58], ecx
mov r13, qword [rsp + 0x90]
mov ebx, dword [rsp + 0x50]
call fcn.1401dfa30
mov edi, dword [rsp + 0x158]
test ebx, ebx
jne 0x1402bede7
cmp dword [rsp + 0x60], 2
jne 0x1402bef4a
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, [0x1402bcdf0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140108b90
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402eb018
nop
test r14, r14
je 0x1402bf0c5
lea r9, [0x1402bcdf0]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140108b90
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402eb018
nop
jmp 0x1402bf0c5
jle 0x1402bef4a
mov r15d, dword [rsp + 0x60]
lea eax, [r15 - 1]
mov r12, qword [rsp + 0x68]
cmp eax, 1
ja 0x1402bef4f
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.1402be090
test al, al
je 0x1402beeb2
lea r9, [0x1402bcdf0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140108b90
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402eb018
nop
test r14, r14
je 0x1402beeab
lea r9, [0x1402bcdf0]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140108b90
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402eb018
nop
mov bl, 1
jmp 0x1402bf0c7
cmp r15d, 2
jne 0x1402bef4f
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, [0x1402bcdf0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140108b90
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402eb018
nop
test r14, r14
je 0x1402bf0c5
lea r9, [0x1402bcdf0]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140108b90
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402eb018
nop
jmp 0x1402bf0c5
mov r12, qword [rsp + 0x68]
test r14, r14
je 0x1402bef82
lea r9, [0x1402bcdf0]
mov r8, qword [r14 - 8]
mov edx, 0xb8
mov rcx, r14
call fcn.140108b90
imul rdx, qword [r14 - 8], 0xb8
add rdx, 8
lea rcx, [r14 - 8]
call fcn.1402eb018
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.1402be510
test al, al
je 0x1402beffb
lea r9, [0x1402bcdf0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140108b90
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402eb018
nop
mov bl, 1
jmp 0x1402bf0c7
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 0x1402bf087
mov rcx, r13
call fcn.140185e60
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.1402be510
test al, al
jne 0x1402bf110
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jb 0x1402bf087
sub eax, ebx
cmp eax, edi
ja 0x1402bf087
mov r8, rsi
mov rdx, qword [r13 + 8]
mov ecx, r15d
call fcn.14015b9e0
cmp byte [r13 + 0x2c], 0
jne 0x1402bf017
lea r9, [0x1402bcdf0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140108b90
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402eb018
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.140146de0
nop
lea rcx, [rsp + 0xa0]
call fcn.14015bf80
movzx eax, bl
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.140109210
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, [0x1402bcdf0]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.140108b90
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1402eb018
nop
mov bl, 1
jmp 0x1402bf0c7