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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.00491e2e
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x491e1e
cmp dword [ebp + 0xc], 3
jne 0x491ba9
call fcn.00491ece
mov dword [0x295c281], 0
jmp 0x491dc3
cmp dword [ebp + 0xc], 1
jne 0x491ce9
mov ebx, dword [0x295c275]
call fcn.00467b41
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x491bd3
push 4
call fcn.006abcd9
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x491be6
push 1
call fcn.006abcd9
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 0
jne 0x491c51
mov eax, dword [ebp + 0x10]
cmp dword [0x295c285], eax
jne 0x491c18
mov eax, 0
jmp 0x491e28
mov eax, dword [ebp + 0x10]
mov dword [0x295c285], eax
call fcn.00491ece
mov eax, dword [ebp - 4]
mov dword [0x295c281], eax
mov eax, dword [ebp + 8]
mov dword [0x295c289], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x295c28d], eax
jmp 0x491ce4
mov ebx, dword [0x295c275]
call fcn.00467b41
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x491c71
push 4
call fcn.006abcd9
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x491c84
push 1
call fcn.006abcd9
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 2
jne 0x491ce4
mov eax, dword [ebp + 0x10]
cmp dword [0x295c285], eax
jne 0x491cb6
mov eax, 0
jmp 0x491e28
mov eax, dword [ebp + 0x10]
mov dword [0x295c285], eax
cmp dword [0x295c291], 0
je 0x491ce4
call fcn.00491ece
mov dword [0x295c281], 0
mov dword [0x295c289], 0
jmp 0x491dc3
cmp dword [ebp + 0xc], 2
jne 0x491dc3
mov ebx, dword [0x295c275]
call fcn.00467b41
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x491d13
push 4
call fcn.006abcd9
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x491d26
push 1
call fcn.006abcd9
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 8]
cmp dword [ebx], 1
je 0x491d8f
mov ebx, dword [0x295c275]
call fcn.00467b41
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x491d5f
push 4
call fcn.006abcd9
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x491d72
push 1
call fcn.006abcd9
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 0x1c
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp - 0x10]
cmp dword [ebx], 2
je 0x491d8f
xor eax, eax
jmp 0x491d94
mov eax, 1
test eax, eax
je 0x491dc3
mov eax, dword [ebp - 4]
mov dword [0x295c281], eax
mov eax, dword [ebp + 8]
mov dword [0x295c289], eax
push 0
mov ebx, 0x308
call sub.kernel32.dll_GetTickCount
add esp, 4
mov dword [0x295c28d], eax
mov ebx, dword [0x295c275]
call fcn.00467b41
push ebx
push ecx
mov eax, dword [ebp - 4]
dec eax
jns 0x491de3
push 4
call fcn.006abcd9
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x491df6
push 1
call fcn.006abcd9
add esp, 4
shl eax, 2
add ebx, eax
mov ebx, dword [ebx]
add ebx, 8
mov dword [ebp - 8], ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov ebx, dword [ebp - 8]
push dword [ebx]
call fcn.0046e5d4
jmp 0x491e28
mov eax, 0
jmp 0x491e28
mov esp, ebp
pop ebp
ret 0x10