def findWindowsCached(paths):
    """
    Search through the windows MUI cache which is another place windows
    will keep track of league of legends clients that have been started
    on this machine.
    """
    settings = QSettings('HKEY_CURRENT_USER\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\MuiCache', QSettings.NativeFormat);
    for key in settings.allKeys():
        index = key.lower().find('league of legends.exe')
        if index > 0:
            paths.append(key[0:index])

    Search through the windows MUI cache which is another place windows
    will keep track of league of legends clients that have been started
    on this machine.
    
leaguedirector/enable.py