Hello ruthiel,
http://www.d3dx9.net/d3dx9_31.dll
You can get the uxcore.dll file from the above link.
this is the source which is best for solving this sort of dll related issues.
Click the Link on this page “Run a Free DLL Scan” and it will fix it for you.