Function at 0x4a9650
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
mov eax, dword [0x80f654]
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x4a96ad
mov eax, dword [0x810bf8]
push ebp
push eax
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov ebx, eax
cmp ebx, 0x887601c2
je 0x4a967e
cmp ebx, 0x887601ae
jne 0x4a96af
mov eax, dword [0x810bfc]
push eax
mov edx, dword [eax]
call dword [edx + 0x68]
mov ebx, eax
cmp ebx, ebp
jl 0x4a96af
mov eax, dword [0x810bf8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
setge bl
and ebx, 0xff
jl 0x4a988d
jmp 0x4a96af
xor ebx, ebx
fld dword [0x59722c]
fcomp dword [0x4c336c]
mov edx, dword [0x59722c]
mov dword [esp + 0x10], edx
fnstsw ax
test ah, 0x40
jne 0x4a988d
push esi
mov esi, dword [0x80f668]
inc esi
push edi
mov dword [0x80f668], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edx, dword [0x80f664]
mov ecx, dword [0x59723c]
sub eax, edx
cmp eax, ecx
jb 0x4a9765
call esi
mov ecx, dword [0x80f668]
mov dword [0x80f664], eax
mov eax, dword [0x597238]
cmp eax, ecx
je 0x4a975f
fld dword [0x597224]
jb 0x4a9719
fchs
fadd dword [0x80f658]
fst dword [0x80f658]
fcomp dword [0x597228]
fnstsw ax
test ah, 0x41
jne 0x4a973e
mov eax, dword [0x597228]
mov dword [0x80f658], eax
jmp 0x4a975f
fld dword [0x597228]
fchs
fld dword [0x80f658]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4a975d
fstp dword [0x80f658]
jmp 0x4a975f
fstp st(0)
mov dword [0x80f668], ebp
fld dword [0x80f660]
fcomp dword [0x4c336c]
fnstsw ax
test ah, 0x40
je 0x4a9799
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], edx
fild qword [esp + 0x10]
fstp dword [0x80f660]
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x1c]
push eax
call edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [0x80f65c]
mov esi, eax
sub eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
fild qword [esp + 0x10]
fmul dword [0x4c39c4]
fdiv dword [0x80f660]
fst dword [esp + 0x10]
fsub dword [esp + 0x18]
fcomp dword [0x80f658]
fnstsw ax
test ah, 0x41
mov eax, dword [0x80f654]
jne 0x4a9814
cmp eax, ebp
jne 0x4a9818
fld dword [0x80f658]
fadd dword [esp + 0x18]
fdivr dword [esp + 0x10]
call fcn.004aae90
mov ecx, dword [0x597220]
mov dword [0x80f654], eax
cmp eax, ecx
jbe 0x4a9885
mov dword [0x80f654], ecx
jmp 0x4a9885
cmp eax, ebp
je 0x4a9820
dec dword [0x80f654]
jmp 0x4a9885
fld dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
je 0x4a9885
mov eax, dword [0x810c0c]
cmp eax, ebp
je 0x4a9849
fld dword [esp + 0x18]
fsub dword [esp + 0x10]
push ecx
fstp dword [esp]
call eax
add esp, 4
lea ecx, [esp + 0x24]
push ecx
call edi
mov eax, dword [esp + 0x24]
mov ecx, dword [0x80f65c]
mov esi, eax
sub eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
fild qword [esp + 0x1c]
fmul dword [0x4c39c4]
fdiv dword [0x80f660]
fst dword [esp + 0x10]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 1
jne 0x4a982f
mov dword [0x80f65c], esi
pop edi
pop esi
xor eax, eax
cmp ebx, ebp
pop ebp
pop ebx
setge al
add esp, 0x1c
ret