The San Francisco 49ers overcame the Dallas Cowboys 30-24, with the game turning on their strong third-quarter showing.