//
// sub_B9F5A4 from 0xb9f5a4 to 0xb9f630 (140 bytes)
//
// 1 xrefs:
// > sub_B715DC @ 0xb71720
//
// 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_B9F5A4(__int64 a1)
{
unsigned int v1; // w19
int v3; // w0
unsigned int v4; // w1
v1 = 1;
if ( *(_QWORD *)(a1 + 1040) != 2 )
return v1;
v3 = dword_1231028;
if ( dword_1231028 == -1 )
{
v4 = socket(10, 2, 0);
if ( v4 == -1 )
{
dword_1231028 = 0;
return 0;
}
dword_1231028 = 1;
sub_B99144(0, v4);
v3 = dword_1231028;
}
return v3 > 0;
}