Andy Murray maintained his perfect record at the Shanghai Masters Friday, battling back against unseeded Radek Stepanek to set up a mouthwatering Olympic rematch against Roger Federer in the semi-finals. The US Open champion, chasing a hat-trick of titles in the eastern Chinese city, was below par in losing the first set to the dangerous Czech, ranked 41, before finding his rhythm to win 4-6, 6-2, 6-3 in two hours and 18 minutes. Federer eased past Croatian 10th seed Marin Cilic 6-3, 6-4 while second seed Novak Djokovic cantered to a 6-3, 6-3 win over German veteran Tommy Haas and will meet Tomas Berdych in a semi-final line-up featuring all four top seeds. The match-up between Murray and Federer comes after two high-profile duels in the space of just a few weeks. The Swiss drew first blood, winning the Wimbledon crown in July but Murray demolished Federer to take Olympic gold. "Obviously more has happened for him in the last three months than for me. He had the breakthrough victory, if you like to call it that way, at the (US) Open. The Olympics was too, to some degree," said world number one Federer. "Some people still weren't happy with that. It's amazing to see him back it up at the Open. I assume he's very confident right now and probably playing with a little bit less pressure. Then again, that can go either way."