//
// __scrt_get_show_window_mode from 0x1404d13e8 to 0x1404d1422 (58 bytes)
//
// 3 xrefs:
// > __scrt_common_main_seh @ 0x1404d0f81
// > ??> @ 0x1406dd79c
// > ??> @ 0x1406dd7a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
WORD _scrt_get_show_window_mode()
{
WORD result; // ax
struct _STARTUPINFOW StartupInfo; // [rsp+20h] [rbp-78h] BYREF
memset(&StartupInfo, 0, sizeof(StartupInfo));
GetStartupInfoW(&StartupInfo);
result = 10;
if ( (StartupInfo.dwFlags & 1) != 0 )
return StartupInfo.wShowWindow;
return result;
}