Hi Shayan,
The Microsoft Defender Antivirus service may have been deleted by that game app. Before repairing Microsoft Defender Antivirus and the Windows Security app, infection needs to be removed. Please download Malwarebytes Antimalware and run a scan. Eliminate every piece of malware it finds. Malwarebytes should also get rid of all adware and PUAs and browser hijackers.
https://www.malwarebytes.com/mwb-download/thankyou
Note: the Malwarebytes setup may activate the Premium trial (15-day) version. After 15 days, it switches to the free version automatically.
Post the detection report here.
Standard Disclaimer: There is a link to a non-Microsoft website. The page appears to provide accurate, safe information.