Just because the symbols are there doesn't mean the functions get called. From the other investigations (in the other thread about this), this appears to be just ETW events that fire (if the ETW profiles are enabled, e.g. by running WPR), so it makes perfect sense that the code is never run in a straight Release build.
I really don't think there's anything to see here. Apps fire tons of ETW events all the time (when a profiler is running), and the reason is to help the developer debug the application (by capturing an ETL file using e.g. WPR which will turn on these ETW and store them to a file, that you can then view in e.g. WPA). I don't know what these specific events are for (sounds like it's just to show you markers for when main gets called/exited), but I think it's a bit premature to speculate that this is somehow unique or malicious.
-2
u/ssylvan May 08 '16
As far as I can tell (at least on my machine) this is only in Debug builds (not the builds that get shipped to customers).
Maybe it hooks into some tools for helping you debug stuff during development?
(seems like it might just fire some ETW events, so unless you're actually running a profiler that records the ETW events they wouldn't do anything).