Function at 0x4588a8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [ebp - 0x4c], eax
xor esi, esi
call sub.kernel32.dll_GetCurrentThread
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x20]
push eax
call sub.kernel32.dll_QueryPerformanceFrequency
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x458b8a
jmp 0x458a5f
inc dword [ebp - 0x50]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ebx
lea eax, [ebp - 0x10]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetThreadPriority
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0x7fffffff
je 0x45895a
push 0xf
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_SetThreadPriority
xor eax, eax
push ebp
push 0x4589dc
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x45897e
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
call fcn.004587d4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x32
jb 0x45896a
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
jmp 0x4589ab
lea eax, [ebp - 0x18]
push eax
call sub.kernel32.dll_QueryPerformanceCounter
call fcn.004587d4
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
cmp eax, 0x3e8
jb 0x458997
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4589e3
cmp dword [ebp - 0x54], 0x7fffffff
je 0x4589db
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_SetThreadPriority
ret
cmp dword [ebp - 0x50], 3
jl 0x458919
cmp dword [ebp - 0x50], 0x14
jge 0x458aae
lea eax, [ebx + ebx*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x458919
mov eax, dword [ebp - 0x24]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x458919
mov eax, dword [ebp - 0x28]
lea eax, [eax + eax*2]
sub eax, esi
cdq
xor eax, edx
sub eax, edx
cmp eax, 3
jg 0x458919
push 0
push 0xa
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00404d40
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
fild qword [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x64], eax
fild qword [ebp - 0x68]
fdivp st(1)
call fcn.0040296c
mov dword [ebp - 0x28], eax
push 0
push 0x64
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
call fcn.00404d40
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
fild qword [ebp - 0x60]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x68], eax
xor eax, eax
mov dword [ebp - 0x64], eax
fild qword [ebp - 0x68]
fdivp st(1)
call fcn.0040296c
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
add eax, eax
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x24]
sub edx, eax
cmp edx, 6
jl 0x458b23
inc dword [ebp - 0x28]
fild qword [ebp - 0x30]
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
xor eax, eax
mov dword [ebp - 0x5c], eax
fild qword [ebp - 0x60]
fdivp st(1)
call fcn.0040296c
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
add ebx, ebx
lea ebx, [ebx + ebx*4]
mov eax, dword [ebp - 0x28]
sub eax, ebx
cmp eax, 6
jl 0x458b65
mov eax, dword [ebp - 4]
inc dword [eax + 4]
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x4c]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x30]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.00458834
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret