//
// sub_10057023C from 0x10057023c to 0x1005702c0 (132 bytes)
//
// 1 xrefs:
// > sub_100549994 @ 0x100549a40
//
// 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_10057023C(__int64 a1)
{
int v1; // w8
__int64 v2; // x8
if ( *(_QWORD *)(a1 + 816) != 2 )
return 1;
v1 = dword_10085DED8;
if ( dword_10085DED8 == -1 )
{
v2 = socket(30, 2, 0);
if ( (_DWORD)v2 == -1 )
{
v1 = 0;
dword_10085DED8 = 0;
}
else
{
dword_10085DED8 = 1;
sub_10056ACC8(0, v2);
v1 = dword_10085DED8;
}
}
return v1 > 0;
}