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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x74
mov eax, dword [0x47e00c]
xor eax, esp
mov dword [esp + 0x70], eax
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
cmp byte [edx], 0
mov edi, dword [ebp + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x5c], 0xf
mov dword [esp + 0x58], 0
mov byte [esp + 0x48], 0
jne 0x414da3
xor ecx, ecx
jmp 0x414db1
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x414da8
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x50]
call fcn.0040ebb0
push 7
push ecx
push str._window
lea ecx, [esp + 0x54]
call fcn.00415160
push 0xa
push ecx
cmp eax, 0xffffffff
lea ecx, [esp + 0x50]
push str._SpeedMode
sete byte [0x480554]
call fcn.00415160
mov al, byte [0x480554]
mov byte [esp + 0x20], al
lea eax, [esp + 0x2c]
push dword [esp + 0x20]
mov byte [0x480591], 0
push 0
push 0
push 0x4784b0
push dword [ebp + 0x14]
push edi
push eax
call fcn.00426e90
add esp, 0x1c
test al, al
jne 0x414e24
mov esi, 1
jmp 0x414ff3
push 0x40e2d0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov ecx, dword [esp + 0x2c]
call fcn.00415020
call dword [sym.imp.WINMM.dll_timeGetTime]
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
movsd qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call esi
push 1
push 0
push 0
push 0
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x414ea1
cmp dword [esp + 0x64], 0x12
je 0x414f3b
lea eax, [esp + 0x60]
push eax
call ebx
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x414e64
mov ecx, dword [0x48064c]
test ecx, ecx
je 0x414ed6
movsd xmm0, qword [esp + 0x20]
sub esp, 8
movsd xmm1, qword [0x478de8]
comisd xmm0, xmm1
mov eax, dword [ecx]
jbe 0x414ecb
movsd qword [esp], xmm1
jmp 0x414ed0
movsd qword [esp], xmm0
call dword [eax + 0x98]
mov ecx, dword [0x47ff44]
test ecx, ecx
je 0x414ef3
movsd xmm0, qword [esp + 0x20]
sub esp, 8
movsd qword [esp], xmm0
call fcn.004266f0
push 5
call edi
lea eax, [esp + 0x30]
push eax
call esi
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sbb edx, dword [esp + 0x3c]
call fcn.00464ee0
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
movsd qword [esp + 0x20], xmm0
call fcn.00464ee0
movsd xmm1, qword [esp + 0x20]
divsd xmm1, xmm0
movsd qword [esp + 0x20], xmm1
jmp 0x414e64
mov ecx, dword [0x47ff44]
call fcn.00427160
mov ecx, dword [0x47ff44]
call fcn.004271a0
cmp al, 1
je 0x414fb8
mov ecx, dword [0x48064c]
test ecx, ecx
je 0x414f8a
movsd xmm0, qword [esp + 0x20]
sub esp, 8
movsd xmm1, qword [0x478de8]
comisd xmm0, xmm1
mov eax, dword [ecx]
jbe 0x414f7f
movsd qword [esp], xmm1
jmp 0x414f84
movsd qword [esp], xmm0
call dword [eax + 0x98]
movsd xmm0, qword [0x478dd8]
sub esp, 8
mov ecx, dword [0x47ff44]
movsd qword [esp], xmm0
call fcn.004266f0
push 0x32
call edi
mov ecx, dword [0x47ff44]
call fcn.004271a0
cmp al, 1
jne 0x414f55
call fcn.00406c30
mov ecx, dword [0x47ff38]
test ecx, ecx
je 0x414fd7
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x47ff38], 0
mov ecx, dword [0x47ff44]
test ecx, ecx
je 0x414ff1
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [0x47ff44], 0
xor esi, esi
mov ecx, dword [esp + 0x5c]
cmp ecx, 0x10
jb 0x415007
inc ecx
push ecx
push dword [esp + 0x4c]
call fcn.0040eeb0
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00449aef
mov esp, ebp
pop ebp
ret 0x10