Function at 0x542530
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b14d6
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x676664]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x20]
mov edi, dword [ebp + 0x18]
mov dword [ebp - 0x240], eax
mov eax, dword [ebp + 0x24]
push str.domainLookupIpv4_win32
mov dword [ebp - 0x244], ecx
push esi
lea ecx, [ebp - 0x258]
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x238], eax
call fcn.0044ec60
mov ecx, dword [ebp - 0x238]
mov byte [ebx], 0
mov byte [ecx], 0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00443a10
cmp byte [0x6736f0], 0
je 0x542601
lea ecx, [ebp - 0x230]
call fcn.00462990
lea ebx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.00541780
mov byte [ebp - 4], 0
mov ecx, ebx
test al, al
jne 0x5425fc
call fcn.004629b0
jmp 0x542a6c
call fcn.004629b0
push 0x11c
mov byte [ebp - 4], 2
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x54262b
mov ecx, eax
call fcn.00591c00
mov ebx, eax
jmp 0x54262d
xor ebx, ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x542a6c
mov ecx, ebx
call fcn.004026e0
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [esi]
push 1
mov dword [ebp - 0x23c], eax
mov eax, dword [edx + 0x24]
push str.resolveHostname1
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x24c]
push ecx
mov ecx, dword [ebp - 0x244]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x240]
push edi
push ecx
push esi
push edx
push eax
mov ecx, ebx
call fcn.00592120
mov edx, dword [esi]
mov byte [ebp - 0x231], al
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, ebx
call fcn.004029e0
cmp byte [ebp - 0x231], 0
je 0x5426bc
mov ecx, edi
call fcn.00442580
test eax, eax
jne 0x542900
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [ebp - 0x23c]
cmp eax, edx
jb 0x5426e1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5426e1
sub eax, edx
cmp ecx, eax
jbe 0x54283d
sub ecx, eax
mov dword [ebp + 0xc], ecx
lea ecx, [ebp - 0xfc]
call fcn.00444390
mov ebx, dword [ebp - 0x240]
push ebx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 5
call fcn.00445f20
lea ecx, [ebp - 0x88]
call fcn.00444390
push ebx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00445f20
lea ecx, [ebp - 0x88]
call fcn.00442720
push 0x20
lea ecx, [ebp - 0x88]
call fcn.00446220
push 9
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0xd
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0xa
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x27
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x22
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x3c
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x3e
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x3a
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x2f
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x40
lea ecx, [ebp - 0x88]
call fcn.00446220
push 0x3f
lea ecx, [ebp - 0x88]
call fcn.00446220
lea ecx, [ebp - 0x88]
call fcn.00442580
lea ecx, [ebp - 0x88]
test eax, eax
je 0x542a54
call fcn.00445ba0
lea ecx, [ebp - 0x88]
call fcn.00442580
lea ecx, [ebp - 0xfc]
mov ebx, eax
call fcn.00442580
cmp ebx, eax
je 0x542960
call sub.KERNEL32.dll_GetTickCount
push 0x11c
mov dword [ebp - 0x23c], eax
mov byte [ebp - 4], 7
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x542859
mov ecx, eax
call fcn.00591c00
mov ebx, eax
jmp 0x54285b
mov ecx, dword [ebp - 0x238]
mov byte [ecx], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.DNS_timed_out.
mov ecx, esi
call eax
jmp 0x542a6c
xor ebx, ebx
mov dword [ebp - 4], 6
test ebx, ebx
je 0x54292c
mov ecx, ebx
call fcn.004026e0
mov ecx, edi
call fcn.00443a10
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.resolveHostname2
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x24c]
push ecx
mov ecx, dword [ebp - 0x244]
push edx
mov edx, dword [ebp + 0xc]
push eax
push edi
push ecx
push esi
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, ebx
call fcn.00592120
mov edx, dword [esi]
mov byte [ebp - 0x231], al
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, ebx
call fcn.004029e0
cmp byte [ebp - 0x231], 0
je 0x54293f
mov ecx, edi
call fcn.00442580
test eax, eax
je 0x54293f
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.00444450
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.00444450
lea ecx, [ebp - 0x258]
mov dword [ebp - 4], 0xffffffff
call fcn.0044ecf0
mov al, 1
jmp 0x542a80
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Memory_allocation_error
mov ecx, esi
call eax
jmp 0x542a4e
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [ebp - 0x23c]
cmp eax, edx
jb 0x542960
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x542960
sub eax, edx
cmp ecx, eax
jbe 0x5429b0
sub ecx, eax
mov dword [ebp + 0xc], ecx
push 0x2e
lea ecx, [ebp - 0x88]
call fcn.004466f0
cmp eax, 1
jne 0x542a4e
push str.www.
lea ecx, [ebp - 0x88]
call fcn.00446fe0
push 0x11c
mov byte [ebp - 4], 0xa
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x240], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x5429cc
mov ecx, eax
call fcn.00591c00
mov ebx, eax
jmp 0x5429ce
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.DNS_timed_out.
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x238]
mov byte [ecx], 1
jmp 0x542a4e
xor ebx, ebx
mov dword [ebp - 4], 6
test ebx, ebx
je 0x54292c
mov ecx, ebx
call fcn.004026e0
mov ecx, edi
call fcn.00443a10
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.resolveHostname3
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x248]
mov eax, dword [ebp - 0x24c]
push ecx
mov ecx, dword [ebp - 0x244]
push edx
mov edx, dword [ebp + 0xc]
push eax
push edi
push ecx
push esi
push edx
lea eax, [ebp - 0x88]
push eax
mov ecx, ebx
call fcn.00592120
mov edx, dword [esi]
mov byte [ebp - 0x231], al
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, ebx
call fcn.004029e0
cmp byte [ebp - 0x231], 0
jne 0x5428e2
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.00444450
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.00444450
lea ecx, [ebp - 0x258]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0059af98
mov esp, ebp
pop ebp
ret