Function at 0x566cd0
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x74c428
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x899944]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
push str.resolveHostname6
push eax
lea ecx, [ebp - 0x18]
call fcn.00474ef0
mov ecx, dword [ebp + 0x2c]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x30]
mov byte [ecx], 0
push eax
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 0
mov byte [edx], 0
call fcn.0040c200
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x1c]
mov dword [esi + 0xa4], ecx
mov ecx, dword [ebp + 0x28]
push 0x767450
mov dword [esi + 0xb4], ecx
push str.http:__
lea ecx, [esi + 0x30]
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xac], edx
mov dword [esi + 0xb8], eax
call fcn.0040b0b0
push 0x767450
push str.https:__
lea ecx, [esi + 0x30]
call fcn.0040b0b0
push 0x2f
lea ecx, [esi + 0x30]
call fcn.0040a2a0
push 0x3a
lea ecx, [esi + 0x30]
call fcn.0040a2a0
lea ecx, [esi + 0x30]
call fcn.00409f40
lea ecx, [esi + 0x30]
call fcn.00409da0
test eax, eax
jne 0x566de9
mov esi, dword [ebp + 0x14]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Invalid_hostname_for_resolving_hostname_to_IP_address.
mov ecx, esi
call eax
mov ecx, dword [ebp + 8]
push ecx
push str.hostname
mov ecx, esi
call fcn.00474890
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
lea ecx, [esi + 0x30]
call fcn.00409d90
mov ecx, dword [ebp + 0x18]
mov edi, eax
test ecx, ecx
je 0x566e11
push edi
push str.HostnameResolve
call fcn.00487c30
mov eax, dword [ebp + 0x18]
cmp dword [eax + 0x88], 0
jne 0x566e6b
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x28]
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x24]
push 0
mov dword [ebp - 0x2c], eax
lea eax, [esi + 0xbc]
push eax
mov dword [ebp - 0x38], edx
mov edx, dword [ebp + 0x14]
push edx
mov dword [eax], 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
mov dword [ebp - 0x34], ebx
call fcn.00514c50
add esp, 0x18
mov bl, al
jmp 0x566f16
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 0xb4], ecx
mov ecx, esi
mov byte [esi + 0x28], 1
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xac], edx
mov dword [esi + 0xb8], eax
mov dword [esi + 0xbc], 0
mov byte [esi + 0xa8], 0
call fcn.00448fd0
call sub.KERNEL32.dll_GetTickCount
lea edx, [ebp + 0x24]
push edx
push 0
push esi
push 0x566c60
push 0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x566ed7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
mov ecx, dword [ebp + 0x14]
setne al
test al, al
jne 0x566ef2
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push str.Failed_to_start_background_thread_for_resolving_domain_name.
call edx
jmp 0x566dc4
cmp byte [ecx + 0xad], 0
je 0x566f07
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push str.Resolving_domain_name__IPV4_IPV6_...
call edx
xor eax, eax
xor ebx, ebx
cmp byte [esi + 0x28], al
jne 0x566f43
mov bl, byte [esi + 0xa8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x2c
mov eax, dword [ebp + 0x20]
inc eax
mov dword [ebp + 0x20], eax
cmp eax, 0xc8
jle 0x566f52
push 0xa
jmp 0x566f54
push 2
call fcn.004213c0
mov ecx, dword [ebp + 0x18]
inc ebx
add esp, 4
cmp ebx, dword [ecx + 0x88]
jb 0x566f8c
mov eax, dword [ebp + 0x14]
push eax
xor ebx, ebx
call fcn.00487de0
test al, al
jne 0x566f97
cmp dword [ebp + 0x10], ebx
je 0x566f8c
call sub.KERNEL32.dll_GetTickCount
cmp eax, edi
jbe 0x566f8c
sub eax, edi
cmp eax, dword [ebp + 0x10]
ja 0x566fb1
cmp byte [esi + 0x28], 0
jne 0x566f40
jmp 0x566f10
mov ecx, dword [ebp + 0x2c]
mov byte [ecx], 1
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.DNS_lookup_aborted_by_application_callback
call eax
jmp 0x566dc4
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Timeout_in_resolving_domain_name.
call eax
mov ecx, dword [ebp + 0x30]
mov byte [ecx], 1
jmp 0x566dc4