//
// sub_1007C3DD0 from 0x1007c3dd0 to 0x1007c3e68 (152 bytes)
//
// 5 xrefs:
// > sub_1002075C0 @ 0x100207679
// > cocos2d::CCFileUtils::getFileDataFromZip @ 0x10043afdb
// > sub_10056E200 @ 0x10056e625
// > sub_10056E200 @ 0x10056e671
// > sub_10056E200 @ 0x10056e6b6
//
// 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_1007C3DD0(__int64 a1)
{
unsigned int v1; // ebx
__int64 v2; // r15
v1 = -102;
if ( a1 )
{
v2 = *(_QWORD *)(a1 + 320);
if ( v2 )
{
v1 = 0;
if ( !*(_QWORD *)(v2 + 192) && !*(_DWORD *)(v2 + 312) )
{
v1 = -105;
if ( *(_QWORD *)(v2 + 168) == *(_QWORD *)(v2 + 176) )
v1 = 0;
}
if ( *(_QWORD *)v2 )
free(*(void **)v2);
*(_QWORD *)v2 = 0;
if ( *(_QWORD *)(v2 + 128) == 8 )
inflateEnd((z_streamp)(v2 + 8));
free((void *)v2);
*(_QWORD *)(a1 + 320) = 0;
}
}
return v1;
}