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

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
cmp dword [esi + 0x2a384], 0
jne 0x437680
call fcn.00437360
test eax, eax
jns 0x437680
push 1
push 0x8200000c
mov ecx, esi
call fcn.00438820
mov eax, 0x80004005
pop esi
add esp, 0x10
ret
push esi
push 0x4378e0
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 0x4378d5
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]
mov ecx, esi
test eax, eax
je 0x4376fe
push 1
push 0x8200000a
call fcn.00438820
pop esi
add esp, 0x10
ret
call fcn.00436da0
test eax, eax
jns 0x437716
push 1
push eax
mov ecx, esi
call fcn.00438820
pop esi
add esp, 0x10
ret
cmp dword [esi + 0x2a390], 0
jne 0x4378d5
cmp dword [0x500290], 0
mov dword [esi + 0x2a394], 1
jne 0x43776a
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 0x4377bb
mov ecx, dword [esp + 8]
mov dword [0x500268], ecx
mov ecx, dword [esp + 0xc]
mov dword [0x50026c], ecx
jmp 0x43776f
mov eax, dword [0x5002a0]
test eax, eax
je 0x4377bb
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 0x43780b
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 0x437848
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 0x437895
mov ecx, dword [esp + 8]
mov dword [0x500268], ecx
mov ecx, dword [esp + 0xc]
mov dword [0x50026c], ecx
jmp 0x43784d
mov eax, dword [0x5002a0]
test eax, eax
je 0x437895
mov ecx, dword [0x500280]
mov eax, ecx
mov edx, dword [0x500284]
or eax, edx
jne 0x437876
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 0x4378cd
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