Stephen Curry hit the winning shot with three seconds left in regulation to lift the Golden State Warriors to a come-from-behind 95-93 victory over the Dallas Mavericks.

The star point guard, who struggled through the first three quarters, came alive down the stretch Wednesday night at ORACLE Arena in Oakland.

He first delivered a four-point play with 1:16 remaining to cut Dallas' lead to 92-90 and then knocked down a pull-up jumper from the right wing in the waning seconds to seal the victory.

Curry finished the game with 33 points on 13-of-25 shooting and 10 assists, although he hurt his team with eight turnovers.

David Lee and Andrew Bogut also were major contributors for the Warriors, grabbing five and four offensive rebounds, respectively, to give their team more chances to score.

Bogut also kept the Dallas players off the offensive glass by hauling down 14 defensive rebounds.

Monta Ellis, who played for the Warriors from 2005 to 2012, and Dirk Nowitzki each scored 21 points for the Mavericks.

With the win, the Warriors improved to 13-10 and are now tied for eighth place in the Western Conference standings with the Mavericks, who have an identical record.

In other action around the NBA on Wednesday night, the New York Knicks defeated the Chicago Bulls 83-78, the Orlando Magic topped the Charlotte Bobcats 92-83, the L.A. Clippers pulled out a 96-88 win over the Boston Celtics, the New Orleans Pelicans edged the Detroit Pistons 111-106, and the San Antonio Spurs routed the Milwaukee Bucks 109-77.

The Minnesota Timberwolves defeated the Philadelphia 76ers 106-99, the Oklahoma City Thunder cruised past the Memphis Grizzlies 116-100, and the Utah Jazz trounced the Sacramento Kings 122-101.