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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov byte [ebp - 5], 0
mov eax, dword [0x4e96e8]
cmp dword [eax], 0
je 0x4947c0
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
cmp byte [eax + 0x2c], 0
jne 0x4947c0
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
cmp byte [eax + 0x18], 1
jne 0x494702
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x4e9550]
sub eax, dword [edx]
cmp eax, 0x1f4
jbe 0x494702
mov eax, dword [0x4e98cc]
cmp byte [eax], 0
je 0x494702
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
test byte [eax + 0x2a], 0x10
jne 0x4947c0
mov byte [ebp - 6], 0
mov eax, dword [0x4e9784]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x494680
mov eax, dword [0x4e9784]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x494680
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x4e9784]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00415a38
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x494678
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x42
jne 0x494678
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x4e9988]
mov ecx, dword [ecx]
mov edx, dword [0x4e9a6c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00484f34
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x4e9550]
mov dword [edx], eax
jmp 0x494680
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x494627
cmp byte [ebp - 6], 0
jne 0x494702
mov eax, dword [0x4e9784]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x494702
mov eax, dword [0x4e9784]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x494702
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x4e9784]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00415a38
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4946fa
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x1f
jne 0x4946fa
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x4e9988]
mov ecx, dword [ecx]
mov edx, dword [0x4e9a6c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00484f34
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x4e9550]
mov dword [edx], eax
jmp 0x494702
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x4946ad
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
cmp byte [eax + 0x18], 2
jne 0x4947c0
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x4e9550]
sub eax, dword [edx]
cmp eax, 0x1f4
jbe 0x4947c0
mov eax, dword [0x4e9ae4]
cmp byte [eax], 0
je 0x4947c0
mov eax, dword [0x4e96e8]
mov eax, dword [eax]
test byte [eax + 0x2a], 0x80
jne 0x4947c0
mov eax, dword [0x4e9784]
mov eax, dword [eax]
cmp dword [eax + 8], 0
jle 0x4947c0
mov eax, dword [0x4e9784]
mov eax, dword [eax]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x4947c0
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
mov eax, dword [0x4e9784]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00415a38
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4947b8
mov eax, dword [ebp - 0x10]
cmp word [eax + 8], 0x12
jne 0x4947b8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [0x4e9988]
mov ecx, dword [ecx]
mov edx, dword [0x4e9a6c]
mov edx, dword [edx]
mov eax, dword [ebp - 4]
call fcn.00484f34
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [0x4e9550]
mov dword [edx], eax
inc dword [ebp - 0xc]
dec dword [ebp - 0x14]
jne 0x49476d
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret