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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x57ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
test eax, eax
jns 0x453d03
cmp eax, 0x88760868
je 0x454179
cmp eax, 0x88760869
jne 0x45417b
cmp dword [esi + 0x2a384], 0
je 0x453ceb
mov edi, dword [esi + 0x2a380]
mov edx, dword [esi + 0x2a3d4]
mov eax, dword [ebp - 0x1c]
imul ebx, edi, 0x438c
add eax, 0x430
mov esi, dword [edx]
add eax, ebx
push eax
push edi
push edx
call dword [esi + 0x20]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + esi + 0x43c]
mov dword [esi + 0x2a3a0], eax
mov ecx, esi
call fcn.00452aa0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret
cmp dword [0x596be0], 0
jne 0x453d44
lea eax, [ebp - 0x28]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edi, eax
mov dword [0x596bf0], edi
test edi, edi
je 0x453dcb
mov ecx, dword [ebp - 0x28]
mov dword [0x596bb8], ecx
mov ecx, dword [ebp - 0x24]
mov dword [0x596bbc], ecx
jmp 0x453d4a
mov edi, dword [0x596bf0]
test edi, edi
je 0x453dcb
mov ebx, dword [0x596bd0]
mov eax, ebx
mov ecx, dword [0x596bd4]
or eax, ecx
mov dword [ebp - 0x1c], ecx
je 0x453d67
mov eax, ebx
jmp 0x453d8b
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x596bd4]
mov ecx, dword [ebp - 0x24]
mov edi, dword [0x596bf0]
mov ebx, dword [0x596bd0]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x28]
sub eax, dword [0x596bc8]
sbb ecx, dword [0x596bcc]
mov edx, ecx
mov ecx, eax
call fcn.0053cb00
mov edx, dword [0x596bbc]
mov ecx, dword [0x596bb8]
movsd qword [ebp - 0x10], xmm0
call fcn.0053cb00
movsd xmm1, qword [ebp - 0x10]
divsd xmm1, xmm0
mov edx, dword [0x596bd4]
cvtpd2ps xmm0, xmm1
jmp 0x453e23
movsd xmm0, qword [0x596bf8]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x453e08
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edi, dword [0x596bf0]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56deb0]
mulsd xmm0, qword [0x56dad8]
subsd xmm0, qword [0x596bd8]
mov edx, dword [0x596bd4]
mov ebx, dword [0x596bd0]
mov dword [ebp - 0x1c], edx
cvtpd2ps xmm0, xmm0
cmp dword [0x596be0], 0
movss dword [ebp - 0x24], xmm0
jne 0x453e74
lea eax, [ebp - 0x20]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov edi, eax
mov dword [0x596bf0], edi
test edi, edi
je 0x453ed9
mov eax, dword [ebp - 0x20]
mov edx, dword [0x596bd4]
mov ebx, dword [0x596bd0]
mov dword [0x596bb8], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x596bbc], eax
mov dword [ebp - 0x1c], edx
test edi, edi
je 0x453ed9
mov eax, ebx
or eax, edx
jne 0x453e91
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov ecx, ebx
sub ecx, dword [0x596be8]
mov dword [0x596be8], ebx
sbb edx, dword [0x596bec]
mov dword [0x596bec], eax
call fcn.0053cb00
mov edx, dword [0x596bbc]
mov ecx, dword [0x596bb8]
movsd qword [ebp - 0x10], xmm0
call fcn.0053cb00
movsd xmm1, qword [ebp - 0x10]
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
divsd xmm1, xmm0
jmp 0x453f25
movsd xmm0, qword [0x596bf8]
xorps xmm1, xmm1
mov edi, dword [sym.imp.WINMM.dll_timeGetTime]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x453f12
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56deb0]
mulsd xmm0, qword [0x56dad8]
movaps xmm1, xmm0
subsd xmm1, qword [0x596bc0]
movsd qword [0x596bc0], xmm0
cvtpd2ps xmm1, xmm1
xorps xmm0, xmm0
ucomiss xmm0, xmm1
lahf
test ah, 0x44
jp 0x453f51
cmp dword [esi + 0x2a390], 0
je 0x453f5a
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x2a390], 0
jne 0x453f63
cmp dword [esi + 0x2a394], 0
je 0x453f91
mov eax, dword [esi]
mov ecx, esi
movss xmm0, dword [ebp - 0x24]
movss dword [esi + 0x2a4f8], xmm0
movss dword [esi + 0x2a4fc], xmm1
call dword [eax + 0x14]
test eax, eax
js 0x45417b
mov dword [esi + 0x2a394], 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
test eax, eax
js 0x45417b
cmp dword [0x596be0], 0
jne 0x453fda
lea eax, [ebp - 0x10]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x596bf0], eax
test eax, eax
je 0x45401d
mov ecx, dword [ebp - 0x10]
mov dword [0x596bb8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [0x596bbc], ecx
jmp 0x453fdf
mov eax, dword [0x596bf0]
test eax, eax
je 0x45401d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0053cb00
mov edx, dword [0x596bbc]
mov ecx, dword [0x596bb8]
movsd qword [ebp - 0x10], xmm0
call fcn.0053cb00
movsd xmm1, qword [ebp - 0x10]
divsd xmm1, xmm0
cvtpd2ps xmm2, xmm1
jmp 0x45403f
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56deb0]
mulsd xmm0, qword [0x56dad8]
cvtpd2ps xmm2, xmm0
mov eax, dword [0x596bac]
movaps xmm1, xmm2
subss xmm1, dword [0x596ba8]
inc eax
mov dword [0x596bac], eax
comiss xmm1, dword [0x56daf0]
jbe case.0x45412f.72
movd xmm0, eax
lea edx, [ebp - 0x18]
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
mov ecx, dword [esi + 0x2a3d4]
push edx
mov dword [0x596bac], 0
push dword [esi + 0x2a380]
addsd xmm0, qword [eax*8 + 0x56deb0]
push ecx
movss dword [0x596ba8], xmm2
cvtpd2ps xmm0, xmm0
divss xmm0, xmm1
movss dword [esi + 0x2a500], xmm0
mov eax, dword [ecx]
call dword [eax + 0x20]
cmp dword [ebp - 0xc], 0x16
lea edi, [esi + 0x2a55e]
movss xmm0, dword [esi + 0x2a500]
mov ecx, 0x20
mov eax, 0x10
cmove eax, ecx
push eax
push dword [esi + 0x2a4cc]
cvtps2pd xmm0, xmm0
push dword [esi + 0x2a4c8]
sub esp, 8
movsd qword [esp], xmm0
push str._.02f_fps___dx_dx_d_
push edi
call fcn.004545c0
add esp, 0x1c
cmp dword [esi + 0x2a58c], 0
je case.0x45412f.72
imul eax, dword [esi + 0x2a380], 0x438c
lea ecx, [esi + 4]
add ecx, eax
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.0x45412f.72
jmp dword [eax*4 + 0x45418c]
push str.__D16_
jmp 0x45415e
push str.__D15S1_
jmp 0x45415e
push str.__D24X8_
jmp 0x45415e
push str.__D24S8_
jmp 0x45415e
push str.__D24X4S4_
jmp 0x45415e
push str.__D32_
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esi + 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 [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb96a
mov esp, ebp
pop ebp
ret