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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48774c
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4a7008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00430f00
xorps xmm0, xmm0
mov byte [edi + 0x1ec], 0
movsd qword [edi + 0x1f8], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 0x204], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4980b0]
lea eax, [edi + 0x210]
push eax
movsd qword [edi + 0x1f0], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4314a5
lea eax, [edi + 0x218]
mov byte [edi + 0x208], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 4
push str.Save
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00403610
push 0x258
mov dword [ebp - 4], 0
call fcn.0046fe04
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x43150b
push 0x258
push 0
push esi
call fcn.00479b40
add esp, 0xc
lea eax, [ebp - 0x40]
mov ecx, esi
push 0
push 0x431a40
push eax
call fcn.00407640
jmp 0x43150d
xor eax, eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
push ecx
mov ecx, eax
mov dword [edi + 0x2b0], eax
call fcn.004080a0
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x2b0]
call dword [eax + 0x24]
push 8
push str.Continue
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403610
push 0x258
mov byte [ebp - 4], 2
call fcn.0046fe04
mov esi, eax
add esp, 4
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x431592
push 0x258
push 0
push esi
call fcn.00479b40
add esp, 0xc
lea eax, [ebp - 0x28]
mov ecx, esi
push 0
push 0x431ab0
push eax
call fcn.00407640
jmp 0x431594
xor eax, eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
mov dword [edi + 0x2b4], eax
call fcn.004080a0
mov eax, dword [edi]
mov ecx, edi
push dword [edi + 0x2b4]
call dword [eax + 0x24]
mov ebx, dword [0x4d1ba0]
test bl, 1
jne 0x4315fe
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 4
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov byte [ebp - 4], 2
add esp, 4
mov ebx, dword [0x4d1ba0]
movss xmm0, dword [0x4d1a9c]
mulss xmm0, dword [0x497f04]
mov eax, dword [0x4d1d8c]
movss dword [ebp - 0x54], xmm0
test al, 1
jne 0x431658
or eax, 1
mov dword [0x4d1d8c], eax
push 0x190
push 0
push 0x4d1bc0
mov byte [ebp - 4], 5
call fcn.00479b40
add esp, 0xc
call fcn.004494f0
push 0x48cea0
call fcn.0046fb6c
mov byte [ebp - 4], 2
add esp, 4
mov ebx, dword [0x4d1ba0]
mov eax, dword [0x4d1bc8]
cmp eax, dword [0x4d1bcc]
je 0x43171e
test bl, 1
jne 0x4316a5
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 6
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
add esp, 4
mov byte [ebp - 4], 2
movss xmm0, dword [0x4d1a9c]
lea ecx, [ebp - 0x78]
mulss xmm0, dword [0x497e4c]
push 0xc
push str.powerups.dds
mov byte [edi + 0x2bc], 1
addss xmm0, dword [ebp - 0x54]
mov dword [ebp - 0x64], 0xf
mov dword [ebp - 0x68], 0
mov byte [ebp - 0x78], 0
movss dword [ebp - 0x54], xmm0
call fcn.00403610
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x78]
cmp dword [ebp - 0x64], 0x10
cmovae ecx, dword [ebp - 0x78]
call fcn.00469e10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x64], 0x10
mov dword [edi + 0x2b8], eax
jb 0x431716
push dword [ebp - 0x78]
call fcn.0046fdb4
add esp, 4
mov ebx, dword [0x4d1ba0]
jmp 0x431725
mov byte [edi + 0x2bc], 0
test bl, 1
jne 0x4317a9
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 8
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov byte [ebp - 4], 2
add esp, 4
mov ebx, dword [0x4d1ba0]
test bl, 1
jne 0x4317a9
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 9
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov byte [ebp - 4], 2
add esp, 4
mov ebx, dword [0x4d1ba0]
mov eax, dword [0x4d1aac]
add eax, dword [0x4d1aa4]
movss xmm0, dword [ebp - 0x54]
mulss xmm0, dword [0x497d50]
cdq
sub eax, edx
sar eax, 1
movd xmm1, eax
cvtdq2ps xmm1, xmm1
subss xmm1, xmm0
movss dword [ebp - 0x58], xmm1
test bl, 1
jne 0x4318a0
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 0xa
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov byte [ebp - 4], 2
add esp, 4
mov ebx, dword [0x4d1ba0]
test bl, 1
jne 0x4318a0
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 0xb
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov byte [ebp - 4], 2
add esp, 4
mov ebx, dword [0x4d1ba0]
test bl, 1
jne 0x4318a0
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 0xc
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
mov byte [ebp - 4], 2
add esp, 4
mov ebx, dword [0x4d1ba0]
mov eax, dword [0x4d1aa8]
add eax, dword [0x4d1aa0]
movss xmm1, dword [0x4d1a9c]
cdq
movaps xmm0, xmm1
mulss xmm0, dword [0x497f08]
sub eax, edx
sar eax, 1
movd xmm2, eax
cvtdq2ps xmm2, xmm2
subss xmm2, xmm0
movss dword [ebp - 0x5c], xmm2
test bl, 1
jne 0x431918
or ebx, 1
mov dword [0x4d1ba0], ebx
push 0x88
push 0
push 0x4d1a70
mov byte [ebp - 4], 0xd
call fcn.00479b40
add esp, 0xc
call fcn.00401850
push 0x48cc60
call fcn.0046fb6c
movss xmm1, dword [0x4d1a9c]
add esp, 4
movss xmm2, dword [ebp - 0x5c]
movss xmm0, dword [ebp - 0x58]
lea esi, [edi + 4]
addss xmm0, dword [ebp - 0x54]
mulss xmm1, dword [0x497f30]
cvttss2si eax, xmm0
addss xmm1, xmm2
push eax
cvttss2si eax, xmm1
push eax
cvttss2si eax, dword [ebp - 0x58]
push eax
cvttss2si eax, xmm2
push eax
push esi
call dword [sym.imp.USER32.dll_SetRect]
push esi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
push 0x10
push 0x10
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
movdqu xmm0, xmmword [ebp - 0x50]
mov dword [edi + 0x220], 0xff000000
movdqu xmmword [edi + 0x224], xmm0
mov byte [edi + 0x27c], 0
xorps xmm0, xmm0
movsd qword [edi + 0x288], xmm0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 0x294], 0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x4980b0]
lea eax, [edi + 0x2a0]
push eax
movsd qword [edi + 0x280], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x4319e0
lea eax, [edi + 0x2a8]
mov byte [edi + 0x298], 1
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
cmp dword [ebp - 0x14], 0x10
mov byte [edi + 0x234], 1
jb 0x4319f8
push dword [ebp - 0x28]
call fcn.0046fdb4
add esp, 4
cmp dword [ebp - 0x2c], 0x10
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jb 0x431a1b
push dword [ebp - 0x40]
call fcn.0046fdb4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046f27e
mov esp, ebp
pop ebp
ret