//
// __acrt_get_windowing_model_policy from 0x180138e84 to 0x180138ef0 (108 bytes)
//
// 4 xrefs:
// > __acrt_can_show_message_box @ 0x180135d40
// > unknown_libname_70 @ 0x180139373
// > ??> @ 0x180203740
// > ??> @ 0x18020374c
//
// 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
//
__int64 _acrt_get_windowing_model_policy()
{
unsigned __int32 v0; // ebx
int v2; // [rsp+30h] [rbp+8h] BYREF
v0 = dword_1801F5590;
if ( !dword_1801F5590 )
{
v0 = 2;
v2 = 2;
if ( (NtCurrentPeb()->ProcessParameters->Flags & 0x80000000) == 0 )
_acrt_AppPolicyGetWindowingModelInternal((__int64)&v2);
if ( v2 != 1 )
{
if ( v2 == 2 )
{
v0 = 1;
}
else if ( v2 == 3 )
{
v0 = 3;
}
else
{
v0 = 4;
}
}
_InterlockedExchange(&dword_1801F5590, v0);
}
return v0;
}