BvgaUpdateProgressBar

VOID __stdcall BvgaUpdateProgressBar(UINT64 Percentage){
  int v1; 
  int v2; 
  __int64 v3; 
  v1 = 0;
  if( ShowProgressBar )
  {
    if( BvgaBootDriverInstalled )
    {
      if( !BvgaDisplayState )
      {
        v2 = 18 * (BvgaProgressState + (int)Percentage * dword_140C46F18) / 10000;
        if( v2 > 0 )
        {
          v3 = (unsigned int)v2;
          do
          {
            BvgaAcquireLock();
            VidSolidColorFill(
              (unsigned int)(v1 + ProgressBarLeft),
              (unsigned int)ProgressBarTop,
              (unsigned int)(v1 + ProgressBarLeft + 7),
              (unsigned int)(ProgressBarTop + 7),
              11);
            BvgaReleaseLock();
            v1 += 9;
            --v3;
          }
          while( v3 );
        }
      }
    }
  }
}

Referenced by:

BvgaIndicateProgress