//
// common_assert_to_message_box from 0x180130e10 to 0x180130ed4 (196 bytes)
//
// 2 xrefs:
// > _wassert @ 0x1801315af
// > ??> @ 0x180202eac
//
// 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 __fastcall common_assert_to_message_box(wchar_t *Source, wchar_t *a2, int Value, LPCWSTR lpModuleName)
{
int v8; // eax
__int64 result; // rax
wchar_t Destination[576]; // [rsp+30h] [rbp-4A8h] BYREF
memset(Destination, 0, sizeof(Destination));
common_assert_to_message_box_build_string(Destination, 0x240u, Source, a2, Value, lpModuleName);
v8 = unknown_libname_70(Destination) - 3;
if ( !v8 )
{
raise(22);
exit(3);
}
result = (unsigned int)(v8 - 1);
if ( (_DWORD)result )
{
if ( (_DWORD)result != 1 )
abort();
}
else
{
__debugbreak();
}
return result;
}