//
// sub_63E714 from 0x63e714 to 0x63e7f8 (228 bytes)
//
// 2 xrefs:
// > sub_62F538 @ 0x62f67a
// > sub_62F788 @ 0x62f89c
//
// 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_63E714(_DWORD *a1, _DWORD **a2)
{
_DWORD *v3; // r6
_DWORD *v4; // r7
int result; // r0
char *v6; // r5
int v7; // t1
_WORD *v8; // r4
char *v9; // r0
_DWORD *v10; // [sp+4h] [bp-8h]
v3 = a1;
v10 = *a2;
if ( !a1 )
{
v4 = nullptr;
LABEL_13:
if ( v10 )
sub_62E200(v10, 0);
result = 0;
*a2 = v4;
return result;
}
v4 = sub_62E11C((int)sub_63E538);
result = 3;
if ( !v4 )
return result;
if ( !*v3 )
goto LABEL_13;
while ( 1 )
{
v6 = (char *)((int (*)(void))off_ABAEB8)();
if ( !v6 )
goto LABEL_18;
v8 = off_ABAEAC(8u);
if ( !v8 )
break;
v9 = strchr(v6, 58);
if ( v9 )
{
*v9 = 0;
v8[2] = strtol(v9 + 1, nullptr, 10);
}
else
{
v8[2] = 80;
}
*(_DWORD *)v8 = v6;
v6 = (char *)sub_62E140(v4, v4[1], (int)v8);
if ( !v6 )
{
off_ABAEB0(*(void **)v8);
*(_DWORD *)v8 = 0;
off_ABAEB0(v8);
LABEL_18:
sub_62E200(v4, (int)v6);
return 3;
}
v7 = v3[1];
++v3;
if ( !v7 )
goto LABEL_13;
}
off_ABAEB0(v6);
sub_62E200(v4, 0);
return 3;
}