Rosamund Pike takes villainous turn in new comedy