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

Disassembly:
mov eax, 0x5ae119
call fcn.00591b5c
sub esp, 0xa0
push esi
mov eax, dword [ebp + 0x2c]
and byte [eax], 0
mov eax, dword [ebp + 0x30]
and byte [eax], 0
mov ecx, dword [ebp + 0x24]
call fcn.004cd0cb
movzx eax, byte [0x671264]
test eax, eax
je 0x51538f
lea ecx, [ebp - 0x5c]
call fcn.004d9dc1
and dword [ebp - 4], 0
lea eax, [ebp - 0x5c]
push eax
call fcn.005148d2
pop ecx
movzx eax, al
test eax, eax
jne 0x515383
and byte [ebp - 0x79], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004d9e07
mov al, byte [ebp - 0x79]
jmp 0x51586a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004d9e07
push 0x50
call fcn.00565bb9
pop ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x84], 0
je 0x5153c0
mov ecx, dword [ebp - 0x84]
call fcn.0053bcde
mov dword [ebp - 0xa4], eax
jmp 0x5153c7
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x80], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x14], eax
push 0x23e6
mov ecx, dword [ebp - 0x14]
call fcn.0053be91
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
call fcn.0053ba5c
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
call dword [eax]
cmp dword [ebp + 0x10], 0
je 0x51549c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
je 0x51549c
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp eax, dword [ebp - 0x60]
jbe 0x515449
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x64]
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x20], 0
je 0x515491
push 0x70
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
call fcn.004f20f4
mov ecx, dword [ebp + 0x20]
call fcn.004f1f9a
movzx eax, al
test eax, eax
je 0x515491
mov eax, dword [ebp + 0x2c]
mov byte [eax], 1
push str.DNS_lookup_aborted_by_application_callback..
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x10]
xor al, al
jmp 0x51586a
mov eax, dword [ebp - 0x60]
sub eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
jmp 0x51542f
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x5154b7
mov ecx, dword [ebp + 0x24]
call fcn.004ccbf8
test eax, eax
je 0x5154b7
mov al, 1
jmp 0x51586a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x10]
jb 0x515507
cmp dword [ebp + 0x14], 0
je 0x515507
mov eax, dword [ebp - 0x58]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x68]
jbe 0x5154ea
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0x68]
mov dword [ebp + 0x14], eax
jmp 0x515507
mov eax, dword [ebp + 0x30]
mov byte [eax], 1
push str.DNS_timed_out.
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x10]
xor al, al
jmp 0x51586a
push dword [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.004cdd83
mov dword [ebp - 4], 2
push dword [ebp + 8]
lea ecx, [ebp - 0x54]
call fcn.004cdd83
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x54]
call fcn.004ccd7e
push 0x20
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 9
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0xd
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0xa
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x27
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x22
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x3c
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x3e
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x3a
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x2f
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x40
lea ecx, [ebp - 0x54]
call fcn.004cf958
push 0x3f
lea ecx, [ebp - 0x54]
call fcn.004cf958
lea ecx, [ebp - 0x54]
call fcn.004ccbf8
test eax, eax
jne 0x5155de
and byte [ebp - 0x85], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004ce1b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ce1b7
mov al, byte [ebp - 0x85]
jmp 0x51586a
lea ecx, [ebp - 0x54]
call fcn.004cf636
lea ecx, [ebp - 0x54]
call fcn.004ccbf8
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004ccbf8
cmp esi, eax
je 0x515756
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x10], eax
push 0x50
call fcn.00565bb9
pop ecx
mov dword [ebp - 0x90], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x90], 0
je 0x515637
mov ecx, dword [ebp - 0x90]
call fcn.0053bcde
mov dword [ebp - 0xa8], eax
jmp 0x51563e
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x6c], eax
push 0x23e7
mov ecx, dword [ebp - 0x6c]
call fcn.0053be91
mov ecx, dword [ebp + 0x24]
call fcn.004cd0cb
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x54]
call fcn.0055420c
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.0053ba5c
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x6c]
call dword [eax]
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x5156e3
mov ecx, dword [ebp + 0x24]
call fcn.004ccbf8
test eax, eax
je 0x5156e3
mov byte [ebp - 0x91], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004ce1b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ce1b7
mov al, byte [ebp - 0x91]
jmp 0x51586a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
cmp eax, dword [ebp - 0x10]
jb 0x515756
cmp dword [ebp + 0x14], 0
je 0x515756
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [ebp - 0x74]
jbe 0x515716
mov eax, dword [ebp + 0x14]
sub eax, dword [ebp - 0x74]
mov dword [ebp + 0x14], eax
jmp 0x515756
push str.DNS_timed_out.
mov eax, dword [ebp + 0x1c]
mov eax, dword [eax]
mov ecx, dword [ebp + 0x1c]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x30]
mov byte [eax], 1
and byte [ebp - 0x92], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004ce1b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ce1b7
mov al, byte [ebp - 0x92]
jmp 0x51586a
push 0x2e
lea ecx, [ebp - 0x54]
call fcn.004d006e
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x515845
push str.www.
lea ecx, [ebp - 0x54]
call fcn.004cd255
push 0x50
call fcn.00565bb9
pop ecx
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x9c], 0
je 0x5157a8
mov ecx, dword [ebp - 0x9c]
call fcn.0053bcde
mov dword [ebp - 0xac], eax
jmp 0x5157af
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x78], eax
push 0x23e8
mov ecx, dword [ebp - 0x78]
call fcn.0053be91
mov ecx, dword [ebp + 0x24]
call fcn.004cd0cb
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
lea ecx, [ebp - 0x54]
call fcn.0055420c
push eax
mov ecx, dword [ebp - 0x78]
call fcn.0053ba5c
mov byte [ebp - 0x35], al
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x78]
call dword [eax]
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x515845
mov byte [ebp - 0x9d], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004ce1b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ce1b7
mov al, byte [ebp - 0x9d]
jmp 0x51586a
and byte [ebp - 0x9e], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
call fcn.004ce1b7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.004ce1b7
mov al, byte [ebp - 0x9e]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
leave
ret