//
// sub_63EC64 from 0x63ec64 to 0x63ed06 (162 bytes)
//
// 0 xrefs:
//
// 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_63EC64(int a1)
{
void *v3; // r0
const char *v4; // r7
char *v5; // r6
char *v6; // r3
char *v7; // r0
if ( !*(_BYTE *)(a1 + 620) )
return 67;
memset((void *)(a1 + 1088), 0, 0x30u);
*(_DWORD *)(a1 + 1088) = 1;
v3 = off_ABAEAC(0x9000u);
*(_DWORD *)(a1 + 1116) = v3;
if ( !v3 )
return 27;
sub_62E0A4(a1, 0);
v4 = *(const char **)(a1 + 376);
v5 = strchr(v4, 47);
if ( v5 || (v5 = strchr(v4, 92)) != nullptr )
{
*(_DWORD *)(a1 + 1092) = v5 + 1;
v6 = off_ABAEB8(v4);
*(_DWORD *)(a1 + 1096) = v6;
if ( v6 )
{
v5[(_DWORD)v6 - *(_DWORD *)(a1 + 376)] = 0;
return 0;
}
return 27;
}
*(_DWORD *)(a1 + 1092) = v4;
v7 = off_ABAEB8(*(const char **)(a1 + 152));
*(_DWORD *)(a1 + 1096) = v7;
if ( !v7 )
return 27;
return 0;
}