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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c29e8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x68683c]
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.0045a1b0
cmp byte [edi + 0x125], 0
mov dword [ebp - 4], 0
je 0x59db5b
mov eax, dword [ebp + 0x10]
push eax
push str.maxTimeMs
mov ecx, edi
call fcn.00459e80
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.00451670
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 0x6546aa
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.0044fd10
push 0
push 0x6546aa
push str.https:__
lea ecx, [esi + 0x30]
call fcn.0044fd10
push 0x2f
lea ecx, [esi + 0x30]
call fcn.0044ecc0
push 0x3a
lea ecx, [esi + 0x30]
call fcn.0044ecc0
lea ecx, [esi + 0x30]
call fcn.0044dc40
lea ecx, [esi + 0x30]
call fcn.0044daa0
test eax, eax
jne 0x59dc36
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.00459a60
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
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.0044da90
mov ecx, dword [ebp + 0x18]
mov edi, eax
test ecx, ecx
je 0x59dc5e
push edi
push str.HostnameResolve
call fcn.0046ec60
mov edx, dword [ebp + 0x18]
cmp dword [edx + 0x88], 0
jne 0x59dccf
mov ecx, dword [ebp + 0x14]
push str.ForceDnsBgThread
add ecx, 0x90
call fcn.00451980
test al, al
jne 0x59dccf
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.005500e0
add esp, 0x18
mov bl, al
jmp 0x59ddce
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.00408cd0
call sub.KERNEL32.dll_GetTickCount
lea ecx, [ebp + 0x28]
push ecx
push edi
push esi
push 0x59da90
push edi
push edi
mov dword [ebp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
je 0x59dd3a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
mov ecx, dword [ebp + 0x14]
setne al
test al, al
jne 0x59dd55
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push str.Failed_to_start_background_thread_for_resolving_domain_name.
call eax
jmp 0x59dc11
cmp byte [ecx + 0x125], 0
je 0x59dd6a
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 0x59ddc8
inc ebx
mov dword [ebp + 0x24], ebx
cmp ebx, 0xc8
jle 0x59dd81
push 0xa
jmp 0x59dd83
push 2
call fcn.0044cc90
mov ecx, dword [ebp + 0x18]
inc edi
add esp, 4
cmp edi, dword [ecx + 0x88]
jb 0x59ddc2
mov ebx, dword [ebp + 0x14]
push ebx
xor edi, edi
call fcn.0046ef60
test al, al
jne 0x59ddf3
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x59ddbf
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [ebp + 0x20]
cmp eax, ecx
jbe 0x59ddbf
sub eax, ecx
cmp eax, ebx
ja 0x59de0c
mov ebx, dword [ebp + 0x24]
cmp byte [esi + 0x28], 0
jne 0x59dd71
mov bl, byte [esi + 0xa8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.0045a240
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 0x59dc11
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 0x59dc11