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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x57ec74]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x2a384], 0
jne 0x45314c
call fcn.00452d10
test eax, eax
jns 0x45314c
push str.Could_not_reset_the_Direct3D_device.
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0051560d
add esp, 0xc
lea eax, [ebp - 0x208]
push str._n_nSorry__but_this_game_wont_run.
push 0x200
push eax
call fcn.005177a3
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x10
push dword [esi + 0x2a588]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x2a3cc]
test eax, eax
je 0x453138
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret
push esi
push 0x453450
push dword [esi + 0x2a3cc]
push 0x90
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
jne 0x453434
imul eax, dword [esi + 0x2a380], 0x438c
imul ecx, dword [eax + esi + 0x438c], 0xca8
add ecx, eax
mov eax, dword [ecx + esi + 0x10e4]
mov ecx, esi
mov dword [esi + 0x2a384], eax
mov eax, dword [esi]
call dword [eax + 0x1c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [esi + 0x2a3d8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test eax, eax
je 0x45322b
push str.A_D3D_object_has_a_non_zero_reference_ncount__meaning_things_were_not_properly_ncleaned_up_.
lea eax, [ebp - 0x208]
push 0x200
push eax
call fcn.0051560d
add esp, 0xc
lea eax, [ebp - 0x208]
push str._n_nSorry__but_this_game_wont_run.
push 0x200
push eax
call fcn.005177a3
add esp, 0xc
lea eax, [ebp - 0x208]
push 0x10
push dword [esi + 0x2a588]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x2a3cc]
test eax, eax
je 0x453217
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, 0x8200000a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00452740
test eax, eax
jns 0x45324f
push 1
push eax
mov ecx, esi
call fcn.00454450
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x2a390], 0
jne 0x453434
cmp dword [0x596be0], 0
mov dword [esi + 0x2a394], 1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
jne 0x4532af
lea eax, [ebp - 0x210]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x596bf0], eax
test eax, eax
je 0x45330c
mov ecx, dword [ebp - 0x210]
mov dword [0x596bb8], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [0x596bbc], ecx
jmp 0x4532b4
mov eax, dword [0x596bf0]
test eax, eax
je 0x45330c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [ebp - 0x210]
xorps xmm0, xmm0
mov edx, dword [ebp - 0x20c]
mov ecx, esi
sub ecx, dword [0x596bd0]
mov eax, edx
mov dword [0x596be8], esi
sbb eax, dword [0x596bd4]
add dword [0x596bc8], ecx
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
adc dword [0x596bcc], eax
movlpd qword [0x596bd0], xmm0
mov dword [0x596bec], edx
jmp 0x453358
call esi
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x56deb0]
mulsd xmm1, qword [0x56dad8]
movaps xmm0, xmm1
movsd qword [0x596bc0], xmm1
subsd xmm0, qword [0x596bf8]
addsd xmm0, qword [0x596bd8]
movsd qword [0x596bd8], xmm0
xorps xmm0, xmm0
movsd qword [0x596bf8], xmm0
cmp dword [0x596be0], 0
jne 0x45339b
lea eax, [ebp - 0x210]
mov dword [0x596be0], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x596bf0], eax
test eax, eax
je 0x4533f8
mov ecx, dword [ebp - 0x210]
mov dword [0x596bb8], ecx
mov ecx, dword [ebp - 0x20c]
mov dword [0x596bbc], ecx
jmp 0x4533a0
mov eax, dword [0x596bf0]
test eax, eax
je 0x4533f8
mov ecx, dword [0x596bd0]
mov eax, ecx
mov edx, dword [0x596bd4]
or eax, edx
jne 0x4533cf
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x210]
mov dword [0x596bd0], ecx
xor eax, eax
mov dword [0x596bd4], edx
mov dword [0x596be8], ecx
mov dword [0x596bec], edx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb96a
mov esp, ebp
pop ebp
ret
movsd xmm0, qword [0x596bf8]
ucomisd xmm0, qword [0x56da00]
lahf
test ah, 0x44
jp 0x45342c
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x56deb0]
mulsd xmm0, qword [0x56dad8]
movsd qword [0x596bf8], xmm0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004cb96a
mov esp, ebp
pop ebp
ret