//
// sub_1005F1018 from 0x1005f1018 to 0x1005f10a8 (144 bytes)
//
// 3 xrefs:
// > sub_1006041F0 @ 0x100604210
// > sub_100604214 @ 0x100604234
// > sub_100604238 @ 0x100604258
//
// 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_1005F1018(__int64 a1, int *a2, __int64 a3, __int64 a4, _DWORD *a5)
{
int v8; // w8
void *v10; // [xsp+8h] [xbp-28h] BYREF
v10 = nullptr;
v8 = sub_1005F6170(a3, &v10, a1);
if ( !v10 )
return 0;
if ( !sub_1005E33FC((__int64)v10, v8, a4, a5, a2, 0) )
return 0;
sub_100588C44(v10);
return 1;
}