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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004049fc
xor eax, eax
push ebp
push 0x4990e2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
push ebp
push 0x499051
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004045e4
call sub.kernel32.dll_GetTickCount_1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x2b
jne 0x498f95
mov eax, dword [ebp - 0xc]
call fcn.0040480c
cmp eax, 2
jl 0x499031
mov eax, dword [ebp - 0xc]
mov al, byte [eax + 1]
sub al, 0x2d
je 0x498ece
sub al, 0x15
je 0x498ece
sub al, 0xb
je 0x498f53
sub al, 7
jne 0x498f7e
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040480c
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 0xc]
call fcn.00404a6c
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.004973c4
mov ebx, eax
mov edx, ebx
mov eax, dword [0x4a6f40]
call fcn.00498630
test eax, eax
je 0x499031
mov dword [ebp - 0x1c], 2
mov edx, dword [eax]
test edx, edx
je 0x498f3c
cmp byte [edx + 8], 0
je 0x498f3c
mov dword [ebp - 0x1c], 3
mov eax, edx
call fcn.00473678
mov dword [ebp - 0x1c], 4
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x6c], 0
jmp 0x499031
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
call fcn.0040480c
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 0xc]
call fcn.00404a6c
mov eax, dword [ebp - 0x14]
call fcn.00499ca8
jmp 0x499031
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x68], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x6c], 0
jmp 0x499031
push 0
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 0x24], 0x2f
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00497464
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
call fcn.004045e4
or edx, 0xffffffff
mov eax, dword [ebp - 0x10]
call fcn.004973c4
mov ebx, eax
mov eax, dword [0x4a6f40]
call fcn.00498714
xor ecx, ecx
push ebp
push 0x49902a
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, ebx
mov eax, dword [0x4a6f40]
call fcn.00498630
test eax, eax
je 0x499012
mov dword [ebp - 0x1c], 0xb
mov edx, dword [eax]
test edx, edx
je 0x49900b
cmp byte [edx + 8], 0
je 0x49900b
mov eax, dword [eax + 0x28]
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov dword [ebp - 0x1c], 0xc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499031
mov eax, dword [0x4a6f40]
call fcn.00498720
ret
mov dword [ebp - 0x1c], 0xd
mov eax, dword [ebp - 4]
call fcn.00498854
mov dword [ebp - 0x1c], 0xe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49908d
call sub.kernel32.dll_GetTickCount_1
sub eax, dword [ebp - 0x18]
cmp eax, dword [0x4a6f9c]
jbe 0x4990a2
mov dword [0x4a6f9c], eax
cmp dword [0x4a6f9c], 0x32
jbe 0x4990b2
sub dword [0x4a6f9c], 0x32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4990e9
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404570
lea eax, [ebp - 0x20]
call fcn.0040454c
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00404570
ret