Newer
Older
AMI-Aptio-BIOS-Reversed / EarlyVideoPei / VgaDisplayBlank.c
@Ajax Dong Ajax Dong 2 days ago 422 bytes Init
bool __thiscall VgaDisplayBlank(_BYTE *this)
{
  char *v2; // edx
  char v3; // cl
  char *v4; // edx

  v2 = *(char **)this;
  if ( *(this + 4) == 8 )
  {
    v3 = *v2;
    v4 = v2 + 1;
    if ( v3 == -1 )
    {
      if ( *v4++ )
        v3 = *v4++;
    }
    *(_DWORD *)this = v4;
    *(this + 5) = v3;
    *(this + 4) = 0;
  }
  ++*(this + 4);
  return ((unsigned __int8)(1 << (8 - *(this + 4))) & *(this + 5)) != 0;
}