Comey could have (maybe he should have) sent the case to a grand jury that would likely indict Hillary, handing Trump the presidency. Clearly Comey didn't want to do that.
Even with Comey's actions, H could still have easily won the three gun-lovers' states if she had not been so extreme on the gun issue.