Newer
Older
AMI-Aptio-BIOS-Reversed / KbcEmulDxe / KbcEmulDxe_5E8.c
@Ajax Dong Ajax Dong 2 days ago 727 bytes Init
// Original function: sub_5E8
// Address: 0x5E8
// Signature: bool sub_5E8()

bool sub_5E8()
{
  unsigned __int16 v0; // bx
  __int64 v1; // r14
  char *v2; // rsi
  unsigned __int64 n0xC; // rdi
  __int64 v4; // rdx

  v0 = 0; /*0x601*/
  v1 = 0; /*0x60a*/
  v2 = (char *)&unk_11E8; /*0x60d*/
  n0xC = 0; /*0x610*/
  while ( !(unsigned __int8)sub_9A4(v2) ) /*0x61c*/
  {
    ++v1; /*0x61e*/
    n0xC += 6LL; /*0x621*/
    v2 += 6; /*0x625*/
    if ( n0xC >= 0xC ) /*0x62d*/
      return (v0 & (unsigned __int16)n43) != 0; /*0x62d*/
  }
  LOBYTE(v4) = *((_BYTE *)&unk_11E8 + 6 * v1 + 5); /*0x635*/
  v0 = sub_A74(*((unsigned __int16 *)&unk_11E8 + 3 * v1), v4); /*0x644*/
  return (v0 & (unsigned __int16)n43) != 0; /*0x665*/
}