Newer
Older
AMI-Aptio-BIOS-Reversed / MdeModulePkg / Core / DxeIplPeim / DxeIplDebugPrint.c
@Ajax Dong Ajax Dong 2 days ago 885 bytes Full restructure
/* DxeIplDebugPrint @ 0xffc1552b size=0x62 */
int __thiscall DxeIplDebugPrint(_DWORD *this)
{
  int v1; // esi
  int v2; // ebp
  _DWORD *v3; // edi
  int v4; // ebx
  _DWORD *this_1; // [esp+0h] [ebp-4h] BYREF

  this_1 = this; /*0xffc1552b*/
  if ( sub_FFC163A4(&this_1) >= 0 ) /*0xffc15536*/
  {
    v1 = this_1[1]; /*0xffc1553d*/
    v2 = this_1[2]; /*0xffc15540*/
    if ( v1 ) /*0xffc15545*/
    {
      v3 = (_DWORD *)sub_FFC1634F(12 * v1); /*0xffc15553*/
      v4 = v2 + 16 * v1; /*0xffc15558*/
      do /*0xffc1557a*/
      {
        v4 -= 16; /*0xffc1555a*/
        *v3 = -2147483632; /*0xffc1555d*/
        v3[2] = &off_FFC18A4C; /*0xffc15565*/
        v3[1] = v4; /*0xffc1556c*/
        sub_FFC16201(v3); /*0xffc1556f*/
        v3 += 3; /*0xffc15574*/
        --v1; /*0xffc15577*/
      }
      while ( v1 ); /*0xffc1557a*/
    }
  }
  return sub_FFC16201(&unk_FFC18A54);
}