How can I stop the program before loading any of the linked DLLs?
I\'ve tried to set LoadLibraryExW function in the Break At Function debug
There is no way to do this because DLLs that your PE-executable depend on are loaded by system (not by your process) before the process is even created. The process starts only when your executable is linked with all the functions imported from other DLLs.
ADD: But of course DllMain routines are running for every DLL only when process is started and you may debug them.