Update: I reinstalled the VC++ redistributable and it fixed the issue. I downloaded the current and the 2013 for both x64 and x86 from here: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
Thanks everyone for helping.