def rule(event):
    if all(
        [
            event.deep_get("PreviousCreationUtcTime", default="").startswith("202"),
            not any(
                [
                    event.deep_get("CreationUtcTime", default="").startswith("202"),
                    any(
                        [
                            any(
                                [
                                    event.deep_get("TargetFilename", default="").startswith(
                                        "C:\\Program Files\\"
                                    ),
                                    event.deep_get("TargetFilename", default="").startswith(
                                        "C:\\Program Files (x86)\\"
                                    ),
                                ]
                            ),
                            any(
                                [
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files\\"
                                    ),
                                    event.deep_get("Image", default="").startswith(
                                        "C:\\Program Files (x86)\\"
                                    ),
                                ]
                            ),
                        ]
                    ),
                ]
            ),
            not any(
                [
                    any(
                        [
                            event.deep_get("Image", default="")
                            in [
                                "C:\\Windows\\system32\\ProvTool.exe",
                                "C:\\Windows\\System32\\usocoreworker.exe",
                                "C:\\Windows\\ImmersiveControlPanel\\SystemSettings.exe",
                            ],
                            event.deep_get("TargetFilename", default="").startswith(
                                "C:\\ProgramData\\USOPrivate\\UpdateStore\\"
                            ),
                            any(
                                [
                                    event.deep_get("TargetFilename", default="").endswith(".tmp"),
                                    event.deep_get("TargetFilename", default="").endswith(".temp"),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            event.deep_get("Image", default="").startswith(
                                "C:\\WINDOWS\\System32\\"
                            ),
                            any(
                                [
                                    event.deep_get("Image", default="").endswith("\\TiWorker.exe"),
                                    event.deep_get("Image", default="").endswith("\\svchost.exe"),
                                    event.deep_get("Image", default="").endswith("\\sihclient.exe"),
                                ]
                            ),
                            event.deep_get("TargetFilename", default="").endswith(".cab"),
                        ]
                    ),
                    event.deep_get("Image", default="") == "C:\\Windows\\system32\\msiexec.exe",
                    all(
                        [
                            event.deep_get("Image", default="").startswith("C:\\Windows\\Temp\\"),
                            event.deep_get("Image", default="").endswith("\\VCREDI~1.EXE"),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
