//
// sub_1005E95B4 from 0x1005e95b4 to 0x1005e95e8 (52 bytes)
//
// 3 xrefs:
// > sub_10051FFFC @ 0x100520310
// > sub_100526B60 @ 0x100526c38
// > sub_1005ECF74 @ 0x1005ed064
//
// 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 sub_1005E95B4(__int64 a1, _DWORD *a2)
{
__int64 v2; // x8
__int64 (*v3)(void); // x2
if ( *(_DWORD *)a1 != *a2 )
return 0xFFFFFFFFLL;
v2 = *(_QWORD *)(a1 + 16);
if ( v2 && (v3 = *(__int64 (**)(void))(v2 + 136)) != nullptr )
return v3();
else
return 4294967294LL;
}