//
// sub_BB0168 from 0xbb0168 to 0xbb0228 (192 bytes)
//
// 1 xrefs:
// > sub_B7A0E0 @ 0xb7afc0
//
// 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
//
bool __fastcall sub_BB0168(__int64 a1, _BYTE *a2)
{
_BOOL4 v2; // w22
__int64 *v5; // x0
__int64 v6; // x19
char *v7; // x20
size_t v8; // x0
v2 = a2 != nullptr && *(_QWORD *)(a1 + 96) != 0;
if ( a2 == nullptr || *(_QWORD *)(a1 + 96) == 0 )
return 0;
v5 = (__int64 *)sub_B9C000(*(_QWORD *)(a1 + 96));
if ( !v5 )
return 0;
v6 = *v5;
if ( !*v5 )
return 0;
while ( 1 )
{
v7 = *(char **)v6;
v8 = strlen(*(const char **)v6);
if ( (unsigned int)sub_B94674(v7, a2, v8) )
break;
v6 = *(_QWORD *)(v6 + 16);
if ( !v6 )
return 0;
}
sub_B7B528(a1, "Server %s is blacklisted\n", a2);
return v2;
}