The conservative mayor of Tehran , Mahmoud Ahmadinejad , a former hard-line militia member , appeared to be rolling to a landslide victory in the presidential runoff election as votes were being counted Saturday , after a campaign that exposed deep class divisions in Iran and a widespread desire to rid the country of corruption and cronyism .