MmManagePartitionCombineMemory

NTSTATUS __stdcall MmManagePartitionCombineMemory(UINT64 **a1, INT64 a2, INT64 a3, _KPROCESSOR_MODE a4){
  _MI_PARTITION *v5; 
  NTSTATUS result; 
  UINT64 *OutputPagesCombined; 

  v5 = (_MI_PARTITION *)*a1;
  if( (*(_DWORD *)(a2 + 8) & 1) != 0 && v5 != &Irp )
    return -1073741585;
  LOBYTE(OutputPagesCombined) = a4;
  result = MiCombineIdenticalPages(v5, *(PVOID *)a3, *(unsigned int *)(a3 + 8), 0, OutputPagesCombined);
  if( result >= 0 )
  {
    *(_QWORD *)(a2 + 16) = 0i64;
    return 0;
  }
  return result;
}

Referenced by:

NtManagePartition