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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0xb
je 0x4998aa
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 9
je 0x4998aa
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0xd
je 0x4998aa
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0x1392
je 0x4998aa
mov eax, dword [ebp - 4]
mov byte [eax + 0x214], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x250]
cmp dword [eax + 8], 2
jl 0x49963c
mov eax, dword [ebp - 4]
mov byte [eax + 0x214], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1e8]
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x1e0]
mov eax, dword [ebp - 4]
mov si, 0xfff8
call fcn.004043e8
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1e8]
mov eax, dword [ebp - 4]
sub edx, dword [eax + 0x1e0]
mov eax, dword [ebp - 4]
mov si, 0xfff7
call fcn.004043e8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0
je 0x499816
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1e0]
jl 0x4996bc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1e4]
jle 0x4996ce
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e0]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1e8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x214], 0
je 0x499700
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
add eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
fild qword [ebp - 0x18]
fdiv dword [0x4998b0]
call fcn.004033d0
mov dword [ebp - 0xc], eax
jmp 0x49970c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x200]
mov dword [ebp - 0xc], eax
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x204]
cmp eax, dword [ebp - 0xc]
jbe 0x4997fb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1e4]
jge 0x499750
mov eax, dword [ebp - 4]
inc dword [eax + 0x1e8]
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x204], eax
jmp 0x499765
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x174], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x11a], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x174], 0x16
jne 0x4997fb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1e8]
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x1e0]
cmp eax, 4
jne 0x4997fb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xec]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xf4]
push eax
push 0xb
mov eax, dword [0x4e9280]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 4]
call fcn.004cdd38
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4997fb
mov eax, dword [0x4e95e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x74], 0x1e
mov eax, dword [ebp - 0x10]
mov dword [eax + 0xc8], 0x110
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x21c], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x220], eax
jmp 0x499882
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x22c]
cmp eax, 0xc8
jbe 0x499882
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
sub eax, dword [edx + 0x220]
cmp eax, 0x1f4
jbe 0x499876
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x220], eax
mov eax, dword [ebp - 4]
inc dword [eax + 0x21c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x21c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x224]
jl 0x499876
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x21c], edx
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004043e8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x1e8]
je 0x4998aa
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x234], eax
mov eax, dword [ebp - 4]
mov si, 0xfff3
call fcn.004043e8
pop esi
mov esp, ebp
pop ebp
ret