Function at 0x5f4660
Capabilities:
Check for time delay via gettickcount
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf4
mov eax, dword [0x703eb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0xd0], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ebp + 0x20]
mov byte [eax], 0
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xe8], esi
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xf0], edx
mov byte [edx], 0
call fcn.0053aff0
mov edx, dword [ebp - 0xd0]
push edx
lea ecx, [edi + 8]
mov dword [esi], 0
call fcn.0053cb20
push 0x676352
push str.http:__
lea ecx, [edi + 8]
call fcn.0053c1c0
push 0x676352
push str.https:__
lea ecx, [edi + 8]
call fcn.0053c1c0
push 0x2f
lea ecx, [edi + 8]
call fcn.0053ae80
push 0x3a
lea ecx, [edi + 8]
call fcn.0053ae80
lea ecx, [edi + 8]
call fcn.0053ad90
lea ecx, [edi + 8]
call fcn.0053acf0
test eax, eax
jne 0x5f4755
mov eax, dword [ebx]
mov edx, dword [eax + 0x10]
push str.Invalid_hostname_for_resolving_hostname_to_IP_address.
mov ecx, ebx
call edx
mov ecx, dword [ebp - 0xd0]
mov eax, dword [ebx]
mov edx, dword [eax + 0x28]
push ecx
push str.hostname
mov ecx, ebx
call edx
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
lea ecx, [edi + 8]
call fcn.00595640
mov esi, dword [ebp - 0xe4]
mov dword [ebp - 0xd8], eax
test esi, esi
je 0x5f4780
push eax
push str.HostnameResolve
mov ecx, esi
call fcn.0056d570
mov eax, dword [ebp - 0xd8]
cmp dword [ebp + 0x14], 0
je 0x5f4a07
test esi, esi
je 0x5f4a07
mov edx, dword [ebx]
push eax
mov eax, dword [edx + 0x28]
push str.dnsCacheLookup
mov ecx, ebx
call eax
mov ecx, dword [ebp - 0xd4]
mov edx, dword [ebp - 0xd8]
push ecx
push edx
call fcn.0061d590
add esp, 8
test al, al
je 0x5f487e
mov ecx, dword [ebp - 0xd4]
call fcn.0053acf0
test eax, eax
je 0x5f487e
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xdc]
push ecx
mov ecx, dword [ebp - 0xd4]
lea edx, [ebp - 0xd0]
push edx
lea eax, [ebp - 0xe4]
push eax
push 0x6ba70c
call fcn.00595640
push eax
call fcn.00629114
add esp, 0x18
cmp eax, 4
jne 0x5f487e
movzx ecx, byte [ebp - 0xe4]
mov eax, dword [ebp - 0xe8]
movzx edx, byte [ebp - 0xd0]
mov edi, dword [ebp - 0xd4]
mov byte [eax], cl
movzx ecx, byte [ebp - 0xdc]
mov byte [eax + 1], dl
movzx edx, byte [ebp - 0xe0]
mov byte [eax + 2], cl
mov ecx, edi
mov byte [eax + 3], dl
call fcn.00595640
push eax
push str.ResolvedToIp
mov ecx, esi
call fcn.0056d570
mov esi, dword [ebx]
mov ecx, edi
call fcn.00595640
push eax
mov eax, dword [esi + 0x28]
push str.dnsCacheHit
mov ecx, ebx
call eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov ecx, dword [ebp + 0x14]
mov dword [edi + 0x30], ecx
push 0x3e9
mov ecx, edi
mov dword [edi + 0x34], esi
mov byte [edi + 0x60], 1
call fcn.005f4c00
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0xf4]
push edx
push 0
push edi
push 0x5f4350
push 0
push 0
mov dword [ebp - 0xdc], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.Resolving_domain_name__IPV4_
mov ecx, ebx
call edx
xor eax, eax
mov dword [ebp - 0xd0], eax
cmp byte [edi + 0x60], al
jne 0x5f4966
mov ebx, dword [ebp - 0xd4]
lea edx, [edi + 0x38]
push edx
mov ecx, ebx
call fcn.0053cbf0
mov eax, dword [edi + 0x64]
mov ecx, dword [ebp - 0xe8]
mov dword [ecx], eax
mov ecx, ebx
call fcn.0053acf0
test eax, eax
je 0x5f4920
mov ecx, ebx
call fcn.00595640
mov edx, dword [ebp - 0xd8]
push eax
push edx
call fcn.0061d630
add esp, 8
mov ecx, ebx
call fcn.0053acf0
test eax, eax
je 0x5f493f
mov ecx, ebx
call fcn.00595640
push eax
push str.ResolvedToIp
mov ecx, esi
call fcn.0056d570
mov ecx, ebx
call fcn.0053acf0
pop edi
test eax, eax
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28
mov eax, dword [ebp - 0xe0]
inc eax
mov dword [ebp - 0xe0], eax
cmp eax, 0xc8
jle 0x5f4978
push 0xa
jmp 0x5f497a
push 2
call fcn.00550010
mov eax, dword [ebp - 0xd0]
mov ecx, dword [ebp + 0x14]
inc eax
add esp, 4
mov dword [ebp - 0xd0], eax
cmp eax, ecx
jb 0x5f49d2
push 0x74
push ecx
mov ecx, esi
mov dword [ebp - 0xd0], 0
call fcn.0056d6c0
mov ecx, esi
call fcn.0056d4d0
test al, al
jne 0x5f49dd
cmp dword [ebp + 0x10], 0
je 0x5f49d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 0xdc]
cmp eax, ecx
jbe 0x5f49d2
sub eax, ecx
cmp eax, dword [ebp + 0x10]
ja 0x5f49f9
cmp byte [edi + 0x60], 0
jne 0x5f4960
jmp 0x5f48e2
mov eax, dword [ebp - 0xec]
mov byte [eax], 1
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.DNS_lookup_aborted_by_application_callback
mov ecx, ebx
call eax
jmp 0x5f4740
mov ecx, dword [ebp - 0xf0]
mov byte [ecx], 1
jmp 0x5f4740
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push str.Resolving_domain_name__IPV4__via_gethostbyname
mov ecx, ebx
call edx
mov eax, dword [ebp - 0xd8]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x5f4740
mov ecx, dword [eax + 0xc]
cmp dword [ecx], 0
je 0x5f4a3e
mov ecx, dword [ecx]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xe8]
mov dword [ecx], edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
movzx ecx, byte [eax + 3]
movzx edx, byte [eax + 2]
push ecx
movzx ecx, byte [eax + 1]
push edx
movzx edx, byte [eax]
push ecx
push edx
lea eax, [ebp - 0xcc]
push 0x6ba70c
push eax
call fcn.00629264
mov edi, dword [ebp - 0xd4]
add esp, 0x18
lea ecx, [ebp - 0xcc]
push ecx
mov ecx, edi
call fcn.0053cb20
test esi, esi
je 0x5f4a96
mov ecx, edi
call fcn.00595640
push eax
push str.ResolvedToIp
mov ecx, esi
call fcn.0056d570
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00521602
mov esp, ebp
pop ebp
ret 0x28