//
// unknown_libname_70 from 0x180139338 to 0x1801393dc (164 bytes)
//
// 2 xrefs:
// > common_assert_to_message_box @ 0x180130e7f
// > ??> @ 0x1802037ac
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 10:55:01 +0000
//
// Microsoft VisualC 64bit universal runtime
__int64 __fastcall unknown_libname_70(LPCWSTR lpOutputString, __int64 a2, unsigned int a3)
{
BOOL v6; // eax
bool v7; // si
__int64 parent_window; // rcx
v6 = IsDebuggerPresent();
v7 = v6;
if ( v6 )
{
if ( lpOutputString )
OutputDebugStringW(lpOutputString);
if ( (unsigned int)_acrt_get_windowing_model_policy() != 1 )
return 4;
}
if ( (unsigned int)_acrt_get_developer_information_policy() != 2 || !_acrt_can_show_message_box() )
return (unsigned int)v7 + 3;
if ( _acrt_is_interactive() )
{
parent_window = _acrt_get_parent_window();
}
else
{
a3 |= 0x200000u;
parent_window = 0;
}
return _acrt_MessageBoxW(parent_window, (__int64)lpOutputString, a2, a3);
}