//
// sub_10047AA2C from 0x10047aa2c to 0x10047ab14 (232 bytes)
//
// 1 xrefs:
// > sub_100479798 @ 0x1004799ec
//
// 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_10047AA2C(__int64 a1)
{
__int64 result; // x0
int v3; // [xsp+4h] [xbp-22Ch] BYREF
_BYTE v4[512]; // [xsp+8h] [xbp-228h] BYREF
v3 = 0;
result = sub_1004AA8B8(*(_QWORD *)(a1 + 368), 0, 0);
if ( !(_DWORD)result )
{
if ( !(unsigned int)sub_10047B050(a1) )
{
while ( !(unsigned int)sub_10047B164(a1, v4, 512, &v3) )
{
if ( !(unsigned int)sub_1004C6AF4(v4) )
return 19;
sub_10045FEFC(a1, 8, (__int64)"FILE", (__int64)v4, (unsigned int)(v3 + 1), 3, 0);
if ( (unsigned int)sub_10047B050(a1) )
return 0;
}
}
return 0;
}
return result;
}