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

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x1c]
test eax, eax
js 0x437359
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 0x437359
mov eax, dword [esi + 0x2a3d8]
lea edx, [esp + 4]
push edx
push 0
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x40]
mov ecx, dword [esp + 4]
lea eax, [esi + 0x2a4b0]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x20]
mov eax, dword [esp + 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [esi + 0x2a5a0], 0
je 0x437189
cmp dword [esi + 0x2a384], 0
jne 0x437189
push 0xfffffffffffffff4
push dword [esi + 0x2a3cc]
call dword [sym.imp.USER32.dll_GetClassLongA]
mov ecx, dword [esi + 0x2a3d8]
mov edx, eax
call fcn.0043a220
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 0x437359
cmp dword [esi + 0x2a390], 0
jne 0x437357
cmp dword [0x500290], 0
mov dword [esi + 0x2a394], 1
jne 0x4371ec
lea eax, [esp + 8]
mov dword [0x500290], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x5002a0], eax
test eax, eax
je 0x43723d
mov ecx, dword [esp + 8]
mov dword [0x500268], ecx
mov ecx, dword [esp + 0xc]
mov dword [0x50026c], ecx
jmp 0x4371f1
mov eax, dword [0x5002a0]
test eax, eax
je 0x43723d
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 8]
xorps xmm0, xmm0
mov edx, dword [esp + 0xc]
mov ecx, esi
sub ecx, dword [0x500280]
mov eax, edx
mov dword [0x500298], esi
sbb eax, dword [0x500284]
add dword [0x500278], ecx
movlpd qword [0x500280], xmm0
adc dword [0x50027c], eax
mov dword [0x50029c], edx
jmp 0x43728d
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x4df1b0]
mulsd xmm1, qword [0x4dee28]
movaps xmm0, xmm1
movsd qword [0x500270], xmm1
subsd xmm0, qword [0x5002a8]
addsd xmm0, qword [0x500288]
movsd qword [0x500288], xmm0
xorps xmm0, xmm0
movsd qword [0x5002a8], xmm0
cmp dword [0x500290], 0
jne 0x4372ca
lea eax, [esp + 8]
mov dword [0x500290], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [0x5002a0], eax
test eax, eax
je 0x437317
mov ecx, dword [esp + 8]
mov dword [0x500268], ecx
mov ecx, dword [esp + 0xc]
mov dword [0x50026c], ecx
jmp 0x4372cf
mov eax, dword [0x5002a0]
test eax, eax
je 0x437317
mov ecx, dword [0x500280]
mov eax, ecx
mov edx, dword [0x500284]
or eax, edx
jne 0x4372f8
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [0x500280], ecx
xor eax, eax
mov dword [0x500284], edx
mov dword [0x500298], ecx
mov dword [0x50029c], edx
pop esi
add esp, 0x10
ret
movsd xmm0, qword [0x5002a8]
ucomisd xmm0, qword [0x4ded50]
lahf
test ah, 0x44
jp 0x43734f
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4df1b0]
mulsd xmm0, qword [0x4dee28]
movsd qword [0x5002a8], xmm0
xor eax, eax
pop esi
add esp, 0x10
ret