int __cdecl SV_GetIDString(int a1)
{
  int v1; // eax@2
  long double v2; // fst7@8
  __int16 v3; // fps@8
  char v4; // c0@8
  char v5; // c2@8
  char v6; // c3@8
  long double v7; // fst7@13
  __int16 v8; // fps@13
  char v9; // c0@13
  char v10; // c2@13
  char v11; // c3@13
  const char *v13; // [sp-28h] [bp-50h]@12
  int v14; // [sp-24h] [bp-4Ch]@12
  int v15; // [sp-20h] [bp-48h]@12
  int v16; // [sp-1Ch] [bp-44h]@12
  const void *v17; // [sp-Ch] [bp-34h]@9
  size_t v18; // [sp-8h] [bp-30h]@9
  unsigned __int16 v19; // [sp+1Ch] [bp-Ch]@12
  int v20; // [sp+20h] [bp-8h]@12
  int v21; // [sp+24h] [bp-4h]@12

  idstr_623[0] = 0;
  if ( a1 )
  {
    v1 = *(_DWORD *)a1;
    if ( *(_DWORD *)a1 == 2 )
    {
      v7 = *(float *)&sv_lan[3];
      UNDEF(v8);
      v9 = 0.0 < v7;
      v10 = 0;
      v11 = 0.0 == v7;
      if ( (HIBYTE(v8) & 0x45) != 64 )
      {
        v18 = 13;
        v17 = "VALVE_ID_LAN";
        goto LABEL_17;
      }
      if ( !*(_QWORD *)(a1 + 4) )
      {
        v18 = 17;
        v17 = "VALVE_ID_PENDING";
        goto LABEL_17;
      }
      Steam_Steam3IDtoSteam2((int)&v19, *(_DWORD *)(a1 + 4), *(_DWORD *)(a1 + 8));
      v16 = v20;
      v15 = v21;
      v14 = v19;
      v13 = "VALVE_%u:%u:%u";
      goto LABEL_19;
    }
    if ( *(_DWORD *)a1 <= 2 )
    {
      if ( v1 != 1 )
      {
LABEL_21:
        *(_DWORD *)idstr_623 = 1313558101;
        *(_DWORD *)&idstr_623[4] = 5134159;
        return (int)idstr_623;
      }
      v2 = *(float *)&sv_lan[3];
      UNDEF(v3);
      v4 = 0.0 < v2;
      v5 = 0;
      v6 = 0.0 == v2;
      if ( (HIBYTE(v3) & 0x45) != 64 )
      {
        v18 = 13;
        v17 = "STEAM_ID_LAN";
LABEL_17:
        memcpy(idstr_623, v17, v18);
        return (int)idstr_623;
      }
      if ( !*(_QWORD *)(a1 + 4) )
      {
        v18 = 17;
        v17 = "STEAM_ID_PENDING";
        goto LABEL_17;
      }
      Steam_Steam3IDtoSteam2((int)&v19, *(_DWORD *)(a1 + 4), *(_DWORD *)(a1 + 8));
      v16 = v20;
      v15 = v21;
      v14 = v19;
      v13 = "STEAM_%u:%u:%u";
LABEL_19:
      snprintf(idstr_623, 0x3Fu, v13, v14, v15, v16);
      idstr_623[63] = 0;
      return (int)idstr_623;
    }
    if ( v1 != 3 )
      goto LABEL_21;
    *(_DWORD *)idstr_623 = 1448365128;
    idstr_623[4] = 0;
  }
  return (int)idstr_623;
}