I have discovered recently that I had ADHD, and possibly some other mental condition, which explain some past academic difficulties. This gave me hope that with treatment (which I will start soon) and newfound motivation, I can improve my academic results dramatically and aim for a PhD.
My opinion for now is that the plan that gives me the best chances would be to get a second master's degree containing more theory compared to my current one (computer engineering). I'm aiming for some universities I have visited, which are quite highly regarded compared to my current one.
My results have had ups and downs over the years, and would be clearly insufficient without a very good justification, which I believe my mental health problems to be. I have documentation of the mental health problems I suffered from during part of my studies. I don't plan to use these as an argument for admission, but providing that I get better results in the next semester after getting medical help, I am hoping that the admission committee won't disqualify me instantly based on my past results, and give more importance to the next semester.
One additional difficulty is that I'm nearing the end of my current degree, so I won't have another occasion to get good results. I worry that getting good grades in the last months could be insufficient to offset my less-than-stellar record.
Is a very late mental disorder diagnosis followed by a significant improvement in results likely to save my applications to selective programs? Should I lower my ambitions for the moment?