Roger Federer has moved a step closer to his 100th title on the ATP Tour, but had to work hard to beat Spaniard Fernando Verdasco at the Dubai Tennis Championships.