MmManagePartitionCombineMemory

INT64 __fastcall MmManagePartitionCombineMemory(UINT64 **a1, INT64 a2, INT64 a3, KPROCESSOR_MODE a4){
  ULONG_PTR *v5; 
  INT64 result; 
  UINT64 *OutputPagesCombined; 
  v5 = *a1;
  if( (*(_DWORD *)(a2 + 8) & 1) != 0 && v5 != &MiSystemPartition )
    return 3221225711i64;
  LOBYTE(OutputPagesCombined) = a4;
  LODWORD(result) = MiCombineIdenticalPages(
                      (_MI_PARTITION *)v5,
                      *(PVOID *)a3,
                      *(unsigned int *)(a3 + 8),
                      0,
                      OutputPagesCombined);
  if( (int)result >= 0 )
  {
    *(_QWORD *)(a2 + 16) = 0i64;
    return 0i64;
  }
  return result;
}

Referenced by:

NtManagePartition