Yes, this can be done. The case was dismissed with leave to reinstate. You were then charged with the higher crime based upon a new indictment. You need a lawyer and you need to not discuss your case in this or any other public forum or with family or friends. The only person you should discuss your case with is your lawyer, whether PD or private counsel.
Let me see if I understand your situation. You were arrested for a revoked license and bonded out. 5 months later you are arrested again for possession. The revoked charge was dismissed then you were charged by Indictment with felony revoked? Yes they can do this. If your driving background shows prior revoked or suspended charges, the prosecution can upgrade the driving offense to a felony.
This answer is not legal advise. It is merely informative. In order for there to be an attorney-client relationship, a written agreement between the parties would be required.
Yes. Misdemeanor dismissed on motion of the State and felony charge filed based on the same facts. Perfectly normal. Perfectly proper. Obviously you should be retaining an attorney to represent you on this serious charge. There are many excellent criminal defense attorneys in Du Page County. Good luck with your case.