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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41781f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x188
push ebx
push esi
push edi
call fcn.0040d480
cdq
mov ecx, 0x3b4bbda
idiv ecx
mov dword [esp + 0x10], edx
call fcn.0040d480
cdq
mov ecx, 0x1849
idiv ecx
xor ebx, ebx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
imul eax, ecx
mov dword [esp + 0x10], eax
cmp dword [ebp + 8], ebx
jne 0x409056
xor al, al
mov ecx, dword [esp + 0x194]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], ebx
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409074
call esi
mov dword [esp + 0x14], eax
push dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
call fcn.00408d5c
pop ecx
pop ecx
mov dword [esp + 0x19c], ebx
cmp dword [esp + 0x28], ebx
jne 0x4090a9
or dword [esp + 0x19c], 0xffffffff
push 1
xor edi, edi
lea esi, [esp + 0x1c]
call fcn.00403438
mov al, bl
jmp 0x409041
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], 0x184c
mov dword [esp + 0x10], ebx
jmp 0x4090c5
call esi
mov dword [esp + 0x14], eax
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, 2
jl 0x4090bb
cmp byte [ebp + 0xc], bl
je 0x409157
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x18]
call fcn.0040b337
dec esi
cmp eax, esi
jne 0x409134
mov eax, dword [esp + 0x28]
dec eax
push eax
push ebx
lea eax, [esp + 0x20]
push eax
lea esi, [esp + 0x40]
call fcn.0040630a
mov ebx, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x19c], 1
call fcn.004033e8
push 1
xor edi, edi
mov byte [esp + 0x1a0], 0
call fcn.00403438
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x18]
call fcn.0040b337
dec esi
xor ebx, ebx
jmp 0x4090e5
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409157
push str.windows6221XP
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x409157
mov dword [esp + 0x10], ebx
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
add eax, 0x184e
je 0x40916a
inc dword [esp + 0x10]
cmp dword [esp + 0x2c], 0x10
mov eax, dword [esp + 0x18]
jae 0x409179
lea eax, [esp + 0x18]
lea ecx, [esp + 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
call fcn.0040d480
cdq
mov ecx, 0x184f
idiv ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x3b5a640
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4091b0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x10], eax
cmp esi, 0xffffffff
je 0x409090
cmp esi, ebx
je 0x409090
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x10]
add eax, 0x1850
je 0x4091d8
inc dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.0040d480
cdq
mov ecx, 0x3b5f462
idiv ecx
mov dword [esp + 0x10], edx
call fcn.0040d480
cdq
mov ecx, 0x1851
idiv ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
imul eax, ecx
cmp byte [ebp + 0xc], bl
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x10], eax
je 0x409228
shr ebx, 4
and bl, 1
jmp 0x409090
shr ebx, 4
not bl
jmp 0x409220