def rule(event):
    if all(
        [
            event.deep_get("Image", default="").endswith("\\regsvr32.exe"),
            any(
                [
                    " -i:" in event.deep_get("CommandLine", default=""),
                    " /i:" in event.deep_get("CommandLine", default=""),
                    " –i:" in event.deep_get("CommandLine", default=""),
                    " —i:" in event.deep_get("CommandLine", default=""),
                    " ―i:" in event.deep_get("CommandLine", default=""),
                ]
            ),
            not any(
                [
                    " -n " in event.deep_get("CommandLine", default=""),
                    " /n " in event.deep_get("CommandLine", default=""),
                    " –n " in event.deep_get("CommandLine", default=""),
                    " —n " in event.deep_get("CommandLine", default=""),
                    " ―n " in event.deep_get("CommandLine", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
