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

Disassembly:
sub esp, 0x24
mov eax, dword [0x592c80]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jns 0x452acc
cmp eax, 0x88760868
je 0x452f14
cmp eax, 0x88760869
jne 0x452f16
cmp dword [ebp + 0x2a384], 0
je 0x452ab2
mov edi, dword [ebp + 0x2a380]
lea eax, [ebp + 0x430]
mov edx, dword [ebp + 0x2a3d4]
imul ebx, edi, 0x438c
mov esi, dword [edx]
add eax, ebx
push eax
push edi
push edx
call dword [esi + 0x20]
mov eax, dword [ebx + ebp + 0x43c]
mov dword [ebp + 0x2a3a0], eax
mov ecx, ebp
call fcn.00451b30
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c8873
add esp, 0x24
ret
cmp dword [0x5aa968], 0
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
jne 0x452b08
lea eax, [esp + 0x10]
mov dword [0x5aa968], 1
push eax
call ebx
mov dword [0x5aa978], eax
test eax, eax
je 0x452b08
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [0x5aa940], eax
mov dword [0x5aa944], ecx
cmp dword [0x5aa978], 0
xorps xmm1, xmm1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
je 0x452b81
mov esi, dword [0x5aa958]
mov eax, esi
mov edi, dword [0x5aa95c]
or eax, edi
jne 0x452b3f
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
sub esi, dword [0x5aa950]
mov ecx, esi
sbb edi, dword [0x5aa954]
mov edx, edi
call fcn.00554a00
mov edx, dword [0x5aa944]
mov ecx, dword [0x5aa940]
movsd qword [esp + 0x18], xmm0
call fcn.00554a00
movsd xmm1, qword [esp + 0x18]
divsd xmm1, xmm0
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
cvtpd2ps xmm0, xmm1
jmp 0x452bbd
movsd xmm0, qword [0x5aa980]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x452bb1
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x581790]
mulsd xmm0, qword [0x581300]
subsd xmm0, qword [0x5aa960]
cvtpd2ps xmm0, xmm0
cmp dword [0x5aa968], 0
movss dword [esp + 0x10], xmm0
jne 0x452bf9
lea eax, [esp + 0x18]
mov dword [0x5aa968], 1
push eax
call ebx
mov dword [0x5aa978], eax
test eax, eax
je 0x452bf9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [0x5aa940], eax
mov dword [0x5aa944], ecx
cmp dword [0x5aa978], 0
je 0x452c6b
mov esi, dword [0x5aa958]
mov eax, esi
mov edi, dword [0x5aa95c]
or eax, edi
jne 0x452c27
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ecx, esi
mov edx, edi
sub ecx, dword [0x5aa970]
mov dword [0x5aa970], esi
sbb edx, dword [0x5aa974]
mov dword [0x5aa974], edi
call fcn.00554a00
mov edx, dword [0x5aa944]
mov ecx, dword [0x5aa940]
movsd qword [esp + 0x18], xmm0
call fcn.00554a00
movsd xmm1, qword [esp + 0x18]
divsd xmm1, xmm0
jmp 0x452cb1
movsd xmm0, qword [0x5aa980]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x452c9e
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x581790]
mulsd xmm0, qword [0x581300]
movaps xmm1, xmm0
subsd xmm1, qword [0x5aa948]
movsd qword [0x5aa948], xmm0
cvtpd2ps xmm1, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x452cdf
cmp dword [ebp + 0x2a390], 0
je 0x452ce8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004c8873
add esp, 0x24
ret
cmp dword [ebp + 0x2a390], 0
jne 0x452cf1
cmp dword [ebp + 0x2a394], 0
je 0x452d21
mov eax, dword [ebp]
mov ecx, ebp
movss xmm0, dword [esp + 0x10]
movss dword [ebp + 0x2a4f8], xmm0
movss dword [ebp + 0x2a4fc], xmm1
call dword [eax + 0x14]
test eax, eax
js 0x452f16
mov dword [ebp + 0x2a394], 0
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x18]
test eax, eax
js 0x452f16
cmp dword [0x5aa968], 0
jne 0x452d6a
lea eax, [esp + 0x18]
mov dword [0x5aa968], 1
push eax
call ebx
mov dword [0x5aa978], eax
test eax, eax
je 0x452db2
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [0x5aa940], ecx
mov dword [0x5aa944], edx
jmp 0x452d6f
mov eax, dword [0x5aa978]
test eax, eax
je 0x452db2
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
call fcn.00554a00
mov edx, dword [0x5aa944]
mov ecx, dword [0x5aa940]
movsd qword [esp + 0x18], xmm0
call fcn.00554a00
movsd xmm1, qword [esp + 0x18]
divsd xmm1, xmm0
cvtpd2ps xmm2, xmm1
jmp 0x452dd8
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x581790]
mulsd xmm0, qword [0x581300]
cvtpd2ps xmm2, xmm0
mov eax, dword [0x5aa938]
movaps xmm1, xmm2
subss xmm1, dword [0x5aa934]
inc eax
mov dword [0x5aa938], eax
comiss xmm1, dword [0x581318]
jbe case.0x452eca.72
movd xmm0, eax
lea edx, [esp + 0x18]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov ecx, dword [ebp + 0x2a3d4]
push edx
mov dword [0x5aa938], 0
push dword [ebp + 0x2a380]
addsd xmm0, qword [eax*8 + 0x581790]
push ecx
movss dword [0x5aa934], xmm2
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [ebp + 0x2a500], xmm0
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp dword [esp + 0x24], 0x16
lea esi, [ebp + 0x2a55e]
movss xmm0, dword [ebp + 0x2a500]
mov ecx, 0x20
mov eax, 0x10
cmove eax, ecx
push eax
push dword [ebp + 0x2a4cc]
cvtps2pd xmm0, xmm0
push dword [ebp + 0x2a4c8]
sub esp, 8
movsd qword [esp], xmm0
push str._.02f_fps___dx_dx_d_
push esi
call fcn.0044d1d0
add esp, 0x1c
cmp dword [ebp + 0x2a58c], 0
je case.0x452eca.72
imul ecx, dword [ebp + 0x2a380], 0x438c
add ecx, 4
add ecx, ebp
imul eax, dword [ecx + 0x4388], 0xca8
add ecx, eax
mov eax, dword [ecx + 0x10dc]
lea eax, [eax + eax*4]
mov eax, dword [ecx + eax*4 + 0x534]
add eax, 0xffffffb9
cmp eax, 9
ja case.0x452eca.72
jmp dword [eax*4 + 0x452f2c]
push str.__D16_
jmp 0x452ef9
push str.__D15S1_
jmp 0x452ef9
push str.__D24X8_
jmp 0x452ef9
push str.__D24S8_
jmp 0x452ef9
push str.__D24X4S4_
jmp 0x452ef9
push str.__D32_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0x2a3d8]
push 0
push 0
push 0
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x3c]
xor eax, eax
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c8873
add esp, 0x24
ret