https://www.microsoft.com/en-us/down....aspx?id=40784

Download the x86 version, NOT the x64 version. It should fix the cannot load d2ex2.dll issue.