Function at 0x180163500
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 [0x1802cd010]
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 r15, qword [rsp + 0x160]
mov qword [rsp + 0x88], r15
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.180029f30
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.18001b1b0
nop
call fcn.1800eca90
test eax, eax
jg 0x1801635dd
mov rcx, rdi
call fcn.180165b40
test al, al
jne 0x1801635dd
lea rdx, str.Check_cache_nameservers_failed.
jmp 0x180163c27
cmp byte [0x1802e4198], 0
je 0x1801635ee
mov rcx, rdi
call fcn.1800ecbf0
mov rdx, rdi
mov rcx, r15
call fcn.18017a830
test al, al
je 0x180163609
lea rdx, str.DNS_query_aborted_by_application.
jmp 0x180163c27
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.1800ed1e0
test al, al
jne 0x180163637
lea rdx, str.DNS_cache_is_either_finalized_or_invalid.
jmp 0x180163c27
call fcn.1800eca90
mov r14d, eax
test eax, eax
jne 0x180163694
lea rdx, str.HQ__r_V975F_u_5aeQp_B_FSK:4ZTF_Qi4YYjB_9K_FZK_7BQ_B_8
mov rcx, rdi
call fcn.18002b2c0
mov dl, 1
lea rcx, str.8.8.8.8
call fcn.1800ecea0
mov dl, 1
lea rcx, str.1.1.1.1
call fcn.1800ecea0
call fcn.1800eca90
mov r14d, eax
test eax, eax
jne 0x180163694
mov rax, qword [rdi]
lea rdx, str.No_DNS_nameservers_have_been_defined.
mov rcx, rdi
call qword [rax + 0x28]
call fcn.1800ed040
jmp 0x180163c30
mov eax, 0x20
cmp r14d, eax
cmovg r14d, eax
mov dword [rsp + 0x6c], r14d
movsxd rbx, r14d
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.180009c8c
mov qword [rsp + 0x90], rax
lea r13, [0x180161880]
test rax, rax
je 0x180163709
mov qword [rax], rbx
lea rsi, [rax + 8]
mov qword [rsp + 0x20], r13
lea r9, [0x180161860]
mov r8, rbx
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e78a0
jmp 0x18016370b
xor esi, esi
test rsi, rsi
jne 0x18016372a
mov rax, qword [rdi]
lea rdx, str.Failed_to_allocate_array_for_nameserver_connections.
mov rcx, rdi
call qword [rax + 0x28]
call fcn.1800ed040
jmp 0x180163c30
xor ebp, ebp
test r12b, r12b
je 0x1801637da
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.180009c8c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x18016378f
mov qword [rax], rbx
lea rbp, [rax + 8]
mov qword [rsp + 0x20], r13
lea r9, [0x180161860]
mov r8, rbx
mov edx, 0xb8
mov rcx, rbp
call fcn.1801e78a0
jmp 0x180163791
xor ebp, ebp
test rbp, rbp
jne 0x1801637da
mov r9, r13
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e7910
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.1801e79e0
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.1800ed040
jmp 0x180163c30
xor r12d, r12d
xor r13d, r13d
xor ebx, ebx
test r14d, r14d
jle 0x1801638c4
lea r14, [rbp + 0x10]
lea r12, [rsi + 0x10]
mov r15d, 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, r15d
imul rcx, rax, 0xb8
lea rdx, [rsi + 0x28]
add rdx, rcx
mov r9, rdi
lea r8, [rsp + 0x98]
mov ecx, ebx
call fcn.1800ec9a0
test al, al
je 0x18016384f
inc r15d
add r12, 0xb8
cmp byte [rsp + 0x68], 0
je 0x1801638a6
cmp byte [rsp + 0x98], 0
je 0x1801638a6
mov qword [r14 - 0x10], 0xffffffffffffffff
xor eax, eax
mov qword [r14 - 8], rax
mov dword [r14], eax
mov byte [r14 + 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.1800ec9a0
test al, al
je 0x1801638a6
inc r13d
add r14, 0xb8
inc ebx
cmp ebx, dword [rsp + 0x6c]
jl 0x1801637f6
mov dword [rsp + 0x50], r15d
mov r15, qword [rsp + 0x88]
mov r12d, dword [rsp + 0x50]
call fcn.1800ed040
mov r14d, dword [rsp + 0x158]
test r13d, r13d
jne 0x180163960
cmp dword [rsp + 0x58], 2
jne 0x180163abf
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, [0x180161880]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e7910
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.1801e79e0
nop
test rbp, rbp
je 0x180163c30
lea r9, [0x180161880]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1801e7910
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1801e79e0
nop
jmp 0x180163c30
jle 0x180163abf
mov ebx, dword [rsp + 0x58]
lea eax, [rbx - 1]
cmp eax, 1
ja 0x180163abf
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x38], r14d
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.180162ae0
test al, al
je 0x180163a28
lea r9, [0x180161880]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e7910
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.1801e79e0
nop
test rbp, rbp
je 0x180163a21
lea r9, [0x180161880]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1801e7910
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1801e79e0
nop
mov bl, 1
jmp 0x180163c32
cmp ebx, 2
jne 0x180163ac4
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
mov rdx, qword [str.domain]
mov rcx, rdi
call qword [rax + 0x58]
nop
lea r9, [0x180161880]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e7910
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.1801e79e0
nop
test rbp, rbp
je 0x180163c30
lea r9, [0x180161880]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1801e7910
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1801e79e0
nop
jmp 0x180163c30
mov r13, qword [rsp + 0x60]
test rbp, rbp
je 0x180163af7
lea r9, [0x180161880]
mov r8, qword [rbp - 8]
mov edx, 0xb8
mov rcx, rbp
call fcn.1801e7910
imul rdx, qword [rbp - 8], 0xb8
add rdx, 8
lea rcx, [rbp - 8]
call fcn.1801e79e0
nop
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r14d
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.1801630a0
test al, al
je 0x180163b69
lea r9, [0x180161880]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e7910
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.1801e79e0
nop
mov bl, 1
jmp 0x180163c32
call sub.KERNEL32.dll_GetTickCount
mov ebx, eax
mov eax, 0xcccccccd
mul r14d
mov ebp, edx
shr ebp, 2
cmp byte [r15 + 0x2c], 0
je 0x180163bf2
mov rcx, r15
call fcn.18017a6b0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r14d
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.1801630a0
test al, al
jne 0x180163c7b
call sub.KERNEL32.dll_GetTickCount
cmp eax, ebx
jb 0x180163bf2
sub eax, ebx
cmp eax, r14d
ja 0x180163bf2
mov r8, rdi
mov rdx, qword [r15 + 8]
mov ecx, ebp
call fcn.180058410
cmp byte [r15 + 0x2c], 0
jne 0x180163b84
lea r9, [0x180161880]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e7910
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.1801e79e0
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.18001b360
nop
lea rcx, [rsp + 0xa0]
call fcn.18002a0e0
movzx eax, bl
mov rcx, qword [rsp + 0xe8]
xor rcx, rsp
call fcn.180009610
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, [0x180161880]
mov r8, qword [rsi - 8]
mov edx, 0xb8
mov rcx, rsi
call fcn.1801e7910
imul rdx, qword [rsi - 8], 0xb8
add rdx, 8
lea rcx, [rsi - 8]
call fcn.1801e79e0
nop
mov bl, 1
jmp 0x180163c32