Newer
Older
AMI-Aptio-BIOS-Reversed / AmiModulePkg / KbcEmulation / KbcEmulDxe / KbcEmulDxe_9EC.c
@Ajax Dong Ajax Dong 2 days ago 655 bytes Restructure the repo
// Original function: sub_9EC
// Address: 0x9EC
// Signature: char __fastcall sub_9EC(__int64 n43)

char __fastcall sub_9EC(__int64 n43)
{
  unsigned __int16 n43_1; // si
  unsigned __int16 *v2; // rbx
  __int64 n2; // rdi
  char result; // al
  __int64 v5; // rdx

  n43_1 = n43; /*0x9fb*/
  v2 = (unsigned __int16 *)&unk_11E8; /*0x9fe*/
  n2 = 2; /*0xa05*/
  do /*0xa2d*/
  {
    result = sub_9A4(v2); /*0xa0d*/
    if ( result ) /*0xa14*/
    {
      LOBYTE(v5) = *((_BYTE *)v2 + 5); /*0xa16*/
      result = sub_AD0(*v2, v5, n43_1); /*0xa20*/
    }
    v2 += 3; /*0xa25*/
    --n2; /*0xa29*/
  }
  while ( n2 ); /*0xa2d*/
  return result; /*0xa39*/
}