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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404044
xor eax, eax
push ebp
push 0x4906ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x19], 0
mov byte [ebp - 0x1a], 0
xor esi, esi
mov dl, 1
mov eax, dword [0x40f814]
call fcn.00402f00
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x490689
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
push ebp
push 0x490351
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.004135e0
cmp edx, 0
jne 0x4902a1
cmp eax, 0
jbe 0x4902f6
jmp 0x4902a3
jle 0x4902f6
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
call fcn.004135cc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34c]
mov eax, ebx
call fcn.004135e0
push edx
push eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00413928
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004135cc
mov eax, dword [ebp - 0xc]
call fcn.004135e0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x108], eax
mov dword [ecx + 0x10c], edx
jmp 0x49030d
mov eax, dword [ebp - 4]
mov dword [eax + 0x108], 0
mov dword [eax + 0x10c], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34c], 0
je 0x490326
mov eax, dword [ebp - 4]
add eax, 0x34c
call fcn.0048dee8
push 0x22
push 0
push 0x10000
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x48b130]
call fcn.0048baac
mov edx, dword [ebp - 4]
mov dword [edx + 0x34c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4903a1
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34c]
mov eax, ebx
call fcn.004135e0
push edx
push eax
mov eax, ebx
call fcn.004135cc
mov eax, dword [ebp - 0xc]
call fcn.004135e0
cmp edx, 0
jne 0x4903ce
cmp eax, 0
jbe 0x490401
jmp 0x4903d0
jle 0x490401
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.004135cc
mov eax, dword [ebp - 0xc]
call fcn.004135e0
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov edx, dword [ebp - 0xc]
call fcn.00413928
mov eax, dword [ebp - 0xc]
call fcn.00413d60
jmp 0x490418
mov eax, dword [ebp - 4]
mov dword [eax + 0x108], 0
mov dword [eax + 0x10c], 0
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x324], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x310], 2
mov eax, dword [ebp - 4]
mov byte [eax + 0x339], 1
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004909e4
mov eax, dword [ebp - 4]
mov byte [eax + 0x300], 1
mov eax, dword [ebp - 4]
push eax
push 0
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
push eax
call sub.user32.dll_PostMessageA
jmp 0x4905e9
mov eax, dword [ebp - 4]
call fcn.00492174
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x490506
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10c]
mov eax, dword [eax + 0x108]
cmp edx, dword [ebp - 0x14]
jne 0x4904b1
cmp eax, dword [ebp - 0x18]
je 0x490506
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x108]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x10c]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe8]
call fcn.004931c8
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x324]
cmp eax, 0xea60
jbe 0x490506
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
mov dword [edx + 0x324], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34c]
mov byte [eax + 0x36], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x490553
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x10c]
mov eax, dword [eax + 0x108]
mov ecx, dword [ebp - 4]
cmp edx, dword [ecx + 0xfc]
jne 0x490553
cmp eax, dword [ecx + 0xf8]
jne 0x490553
test esi, esi
jne 0x490541
call sub.kernel32.dll_GetTickCount
mov esi, eax
jmp 0x490553
call sub.kernel32.dll_GetTickCount
sub eax, esi
cmp eax, 0x2710
ja 0x490611
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
cmp word [eax + 0x66], 0
je 0x49057d
mov edi, eax
lea edx, [ebp - 0x19]
mov eax, dword [edi + 0x68]
call dword [edi + 0x64]
cmp byte [ebp - 0x19], 0
je 0x49057d
mov eax, dword [ebp - 4]
mov dl, byte [ebp - 0x19]
mov byte [eax + 0x329], dl
mov eax, dword [ebp - 4]
cmp byte [eax + 0x313], 0
je 0x4905e9
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x320]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov ecx, eax
test ecx, ecx
jne 0x4905ab
mov ecx, 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2f8]
xor edx, edx
div ecx
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x318]
jae 0x4905e9
mov eax, dword [ebp - 4]
call fcn.00493044
test eax, eax
jle 0x4905e9
mov eax, dword [ebp - 4]
push eax
push 0
push 0x468
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x344]
push eax
call sub.user32.dll_PostMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1360], 0
je 0x490611
mov eax, dword [ebp - 4]
cmp byte [eax + 0x329], 0
jne 0x490611
mov eax, dword [ebp - 4]
cmp byte [eax + 0x339], 0
jne 0x49047d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490690
mov eax, dword [ebp - 4]
call fcn.00490a34
cmp dword [ebp - 0xc], 0
je 0x490634
lea eax, [ebp - 0xc]
call fcn.0048dee8
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34c], 0
je 0x49064d
mov eax, dword [ebp - 4]
add eax, 0x34c
call fcn.0048dee8
mov eax, dword [ebp - 4]
mov byte [eax + 0x339], 0
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x329]
or al, byte [ebp - 0x1a]
je 0x490688
mov eax, dword [ebp - 4]
mov byte [eax + 0x329], 0
mov ecx, dword [0x54988c]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x48d9d0]
call fcn.0040bbb8
call fcn.00403688
ret