//
// __scrt_is_managed_app from 0x1404d142c to 0x1404d147d (81 bytes)
//
// 3 xrefs:
// > __scrt_common_main_seh @ 0x1404d0fa4
// > __scrt_common_main_seh @ 0x1404d0fc6
// > ??> @ 0x1406dd7b4
//
// 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
//
bool _scrt_is_managed_app()
{
HMODULE ModuleHandleW; // rax
char *v1; // rcx
bool result; // al
ModuleHandleW = GetModuleHandleW(nullptr);
result = ModuleHandleW
&& *(_WORD *)ModuleHandleW == 23117
&& (v1 = (char *)ModuleHandleW + *((int *)ModuleHandleW + 15), *(_DWORD *)v1 == 17744)
&& *((_WORD *)v1 + 12) == 523
&& *((_DWORD *)v1 + 33) > 0xEu
&& *((_DWORD *)v1 + 62) != 0;
return result;
}