def rule(event):
    if all(
        [
            "\\SOFTWARE\\Classes\\.wav\\OpenWithProgIds\\"
            in event.deep_get("TargetObject", default=""),
            not any(
                [
                    event.deep_get("TargetObject", default="").endswith(".AssocFile.WAV"),
                    ".wav." in event.deep_get("TargetObject", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
