Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / SouthClusterLbg / SiInit / Pei / SiInitPreMem / decompiled / ffd87dff.c
@Ajax Dong Ajax Dong 7 days ago 912 bytes Recovering names
int __thiscall ConfigureLpcOnPolicy(_BYTE *this)
{
  int result; // eax
  int v3; // esi
  int n128; // ecx
  _DWORD v5[4]; // [esp+8h] [ebp-10h] BYREF

  result = DebugPrint(64, (int)"ConfigureLpcOnPolicy()\n"); /*0xffd87e0f*/
  if ( (*(this + 3514) & 1) == 0 ) /*0xffd87e1d*/
  {
    DebugPrint(64, (int)"Disable EnhancePort8xhDecoding\n"); /*0xffd87e26*/
    sub_FFD8D48A(v5, 16); /*0xffd87e33*/
    result = sub_FFD8CA98(v5); /*0xffd87e3b*/
    v3 = 0; /*0xffd87e40*/
    while ( 1 ) /*0xffd87e42*/
    {
      n128 = v5[v3]; /*0xffd87e42*/
      if ( (_WORD)n128 == 128 && (n128 & 0x7FFF0000) == 0x100000 ) /*0xffd87e59*/
        break; /*0xffd87e59*/
      if ( (unsigned int)++v3 >= 4 ) /*0xffd87e5f*/
        return result; /*0xffd87e5f*/
    }
    *(_DWORD *)(sub_FFD8CBBA(0, 31, 0) + 4 * v3 + 132) = 0; /*0xffd87e83*/
    return sub_FFD8C497(4, 0); /*0xffd87e8d*/
  }
  return result; /*0xffd87e94*/
}