//
// fmt::WindowsError::WindowsError from 0x180017790 to 0x18001781f (143 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801438a8
// > ??> @ 0x1801ae6d4
//
// 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 fmt::WindowsError::WindowsError(__int64 a1, unsigned int a2, __int128 *a3)
{
const CHAR *v7; // [rsp+20h] [rbp-38h] BYREF
char v8; // [rsp+28h] [rbp-30h]
_BYTE v9[8]; // [rsp+30h] [rbp-28h] BYREF
__int64 v10; // [rsp+38h] [rbp-20h]
__int128 v11; // [rsp+40h] [rbp-18h] BYREF
*(_QWORD *)a1 = &std::exception::`vftable';
*(_OWORD *)(a1 + 8) = 0;
v7 = Buf2;
v8 = 1;
_std_exception_copy(&v7);
*(_QWORD *)a1 = &fmt::WindowsError::`vftable';
v11 = *a3;
v10 = 0;
fmt::WindowsError::init(a1, a2, &v11, v9);
return a1;
}