//
// sub_BBA6CC from 0xbba6cc to 0xbba80c (320 bytes)
//
// 1 xrefs:
// > sub_B83394 @ 0xb83434
//
// 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_BBA6CC(_QWORD *a1)
{
_QWORD *v1; // x26
char *v2; // x23
_DWORD *v4; // x0
unsigned __int64 v5; // x2
__int64 v6; // x22
unsigned __int64 i; // x24
char *v8; // x21
void *v9; // x0
void (*v10)(void *); // x1
void (*v11)(void *); // x1
void *v12; // x0
v1 = a1 + 4096;
v2 = (char *)a1[4454];
if ( v2 )
{
v4 = (_DWORD *)a1[14];
if ( !v4 || (*v4 & 0x10) == 0 )
{
v5 = a1[183];
if ( v5 )
{
v6 = 0;
for ( i = 0; i < v5; ++i )
{
v8 = &v2[v6];
if ( *(_QWORD *)&v2[v6 + 24] )
{
j_SSL_SESSION_free();
*((_QWORD *)v8 + 3) = 0;
*((_QWORD *)v8 + 5) = 0;
off_1231008(*((void **)v8 + 10));
*((_QWORD *)v8 + 10) = 0;
off_1231008(*((void **)v8 + 9));
*((_QWORD *)v8 + 9) = 0;
off_1231008(*((void **)v8 + 14));
*((_QWORD *)v8 + 14) = 0;
off_1231008(*((void **)v8 + 13));
*((_QWORD *)v8 + 13) = 0;
off_1231008(*((void **)v8 + 12));
*((_QWORD *)v8 + 12) = 0;
off_1231008(*((void **)v8 + 11));
v9 = *(void **)&v2[v6];
v10 = off_1231008;
*((_QWORD *)v8 + 11) = 0;
v10(v9);
v11 = off_1231008;
v12 = *((void **)v8 + 1);
*(_QWORD *)&v2[v6] = 0;
v11(v12);
v2 = (char *)v1[358];
v5 = a1[183];
*((_QWORD *)v8 + 1) = 0;
}
v6 += 120;
}
}
off_1231008(v2);
v1[358] = 0;
}
}
return sub_BB9294((__int64)a1);
}