I figured it out using Dependency Walker. Turns out the problem was ucrtbased.dll. Thanks for the great extensions!