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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7481e6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x899944]
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 - 0x1c4], eax
mov eax, dword [ebp + 0x24]
push str.domainLookupIpv4_win32
mov dword [ebp - 0x1c8], ecx
push esi
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x1e0], esi
mov dword [ebp - 0x1d0], edx
mov dword [ebp - 0x1cc], ebx
mov dword [ebp - 0x1bc], eax
call fcn.00474ef0
mov ecx, dword [ebp - 0x1bc]
mov byte [ebx], 0
mov byte [ecx], 0
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040a470
cmp byte [0x8967cc], 0
je 0x512c61
lea ecx, [ebp - 0x1b4]
call fcn.00420de0
lea ebx, [ebp - 0x1b4]
mov byte [ebp - 4], 1
call fcn.00511dc0
mov byte [ebp - 4], 0
mov ecx, ebx
test al, al
jne 0x512c5c
call fcn.00420e00
jmp 0x5130cc
call fcn.00420e00
push 0x11c
mov byte [ebp - 4], 2
call fcn.005c46fb
add esp, 4
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x512c8b
mov ecx, eax
call fcn.00566ae0
mov ebx, eax
jmp 0x512c8d
xor ebx, ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x5130cc
mov ecx, ebx
call fcn.00448fd0
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [esi]
push 1
mov dword [ebp - 0x1c0], eax
mov eax, dword [edx + 0x24]
push str.resolveHostname1
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1d0]
push ecx
mov ecx, dword [ebp - 0x1c8]
push edx
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x1c4]
push edi
push ecx
push esi
push edx
push eax
mov ecx, ebx
call fcn.00566fd0
mov edx, dword [esi]
mov byte [ebp - 0x1b5], al
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, ebx
call fcn.00449240
cmp byte [ebp - 0x1b5], 0
je 0x512d1c
mov ecx, edi
call fcn.00409da0
test eax, eax
jne 0x512f60
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [ebp - 0x1c0]
cmp eax, edx
jb 0x512d41
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x512d41
sub eax, edx
cmp ecx, eax
jbe 0x512e9d
sub ecx, eax
mov dword [ebp + 0xc], ecx
lea ecx, [ebp - 0xfc]
call fcn.0040ac30
mov ebx, dword [ebp - 0x1c4]
push ebx
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 5
call fcn.0040c010
lea ecx, [ebp - 0x88]
call fcn.0040ac30
push ebx
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.0040c010
lea ecx, [ebp - 0x88]
call fcn.00409f40
push 0x20
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 9
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0xd
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0xa
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x27
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x22
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x3c
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x3e
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x3a
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x2f
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x40
lea ecx, [ebp - 0x88]
call fcn.0040c260
push 0x3f
lea ecx, [ebp - 0x88]
call fcn.0040c260
lea ecx, [ebp - 0x88]
call fcn.00409da0
lea ecx, [ebp - 0x88]
test eax, eax
je 0x5130b4
call fcn.0040bd30
lea ecx, [ebp - 0x88]
call fcn.00409da0
lea ecx, [ebp - 0xfc]
mov ebx, eax
call fcn.00409da0
cmp ebx, eax
je 0x512fc0
call sub.KERNEL32.dll_GetTickCount
push 0x11c
mov dword [ebp - 0x1c0], eax
mov byte [ebp - 4], 7
call fcn.005c46fb
add esp, 4
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x512eb9
mov ecx, eax
call fcn.00566ae0
mov ebx, eax
jmp 0x512ebb
mov ecx, dword [ebp - 0x1bc]
mov byte [ecx], 1
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.DNS_timed_out.
mov ecx, esi
call eax
jmp 0x5130cc
xor ebx, ebx
mov dword [ebp - 4], 6
test ebx, ebx
je 0x512f8c
mov ecx, ebx
call fcn.00448fd0
mov ecx, edi
call fcn.0040a470
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.resolveHostname2
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1d0]
push ecx
mov ecx, dword [ebp - 0x1c8]
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.00566fd0
mov edx, dword [esi]
mov byte [ebp - 0x1b5], al
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, ebx
call fcn.00449240
cmp byte [ebp - 0x1b5], 0
je 0x512f9f
mov ecx, edi
call fcn.00409da0
test eax, eax
je 0x512f9f
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.0040acf0
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.0040acf0
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 4], 0xffffffff
call fcn.00474f80
mov al, 1
jmp 0x5130e0
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.Memory_allocation_error
mov ecx, esi
call eax
jmp 0x5130ae
call sub.KERNEL32.dll_GetTickCount
mov edx, dword [ebp - 0x1c0]
cmp eax, edx
jb 0x512fc0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x512fc0
sub eax, edx
cmp ecx, eax
jbe 0x513010
sub ecx, eax
mov dword [ebp + 0xc], ecx
push 0x2e
lea ecx, [ebp - 0x88]
call fcn.0040c770
cmp eax, 1
jne 0x5130ae
push str.www.
lea ecx, [ebp - 0x88]
call fcn.0040d420
push 0x11c
mov byte [ebp - 4], 0xa
call fcn.005c46fb
add esp, 4
mov dword [ebp - 0x1c4], eax
mov byte [ebp - 4], 0xb
test eax, eax
je 0x51302c
mov ecx, eax
call fcn.00566ae0
mov ebx, eax
jmp 0x51302e
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push str.DNS_timed_out.
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x1bc]
mov byte [ecx], 1
jmp 0x5130ae
xor ebx, ebx
mov dword [ebp - 4], 6
test ebx, ebx
je 0x512f8c
mov ecx, ebx
call fcn.00448fd0
mov ecx, edi
call fcn.0040a470
mov edx, dword [esi]
mov eax, dword [edx + 0x24]
push 1
push str.resolveHostname3
mov ecx, esi
call eax
mov ecx, dword [ebp - 0x1bc]
mov edx, dword [ebp - 0x1cc]
mov eax, dword [ebp - 0x1d0]
push ecx
mov ecx, dword [ebp - 0x1c8]
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.00566fd0
mov edx, dword [esi]
mov byte [ebp - 0x1b5], al
mov eax, dword [edx + 0x28]
mov ecx, esi
call eax
mov ecx, ebx
call fcn.00449240
cmp byte [ebp - 0x1b5], 0
jne 0x512f42
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 5
call fcn.0040acf0
lea ecx, [ebp - 0xfc]
mov byte [ebp - 4], 0
call fcn.0040acf0
lea ecx, [ebp - 0x1dc]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0070bb4c
mov esp, ebp
pop ebp
ret