//
// sub_1005E98B8 from 0x1005e98b8 to 0x1005e9920 (104 bytes)
//
// 2 xrefs:
// > sub_100526FF8 @ 0x100527918
// > sub_1005C22CC @ 0x1005c2914
//
// 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_1005E98B8(__int64 a1, __int64 a2)
{
if ( !a1 )
return 0;
if ( !(unsigned int)sub_1005E96E0(a1, 408, nullptr) )
return 0;
*(_QWORD *)(a1 + 32) = a2;
if ( !a2 )
return 0;
sub_1005BF904(a2);
return 1;
}