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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
and dword [ebx], 0
cmp dword [ebp + 0xc], 0
mov esi, ecx
jbe 0x454a1d
mov edi, 0x3e8
jmp 0x45485d
mov ebx, dword [ebp + 0x10]
cmp dword [esi + 0x5c], 0x2710
jbe 0x45487b
cmp dword [esi + 0x54], 0
je 0x45487b
mov ecx, esi
call fcn.00454a2a
imul eax, eax, 0xf
mov dword [ebp - 4], eax
jmp 0x454885
mov dword [ebp - 4], 0x5dc
mov eax, dword [ebp - 4]
test eax, eax
jne 0x454890
mov dword [ebp - 4], 1
cmp byte [esi + 0x90], 0
je 0x4548a5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x4548b2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
cmp ecx, dword [ebp - 4]
jb 0x4548ca
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push ecx
mov ecx, dword [ebp + 8]
add eax, ecx
push eax
push dword [esi + 4]
call fcn.004532ee
add esp, 0x10
test eax, eax
jne 0x4548f7
mov eax, dword [esi]
push 0x15f90
mov ecx, esi
call dword [eax]
test al, al
je 0x454a26
cmp byte [esi + 0x90], 0
je 0x454912
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
jmp 0x454920
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x454a1d
add dword [ebx], ecx
add dword [esi + 0x4c], ecx
add dword [esi + 0x54], ecx
add dword [esi + 0x60], ecx
sub eax, dword [ebp - 0x28]
sbb edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
or eax, edx
mov dword [ebp - 0xc], edx
jne 0x454951
and dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 5
push 0
push edi
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00458f10
mov ebx, dword [esi + 0x8c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x88]
cmp edx, ebx
mov dword [ebp - 0x14], edx
jl 0x4549af
jg 0x45497c
cmp dword [ebp - 0x18], eax
jb 0x4549af
push ebx
push eax
push edx
push dword [ebp - 0x18]
call fcn.00458e60
push ebx
add dword [esi + 0x5c], eax
push dword [esi + 0x88]
add dword [esi + 0x68], eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00458da0
push 0
push edi
push edx
push eax
call fcn.00458e60
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
push 0
push 0xf4240
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00458f10
push ebx
push dword [esi + 0x88]
push edx
push eax
call fcn.00458e60
add dword [esi + 0x58], eax
mov ecx, dword [esi + 0x58]
add dword [esi + 0x64], eax
cmp ecx, edi
jbe 0x4549f2
mov eax, ecx
xor edx, edx
mov ebx, edi
div ebx
xor edx, edx
add dword [esi + 0x5c], eax
mov eax, ecx
mov ecx, edi
div ecx
mov dword [esi + 0x58], edx
mov ecx, dword [esi + 0x64]
cmp ecx, edi
jbe 0x454a0f
mov eax, ecx
xor edx, edx
mov ebx, edi
div ebx
xor edx, edx
add dword [esi + 0x68], eax
mov eax, ecx
mov ecx, edi
div ecx
mov dword [esi + 0x64], edx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ecx], eax
jb 0x45485a
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0xc
xor al, al
jmp 0x454a1f