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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402778
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe8
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
cmp byte [ebx], 0
jne 0x401974
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x28]
mov esi, eax
mov eax, dword [ebx + 0xc]
test eax, eax
mov dword [ebp - 0x14], esi
jne 0x40170a
mov edi, dword [ebx + 8]
test edi, edi
jne 0x4016bf
xor eax, eax
jmp 0x4016f6
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00402260
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x18]
mov eax, esi
mov esi, dword [ebp - 0x14]
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
mov dword [ebx + 0xc], eax
je 0x40194d
mov ecx, dword [ebx + 0x10]
cmp esi, ecx
jae 0x401960
sub ecx, esi
mov eax, 0x10624dd3
add ecx, 0x3e7
mul ecx
mov eax, dword [ebp - 0x24]
mov edi, edx
shr edi, 6
cmp edi, eax
mov dword [ebp - 0x1c], edi
je 0x40194d
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], edi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [ebx + 4]
push eax
push ecx
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x10], eax
mov edx, str.__closing_in
xor eax, eax
test edx, edx
mov dword [ebp - 4], eax
je 0x401787
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00402260
mov eax, esp
push 0
push esi
push str.__closing_in
push eax
call fcn.00401990
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x2c], ebx
jne 0x4017a1
xor esi, esi
jmp 0x4017aa
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea eax, [esi + ebx]
push eax
push 0
mov dword [ebp - 0x20], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x401809
lea eax, [esi + esi]
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
add ecx, ecx
lea edi, [eax + ebx]
mov edx, ecx
mov eax, dword [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebx + eax*2], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], ebx
push edi
lea edx, [ebp - 0xf4]
push 0x4040a8
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0xc
lea eax, [ebp - 0xf4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
mov eax, dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x1c], edi
jne 0x40183c
xor esi, esi
jmp 0x401845
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea eax, [esi + edi]
push eax
push 0
mov dword [ebp - 0x20], eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ebx, eax
test ebx, ebx
je 0x4018a4
lea eax, [esi + esi]
mov esi, dword [ebp - 0x10]
mov ecx, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
lea esi, [ebp - 0xf4]
add ecx, ecx
lea edi, [eax + ebx]
mov edx, ecx
mov eax, dword [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [ebx + eax*2], 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebp - 0x10], ebx
mov edx, str._seconds_
test edx, edx
jne 0x4018b1
xor esi, esi
jmp 0x4018de
push str._seconds_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00402260
mov eax, esp
push 0
push esi
push str._seconds_
push eax
call fcn.00401990
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.004019d0
mov eax, dword [ebp - 0x10]
test eax, eax
mov edi, eax
jne 0x4018fc
xor esi, esi
jmp 0x40192b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00402260
mov esi, esp
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x18]
push esi
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ebx, dword [ebp - 0x18]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebx], 0
je 0x40169f
jmp 0x401974
mov byte [ebx + 1], 1
mov eax, dword [ebx + 0xc]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x100]
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret