MiApplyRequiredDriverHotPatches

INT64 __fastcall MiApplyRequiredDriverHotPatches(INT64 a1, INT64 a2, WCHAR a3){
  INT64 result; 
  unsigned int v5; 
  struct _UNICODE_STRING DestinationString; 
  DestinationString = 0i64;
  RtlInitUnicodeString(&DestinationString, 0i64, a3);
  result = MiFindHotPatchRecord(
             (_QWORD **)&MiGlobalHotPatchList,
             0i64,
             *(unsigned int *)(a1 + 120),
             *(unsigned int *)(a1 + 156),
             &DestinationString,
             0i64);
  if( (int)result >= 0 )
  {
    v5 = MiLoadHotPatch(&DestinationString);
    RtlFreeAnsiString(&DestinationString);
    return v5;
  }
  else if( (_DWORD)result == -1073741275 )
  {
    return 0i64;
  }
  return result;
}

Referenced by:

MmLoadSystemImageEx