CmDeleteDevicePanelRegKey

__int64 __fastcall CmDeleteDevicePanelRegKey(__int64 a1, const wchar_t *a2, int a3){
  __int64 v6; 
  __int64(__fastcall *v7)(__int64, const wchar_t *, __int64); 
  int v8; 
  unsigned int v9; 
  unsigned int v10; 
  int v11; 
  int v12; 
  unsigned int v13; 
  INT64 result[2]; 
  int v16; 
  int v17; 
  char v18; 
  memset((INT64)result, 0i64);
  v7 = *(__int64(__fastcall **)(__int64, const wchar_t *, __int64))(a1 + 504);
  v17 = 0;
  v16 = a3;
  v18 = 1;
  if( v7 )
  {
    v8 = v7(a1, a2, 6i64);
    if( v8 == -1073741822 )
    {
      v7 = 0i64;
    }
    else
    {
      if( v8 == -1073741536 )
        return LODWORD(result[0]);
      if( v8 )
        return(unsigned int)-1073741595;
    }
  }
  v9 = CmDeleteDevicePanelRegKeyWorker(a1, a2, v16, v6, v18);
  v10 = v9;
  if( !v7 )
    return v10;
  LODWORD(result[0]) = v9;
  v11 = v7(a1, a2, 6i64);
  v12 = v11;
  if( v11 == -1073741822 )
    return v10;
  if( v11 == -1073741536 )
    return LODWORD(result[0]);
  v13 = v10;
  if( v12 )
    return(unsigned int)-1073741595;
  return v13;
}

Referenced by:

CmDeleteDevicePanelWorker