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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6218
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x676664]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x14]
push str.resolveHostname6
push edi
lea ecx, [ebp - 0x18]
call fcn.0044ec60
cmp byte [edi + 0x125], 0
mov dword [ebp - 4], 0
je 0x591e4b
mov eax, dword [ebp + 0x10]
push eax
push str.maxTimeMs
mov ecx, edi
call fcn.0044e930
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 byte [edx], 0
call fcn.00446140
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 0
push 0x647180
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.004447e0
push 0
push 0x647180
push str.https:__
lea ecx, [esi + 0x30]
call fcn.004447e0
push 0x2f
lea ecx, [esi + 0x30]
call fcn.004437a0
push 0x3a
lea ecx, [esi + 0x30]
call fcn.004437a0
lea ecx, [esi + 0x30]
call fcn.00442720
lea ecx, [esi + 0x30]
call fcn.00442580
test eax, eax
jne 0x591f26
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.0044e520
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
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.00410b70
mov ecx, dword [ebp + 0x18]
mov edi, eax
test ecx, ecx
je 0x591f4e
push edi
push str.HostnameResolve
call fcn.00463730
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x88], 0
jne 0x591fbf
mov ecx, dword [ebp + 0x14]
push str.ForceDnsBgThread
add ecx, 0x90
call fcn.00446450
test al, al
jne 0x591fbf
mov ecx, dword [ebp + 0x24]
mov edx, 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 + 0x20]
push 0
mov dword [ebp - 0x38], eax
lea eax, [esi + 0xbc]
push eax
mov dword [eax], 0
mov eax, dword [ebp + 0x14]
push eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp + 0xc]
push ecx
push edx
push edi
mov dword [ebp - 0x34], ebx
call fcn.00544390
add esp, 0x18
mov bl, al
jmp 0x5920be
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x24]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x28]
mov dword [esi + 0xac], ecx
xor edi, edi
mov ecx, esi
mov byte [esi + 0x28], 1
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb8], edx
mov dword [esi + 0xb4], eax
mov dword [esi + 0xbc], edi
mov byte [esi + 0xa8], 0
call fcn.004026e0
call sub.KERNEL32.dll_GetTickCount
lea ecx, [ebp + 0x28]
push ecx
push edi
push esi
push 0x591d80
push edi
push edi
mov dword [ebp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
je 0x59202a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
mov ecx, dword [ebp + 0x14]
setne al
test al, al
jne 0x592045
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Failed_to_start_background_thread_for_resolving_domain_name.
call eax
jmp 0x591f01
cmp byte [ecx + 0x125], 0
je 0x59205a
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push str.Resolving_domain_name__IPV4_IPV6_...
call eax
xor ebx, ebx
cmp byte [esi + 0x28], bl
je 0x5920b8
inc ebx
mov dword [ebp + 0x24], ebx
cmp ebx, 0xc8
jle 0x592071
push 0xa
jmp 0x592073
push 2
call fcn.00441780
mov ecx, dword [ebp + 0x18]
inc edi
add esp, 4
cmp edi, dword [ecx + 0x88]
jb 0x5920b2
mov ebx, dword [ebp + 0x14]
push ebx
xor edi, edi
call fcn.00463a30
test al, al
jne 0x5920e3
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x5920af
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp + 0x20]
cmp eax, ecx
jbe 0x5920af
sub eax, ecx
cmp eax, ebx
ja 0x5920fc
mov ebx, dword [ebp + 0x24]
cmp byte [esi + 0x28], 0
jne 0x592061
mov bl, byte [esi + 0xa8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
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 ecx, dword [ebp + 0x2c]
mov byte [ecx], 1
mov edx, dword [ebx]
mov eax, dword [edx + 0x14]
push str.DNS_lookup_aborted_by_application_callback
mov ecx, ebx
call eax
jmp 0x591f01
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 0x591f01