The 49ers opened the second half with a five-play, 81-yard drive to take a 24-16 lead on the Cowboys.