//
// sub_10054D588 from 0x10054d588 to 0x10054d6ec (356 bytes)
//
// 1 xrefs:
// > sub_1005653BC @ 0x1005656a0
//
// 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_10054D588(__int64 a1)
{
__int64 **v1; // x8
__int64 v2; // x19
__int64 *v3; // x22
const char *v4; // x8
const char *v5; // x9
const char *v6; // x10
const char *v7; // x11
const char *v8; // x12
const char *v9; // x16
const char *v10; // x13
void *v11; // x21
__int64 result; // x0
v1 = *(__int64 ***)(a1 + 1968);
if ( !v1 || !v1[3] )
return 0;
v2 = 0;
v3 = *v1;
if ( !*v1 )
return 0;
while ( 1 )
{
v4 = (const char *)v3[5];
if ( !v4 )
{
result = v2;
goto LABEL_26;
}
if ( *((_BYTE *)v3 + 90) )
v5 = "#HttpOnly_";
else
v5 = "";
v6 = "";
if ( *((_BYTE *)v3 + 64) )
{
if ( *v4 == 46 )
v6 = "";
else
v6 = ".";
}
if ( *((_BYTE *)v3 + 64) )
v7 = "TRUE";
else
v7 = "FALSE";
v9 = (const char *)v3[2];
v8 = (const char *)v3[3];
if ( !v8 )
v8 = "/";
if ( *((_BYTE *)v3 + 88) )
v10 = "TRUE";
else
v10 = "FALSE";
if ( !v9 )
v9 = "";
v11 = (void *)sub_1005628DC(
"%s%s%s\t%s\t%s\t%s\t%ld\t%s\t%s",
v5,
v6,
v4,
v7,
v8,
v10,
v3[6],
(const char *)v3[1],
v9);
if ( !v11 )
goto LABEL_29;
result = sub_1005747AC(v2, v11);
if ( !result )
break;
LABEL_26:
v3 = (__int64 *)*v3;
v2 = result;
if ( !v3 )
return result;
}
off_10085DEB8(v11);
LABEL_29:
sub_100574898(v2);
return 0;
}