Newer
Older
AMI-Aptio-BIOS-Reversed / TxtPei / HobGetType.c
@Ajax Dong Ajax Dong 2 days ago 567 bytes Init
// Decompiled: 0xffe07366
// Function: HobGetType
// Module: TxtPei.efi (TXTPEI)

void *__fastcall HobGetType(void *buf, unsigned int n16)
{
  int v4; // eax

  if ( n16 - 1 > -1 - (int)buf ) /*0xffe07377*/
  {
    v4 = DebugPrintProtocol(); /*0xffe07379*/
    if ( v4 ) /*0xffe07380*/
      (*(void (__cdecl **)(const char *, int, const char *))(v4 + 4))( /*0xffe0738e*/
        "e:\\hs\\MdePkg\\Library\\BaseMemoryLibRepStr\\SetMemWrapper.c",
        54,
        "(Length - 1) <= (0xFFFFFFFF - (UINTN)Buffer)");
  }
  return memset(buf, n16, 255); /*0xffe073a3*/
}