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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x1c]
test eax, eax
js 0x452d01
mov ecx, dword [esi + 0x2a3d8]
lea eax, [esi + 0x2a398]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x38]
test eax, eax
js 0x452d01
mov eax, dword [esi + 0x2a3d8]
lea edx, [ebp - 4]
push edx
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov ecx, dword [ebp - 4]
lea eax, [esi + 0x2a4b0]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esi + 0x2a5a0], 0
je 0x452b39
cmp dword [esi + 0x2a384], 0
jne 0x452b39
push 0xfffffffffffffff4
push dword [esi + 0x2a3cc]
call dword [sym.imp.USER32.dll_GetClassLongA]
mov ecx, dword [esi + 0x2a3d8]
mov edx, eax
call fcn.00457070
mov eax, dword [esi + 0x2a3d8]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
js 0x452d01
cmp dword [esi + 0x2a390], 0
jne 0x452cff
cmp dword [0x596be0], 0
mov dword [esi + 0x2a394], 1
mov esi, dword [sym.imp.WINMM.dll_timeGetTime]
jne 0x452b9f
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 0x452bf3
mov ecx, dword [ebp - 0x10]
mov dword [0x596bb8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [0x596bbc], ecx
jmp 0x452ba4
mov eax, dword [0x596bf0]
test eax, eax
je 0x452bf3
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [ebp - 0x10]
xorps xmm0, xmm0
mov edx, dword [ebp - 0xc]
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 0x452c3f
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 0x452c79
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 0x452cc3
mov ecx, dword [ebp - 0x10]
mov dword [0x596bb8], ecx
mov ecx, dword [ebp - 0xc]
mov dword [0x596bbc], ecx
jmp 0x452c7e
mov eax, dword [0x596bf0]
test eax, eax
je 0x452cc3
mov ecx, dword [0x596bd0]
mov eax, ecx
mov edx, dword [0x596bd4]
or eax, edx
jne 0x452ca4
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [0x596bd0], ecx
xor eax, eax
mov dword [0x596bd4], edx
mov dword [0x596be8], ecx
mov dword [0x596bec], edx
pop esi
mov esp, ebp
pop ebp
ret
movsd xmm0, qword [0x596bf8]
ucomisd xmm0, qword [0x56da00]
lahf
test ah, 0x44
jp 0x452cf7
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
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret