//
// sub_100581984 from 0x100581984 to 0x100581a30 (172 bytes)
//
// 1 xrefs:
// > sub_100551254 @ 0x100551a08
//
// 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_100581984(size_t a1, _BYTE *a2)
{
__int64 result; // x0
__int64 *v5; // x0
__int64 v6; // x22
size_t v7; // x0
result = 0;
if ( a2 && *(_QWORD *)(a1 + 96) )
{
v5 = (__int64 *)sub_10056F520(*(_QWORD *)(a1 + 96));
if ( v5 )
{
v6 = *v5;
if ( *v5 )
{
while ( 1 )
{
v7 = strlen(*(const char **)v6);
if ( sub_10057405C(*(unsigned __int8 **)v6, a2, v7) )
break;
v6 = *(_QWORD *)(v6 + 16);
if ( !v6 )
return 0;
}
sub_1005524A4(a1, "Server %s is blacklisted\n", a2);
return 1;
}
else
{
return 0;
}
}
else
{
return 0;
}
}
return result;
}