//
// _invalid_parameter from 0x180132cec to 0x180132d9a (174 bytes)
//
// 2 xrefs:
// > _invalid_parameter_noinfo @ 0x180132db0
// > ??> @ 0x1802030f8
//
// 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:54:59 +0000
//
__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);
}