def rule(event):
    if all(
        [
            "\\Control\\Print\\Monitors\\" in event.deep_get("TargetObject", default=""),
            event.deep_get("Details", default="").endswith(".dll"),
            not any(
                [
                    all(
                        [
                            event.deep_get("Image", default="")
                            == "C:\\Windows\\System32\\spoolsv.exe",
                            "\\Control\\Print\\Monitors\\CutePDF Writer Monitor v4.0\\Driver"
                            in event.deep_get("TargetObject", default=""),
                            event.deep_get("Details", default="") == "cpwmon64_v40.dll",
                            any(
                                [
                                    "AUTHORI" in event.deep_get("User", default=""),
                                    "AUTORI" in event.deep_get("User", default=""),
                                ]
                            ),
                        ]
                    ),
                    "\\Control\\Print\\Monitors\\MONVNC\\Driver"
                    in event.deep_get("TargetObject", default=""),
                    all(
                        [
                            "Control\\Print\\Environments\\"
                            in event.deep_get("TargetObject", default=""),
                            "\\Drivers\\" in event.deep_get("TargetObject", default=""),
                            "\\VNC Printer" in event.deep_get("TargetObject", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
