Newer
Older
AMI-Aptio-BIOS-Reversed / EarlyVideoPei / BitmapDecodeHeader.c
@Ajax Dong Ajax Dong 2 days ago 489 bytes Init
_DWORD *__fastcall BitmapDecodeHeader(int n2, void *count, char *i)
{
  _DWORD *Pool; // eax
  _DWORD *Pool_1; // esi
  char *dst; // eax

  Pool = (_DWORD *)PeiAllocatePool((void *)0x14);
  Pool_1 = Pool;
  if ( !Pool )
    return 0;
  *Pool = n2;
  Pool[1] = count;
  if ( (int)count > 0 )
  {
    dst = (char *)PeiAllocatePool(count);
    Pool_1[2] = dst;
    if ( !dst )
      return 0;
    CopyMem(dst, i, (unsigned int)count);
  }
  Pool_1[3] = 0;
  Pool_1[4] = 0;
  return Pool_1;
}