HvpProtectBin

INT64 __fastcall HvpProtectBin(INT64 a1, UINT64 a2, VOID *a3, CHAR a4){
  unsigned int v4; 
  v4 = 0;
  if( a4 )
  {
    if( !(unsigned int)ExProtectPool(a3, (unsigned int)a2, 4ui64) )
      return(unsigned int)-1073741670;
  }
  else
  {
    ExProtectPool(a3, (unsigned int)a2, 2ui64);
  }
  return v4;
}

Referenced by:

HvpAddBin
HvpMapHiveImage
HvpRemapAndEnlistHiveBins