BiTranslateBootEntryId

INT64 __fastcall BiTranslateBootEntryId(_LIST_ENTRY *IdentifierList, UINT64 BootEntryId, _GUID *ObjectIdentifier){
  INT64 result; 
  _OWORD *v4; 
  int v5; 
  __int64 a3; 
  a3 = 0i64;
  result = BiLookupObjectByBootEntry((INT64 **)IdentifierList, BootEntryId, &a3);
  if( (int)result >= 0 )
  {
    v5 = *(_DWORD *)(a3 + 48);
    if( (v5 & 4) != 0 )
    {
      if( (v5 & 0x10) != 0 )
      {
        BiLogMessage();
        return 3221225508i64;
      }
      else
      {
        *v4 = *(_OWORD *)(a3 + 16);
      }
    }
    else
    {
      return 3221226021i64;
    }
  }
  return result;
}

Referenced by:

BiBindEfiBootManager
BiTranslateBootOrder