//
// _invalid_parameter from 0x180132cec to 0x180132d9a (174 bytes)
//
// 2 xrefs:
// > _invalid_parameter_noinfo @ 0x180132db0
// > ??> @ 0x1802030f8
//
// 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 invalid_parameter(
wchar_t *Expression,
wchar_t *FunctionName,
wchar_t *FileName,
unsigned int LineNo,
uintptr_t Reserved)
{
__int64 v9; // rax
__int64 (__fastcall *v10)(wchar_t *, wchar_t *, wchar_t *, _QWORD, uintptr_t); // rax
__int64 (__fastcall *v12)(wchar_t *, wchar_t *, wchar_t *, _QWORD, uintptr_t); // r10
v9 = _acrt_getptd_noexit(Expression);
if ( v9 )
{
v10 = *(__int64 (__fastcall **)(wchar_t *, wchar_t *, wchar_t *, _QWORD, uintptr_t))(v9 + 952);
if ( v10 )
return v10(Expression, FunctionName, FileName, LineNo, Reserved);
}
v12 = (__int64 (__fastcall *)(wchar_t *, wchar_t *, wchar_t *, _QWORD, uintptr_t))__ROR8__(
qword_1801F4D48 ^ _security_cookie,
_security_cookie & 0x3F);
if ( !v12 )
invoke_watson(Expression, FunctionName, FileName, LineNo, Reserved);
return v12(Expression, FunctionName, FileName, LineNo, Reserved);
}