//
// sub_82290 from 0x82290 to 0x8230c (124 bytes)
//
// 1 xrefs:
// > sub_81840 @ 0x81968
//
// 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
//
int __fastcall sub_82290(int a1)
{
int result; // r0
int v3; // [sp+0h] [bp-228h]
int v4; // [sp+4h] [bp-224h]
int v5; // [sp+8h] [bp-220h]
int v6; // [sp+Ch] [bp-21Ch] BYREF
_BYTE v7[512]; // [sp+10h] [bp-218h] BYREF
v6 = 0;
result = sub_BBB84(*(_DWORD *)(a1 + 220), 0);
if ( !result )
{
while ( 1 )
{
if ( sub_82580(a1) || sub_825EA(a1, v7, 512, &v6, v3, v4, v5) )
return 0;
if ( !sub_BE1A6(v7) )
break;
v3 = v6 + 1;
v4 = 3;
v5 = 0;
sub_B0B08(a1, 8, "FILE", v7);
}
return 19;
}
return result;
}