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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8d2f
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x692c00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20]
mov esi, dword [ebp + 0x24]
xorps xmm0, xmm0
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
push str.doDnsQuery
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x48], edi
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
call fcn.004481f0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x3c]
movq qword [ebp - 0x2c], xmm0
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x24], 0
call fcn.00434d00
mov byte [ebp - 4], 1
call fcn.00487020
test eax, eax
jg 0x52c8ff
push esi
call fcn.0052e580
add esp, 4
test al, al
jne 0x52c8ff
push str.Check_cache_nameservers_failed.
jmp 0x52cd0a
push esi
mov ecx, edi
call fcn.0046ee20
test al, al
je 0x52c915
push str.DNS_query_aborted_by_application.
jmp 0x52cd0a
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x3d], 0
cmp eax, 2
je 0x52c926
cmp eax, 1
jne 0x52c92a
mov byte [ebp - 0x3d], 1
call fcn.004875c0
test al, al
jne 0x52c93d
push str.DNS_cache_is_either_finalized_or_invalid.
jmp 0x52cd0a
call fcn.00487020
mov edi, eax
test edi, edi
jne 0x52c984
push 1
push str.8.8.8.8
call fcn.00487370
push 1
push str.1.1.1.1
call fcn.00487370
add esp, 0x10
call fcn.00487020
mov edi, eax
test edi, edi
jne 0x52c984
mov eax, dword [esi]
mov ecx, esi
push str.No_DNS_nameservers_have_been_defined.
call dword [eax + 0x14]
call fcn.004874e0
jmp 0x52cd11
mov eax, 0x20
mov edx, 0x90
cmp edi, eax
cmovg edi, eax
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x50], edi
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005b3519
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x52c9e5
push 0x52b150
push 0x52b130
push dword [ebp - 0x50]
mov dword [eax], edi
lea edi, [eax + 4]
push 0x90
push edi
mov dword [ebp - 0x44], edi
call fcn.005b3c72
jmp 0x52c9ea
xor edi, edi
mov dword [ebp - 0x44], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x52ca08
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_allocate_array_for_nameserver_connections.
call dword [eax + 0x14]
call fcn.004874e0
jmp 0x52cd11
xor edi, edi
cmp byte [ebp - 0x3d], 0
mov dword [ebp - 0x68], edi
je 0x52ca9e
mov edi, dword [ebp - 0x50]
xor ecx, ecx
mov eax, edi
mov dword [ebp - 0x54], edi
mov edx, 0x90
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005b3519
add esp, 4
mov dword [ebp - 0x4c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x52ca71
push 0x52b150
push 0x52b130
push dword [ebp - 0x50]
mov dword [eax], edi
lea edi, [eax + 4]
push 0x90
push edi
mov dword [ebp - 0x68], edi
call fcn.005b3c72
jmp 0x52ca76
xor edi, edi
mov dword [ebp - 0x68], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x52ca9e
mov ecx, dword [ebp - 0x44]
push 3
call fcn.0052b160
mov eax, dword [esi]
mov ecx, esi
push str.Failed_to_allocate_array_for_nameserver_TLS_connections.
call dword [eax + 0x14]
call fcn.004874e0
jmp 0x52cd11
xor ecx, ecx
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x60], ecx
cmp dword [ebp - 0x50], ecx
jle 0x52cb67
lea eax, [edi + 8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x44]
mov edi, dword [ebp - 0x54]
add eax, 8
mov dword [ebp - 0x64], eax
nop dword [eax]
push esi
lea edx, [ebp - 0x11]
mov dword [eax - 8], 0xffffffff
mov dword [eax - 4], 0
mov dword [eax], 0
mov byte [eax + 0x10], 0
add eax, 0x14
push edx
push eax
push ecx
mov byte [ebp - 0x11], 0
call fcn.00486fa0
add esp, 0x10
test al, al
je 0x52cb0c
inc dword [ebp - 0x58]
add dword [ebp - 0x64], 0x90
cmp byte [ebp - 0x3d], 0
je 0x52cb51
cmp byte [ebp - 0x11], 0
je 0x52cb51
push esi
lea eax, [ebp - 0x11]
mov dword [edi - 8], 0xffffffff
push eax
lea eax, [edi + 0x14]
mov dword [edi - 4], 0
push eax
push dword [ebp - 0x60]
mov dword [edi], 0
mov byte [edi + 0x10], 0
call fcn.00486fa0
add esp, 0x10
test al, al
je 0x52cb51
inc dword [ebp - 0x4c]
add edi, 0x90
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x64]
inc ecx
mov dword [ebp - 0x60], ecx
cmp ecx, dword [ebp - 0x50]
jl 0x52cad0
mov edi, dword [ebp - 0x68]
call fcn.004874e0
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x52cba9
cmp dword [ebp + 0xc], 2
jne 0x52cc44
mov eax, dword [esi]
mov ecx, esi
push str.Your_application_requires_DoT__DNS_over_TLS___but_none_of_the_nameservers_support_DoT
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x44]
push 3
call fcn.0052b160
test edi, edi
je 0x52cd11
push 3
mov ecx, edi
call fcn.0052b160
jmp 0x52cd11
jle 0x52cc44
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x52cbc0
cmp ecx, 1
jne 0x52cc44
push esi
push dword [ebp - 0x48]
push dword [ebp + 0x1c]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push 1
push edi
push eax
push dword [ebp - 0x5c]
call fcn.0052c100
add esp, 0x28
test al, al
je 0x52cc03
mov ecx, dword [ebp - 0x44]
push 3
call fcn.0052b160
test edi, edi
je 0x52cbfa
push 3
mov ecx, edi
call fcn.0052b160
mov byte [ebp - 0x3d], 1
jmp 0x52cd15
cmp dword [ebp + 0xc], 2
jne 0x52cc44
mov eax, dword [esi]
mov ecx, esi
push str.Your_application_requires_DoT__DNS_over_TLS___but_none_of_the_TLS_nameservers_were_successful_for_this_DNS_lookup.
call dword [eax + 0x14]
push dword [ebp - 0x5c]
mov eax, dword [esi]
mov ecx, esi
push str.domain
call dword [eax + 0x2c]
mov ecx, dword [ebp - 0x44]
push 3
call fcn.0052b160
test edi, edi
je 0x52cd11
push 3
mov ecx, edi
call fcn.0052b160
jmp 0x52cd11
test edi, edi
je 0x52cc51
push 3
mov ecx, edi
call fcn.0052b160
mov edi, dword [ebp - 0x44]
push esi
push dword [ebp - 0x48]
push dword [ebp + 0x1c]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call fcn.0052c480
add esp, 0x24
test al, al
jne 0x52cbf1
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 0x54], eax
mov eax, 0xcccccccd
mul dword [ebp + 0x1c]
mov eax, dword [ebp - 0x48]
shr edx, 2
mov dword [ebp - 0x4c], edx
cmp byte [eax + 0x18], 0
je 0x52ccfc
nop word [eax + eax]
mov ecx, eax
call fcn.0046ecc0
push esi
push dword [ebp - 0x48]
push dword [ebp + 0x1c]
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x74]
push edi
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
call fcn.0052c480
add esp, 0x24
test al, al
jne 0x52cbf1
call sub.KERNEL32.DLL_GetTickCount
mov ecx, dword [ebp - 0x54]
cmp eax, ecx
jb 0x52ccfc
sub eax, ecx
cmp eax, dword [ebp + 0x1c]
ja 0x52ccfc
mov eax, dword [ebp - 0x48]
push esi
push dword [eax + 4]
push dword [ebp - 0x4c]
call fcn.00447e30
mov eax, dword [ebp - 0x48]
add esp, 0xc
cmp byte [eax + 0x18], 0
jne 0x52cca0
push 3
mov ecx, edi
call fcn.0052b160
push str.DNS_query_failed.
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov byte [ebp - 0x3d], 0
lea ecx, [ebp - 0x3c]
call fcn.00434f20
lea ecx, [ebp - 0x20]
call fcn.004482f0
mov al, byte [ebp - 0x3d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b34c8
mov esp, ebp
pop ebp
ret