CmDeleteDevicePanel

__int64 __fastcall CmDeleteDevicePanel(__int64 a1, const wchar_t *a2){
  __int64(__fastcall *v4)(__int64, const wchar_t *, __int64); 
  int v5; 
  unsigned int v6; 
  unsigned int v7; 
  int v8; 
  int v9; 
  unsigned int v10; 
  INT64 result[2]; 
  int v13; 
  memset((INT64)result, 0i64);
  v4 = *(__int64(__fastcall **)(__int64, const wchar_t *, __int64))(a1 + 504);
  if( v4 )
  {
    v5 = v4(a1, a2, 6i64);
    if( v5 == -1073741822 )
    {
      v4 = 0i64;
    }
    else
    {
      if( v5 == -1073741536 )
        return LODWORD(result[0]);
      if( v5 )
        return(unsigned int)-1073741595;
    }
  }
  v6 = CmDeleteDevicePanelWorker(a1, a2, v13);
  v7 = v6;
  if( !v4 )
    return v7;
  LODWORD(result[0]) = v6;
  v8 = v4(a1, a2, 6i64);
  v9 = v8;
  if( v8 == -1073741822 )
    return v7;
  if( v8 == -1073741536 )
    return LODWORD(result[0]);
  v10 = v7;
  if( v9 )
    return(unsigned int)-1073741595;
  return v10;
}

Referenced by:

CmAddPanelDeviceWorker