def rule(event):
    if all(
        [
            "Software\\Microsoft\\Office\\" in event.deep_get("TargetObject", default=""),
            "\\Outlook\\Today\\" in event.deep_get("TargetObject", default=""),
            any(
                [
                    all(
                        [
                            event.deep_get("TargetObject", default="").endswith("\\Stamp"),
                            event.deep_get("Details", default="") == "DWORD (0x00000001)",
                        ]
                    ),
                    any(
                        [
                            event.deep_get("TargetObject", default="").endswith("\\URL"),
                            event.deep_get("TargetObject", default="").endswith("\\UserDefinedUrl"),
                        ]
                    ),
                ]
            ),
            not all(
                [
                    any(
                        [
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files\\Common Files\\Microsoft Shared\\ClickToRun\\"
                            ),
                            event.deep_get("Image", default="").startswith(
                                "C:\\Program Files\\Common Files\\Microsoft Shared\\ClickToRun\\Updates\\"
                            ),
                        ]
                    ),
                    event.deep_get("Image", default="").endswith("\\OfficeClickToRun.exe"),
                ]
            ),
        ]
    ):
        return True
    return False
