//
// sub_1005DBC3C from 0x1005dbc3c to 0x1005dbc90 (84 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008610b0
//
// 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_1005DBC3C(__int64 a1)
{
FILE *v2; // x0
if ( !a1 )
return 0;
if ( *(_DWORD *)(a1 + 28) )
{
if ( *(_DWORD *)(a1 + 24) )
{
v2 = *(FILE **)(a1 + 48);
if ( v2 )
{
fclose(v2);
*(_QWORD *)(a1 + 48) = 0;
*(_DWORD *)(a1 + 32) = 0;
}
}
*(_DWORD *)(a1 + 24) = 0;
}
return 1;
}