DALLAS -- Trevor van Riemsdyk scored to break a tie with 4:03 remaining, and the Chicago Blackhawks defeated the Dallas Stars 5-3 at American Airlines Center on Saturday.
Stars goalie Kari Lehtonen made a save on Artem Anisimov, but van Riemsdyk tapped home the rebound to make it 4-3 with his second goal of the season.
Patrick Kane scored to tie the game 3-3 at 9:59 of the third period.
WATCH: All Blackhawks vs. Stars highlights
Corey Crawford made 31 saves to help Chicago win its second game in a row after a three-game losing streak.
"We're doing things right. It's never fun to lose," said Ryan Hartman, who scored Chicago's first goal. "We know we're a really good team, and we know we can win a lot of games and a lot of games on the road, so it feels good to get back on the winning track, and hopefully just keep it rolling."
Video: CHI@DAL: Hartman chips one-timer over Lehtonen
The Blackhawks (32-17-5) are 4-0-0 against the Stars (21-22-10), who have lost two straight.
Crawford passed Ed Belfour for third place on Chicago's all-time wins list with his 202nd NHL victory. He trails Glenn Hall (275) and Tony Esposito (418).
"That means a lot. It's a privilege to play in Chicago," Crawford said. "They treat us so well there. I just want to keep going and keep moving up. Yeah, that's pretty special."
The Stars went 2-2-2 on a six-game homestand. They trail the Calgary Flames by five points for the second wild card into the Stanley Cup Playoffs from the Western Conference.
"There's no easy game. Again, we let points slip away," Dallas coach Lindy Ruff said. "Every game that we lost points in on this homestand, we had a big part in letting it slip away."
Radek Faksa gave the Stars a 1-0 lead eight seconds into the second period when he beat Crawford with a sharp-angled shot after winning the opening faceoff against Jonathan Toews.
Video: CHI@DAL: Forsling's blast from the point deflects in
The Blackhawks tied the game 1-1 at 6:20 of the second when Hartman scored after a crisp pass from Tanner Kero.
Gustav Forsling gave Chicago a 2-1 lead at 8:34 of the second when his point shot deflected off Dallas forward Patrick Sharp's stick and past Lehtonen, who was screened on the play.
Jamie Benn tied it 2-2 40 seconds into the third period when he beat Crawford with a backhand from below the left faceoff circle after receiving a pass from Cody Eakin.
Tyler Seguin gave Dallas a 3-2 lead when he forced a turnover behind the Chicago net and beat Crawford through the five-hole at 9:24 of the third.
Toews scored into an empty net with one second remaining to make it 5-3.
Lehtonen made 31 saves.
Video: CHI@DAL: Benn shows off slick hands, roofs backhand
Goal of the game
Van Riemsdyk poked Anisimov's rebound past Lehtonen for the game-winner 39 seconds after Chicago killed a holding penalty on Anismov.
Video: CHI@DAL: Van Riemsdyk pushes a rebound past Lehtonen
Save of the game
Lehtonen made a glove save on Kane on a breakaway at 8:07 of the second period.
Video: CHI@DAL: Lehtonen reaches to rob Kane's breakaway bid
Highlight of the game
Kane skated past Stars defenseman John Klingberg and dragged the puck around Lehtonen to score on a backhand, tying the game 35 seconds after Seguin gave Dallas the lead. "That was great," Crawford said. "We're creating so much offensively and things are going in bunches for us right now. We're never out of a game, and it was nice to get those goals there."
Video: CHI@DAL: Kane cuts to the net and slides in backhand
Unsung performance of the game
Hartman dove to disrupt a shot attempt by Benn with 1:56 remaining. "Oh, what a play," Quenneville said. "Diving poke. Good anticipation there."
They said it
"It's huge for us. We can't just rely on our top guys to get points every single night. It's tough for those guys too, to play against other teams' top D-men all the time, and you can't count on them to get two or three goals every night. So it helps us out a lot when the whole team contributes. We got two goals from the D today too, so that was huge." -- Blackhawks defenseman Niklas Hjalmarsson on their depth
"It's a terrible loss, especially after we took the lead and we gave their best player a free look, and then we get a D trapped on the game-winner. That's not good hockey at all." -- Stars coach Lindy Ruff
Need to know
The Stars are 0-18-2 this season when trailing entering the third period. … Benn has five goals and three assists during his season-high six-game point streak. … Anisimov got his 19th assist on Kane's game-tying goal; he had 22 in 77 games last season.
Blackhawks: At the Minnesota Wild on Wednesday (8 p.m. ET; NBCSN, SN, TVA Sports, NHL.TV)
Stars: At the Toronto Maple Leafs on Tuesday (7:30 p.m. ET; TSN4, FS-SW+, NHL.TV)
Video: Crawford, Blackhawks defeat the Stars, 5-3