//
// sub_62B344 from 0x62b344 to 0x62b3c6 (130 bytes)
//
// 0 xrefs:
//
// 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
//
int __fastcall sub_62B344(int a1, int a2, int a3, _DWORD *a4)
{
int v8; // r0
int v9; // r4
int result; // r0
bool v11; // zf
int v12; // [sp+8h] [bp-8h] BYREF
int v13; // [sp+Ch] [bp-4h]
v13 = 0;
if ( !a1 )
return 43;
if ( *(_BYTE *)(a1 + 937) )
{
v8 = sub_62DF3C();
if ( v8 == -1 )
{
sub_6180F8(a1, "Failed to get recent socket");
return 1;
}
else
{
v9 = v13;
*a4 = 0;
result = sub_61831C(v9, v8, a2, a3, &v12);
if ( v12 == -1 )
{
return 55;
}
else
{
v11 = result == 0;
if ( !result )
v11 = v12 == 0;
if ( v11 )
return 81;
else
*a4 = v12;
}
}
}
else
{
sub_6180F8(a1, "CONNECT_ONLY is required!");
return 1;
}
return result;
}