//
// sub_1005E9850 from 0x1005e9850 to 0x1005e98b8 (104 bytes)
//
// 1 xrefs:
// > sub_100526FF8 @ 0x1005276f0
//
// 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_1005E9850(__int64 a1, __int64 a2)
{
if ( !a1 )
return 0;
if ( !(unsigned int)sub_1005E96E0(a1, 6, nullptr) )
return 0;
*(_QWORD *)(a1 + 32) = a2;
if ( !a2 )
return 0;
sub_1005C7C44(a2);
return 1;
}