VslDetermineHotPatchType

NTSTATUS __fastcall VslDetermineHotPatchType(UINT64 a1, UINT64 a2, INT64 *a3){
  __int64 v3; 
  INT64 v5; 
  NTSTATUS v6; 
  int v7; 
  INT64 result[2]; 
  __int64 v9; 
  v3 = (unsigned int)a2;
  v5 = (unsigned int)a1;
  memset((INT64)result, 0i64);
  result[1] = v5;
  v9 = v3;
  v6 = VslpEnterIumSecureMode(2u, 67, 0i64, (INT64)result);
  if( v6 >= 0 )
  {
    LOBYTE(v7) = v9;
    *(_DWORD *)a3 = v9;
    if( (v7 & 1) != 0 )
    {
      _InterlockedIncrement(&dword_140C471A4);
      v7 = *(_DWORD *)a3;
    }
    if( (v7 & 2) != 0 )
      _InterlockedIncrement(&dword_140C471A8);
  }
  return v6;
}

Referenced by:

MiLoadHotPatch
MmRegisterHotPatch