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

int __thiscall PeiPcdGet(void *this)
{
  int v1; // eax
  int v2; // eax
  int v3; // eax
  int v5; // [esp+0h] [ebp-4h] BYREF

  v1 = PeiServicesGet(this); /*0xffe0750a*/
  v5 = (int)&v5; /*0xffe07512*/
  v2 = (*(int (__cdecl **)(int, void *, _DWORD, _DWORD))(*(_DWORD *)v1 + 32))(v1, &unk_FFE08CD0, 0, 0); /*0xffe0751f*/
  if ( v2 < 0 ) /*0xffe07527*/
  {
    DebugPrint(0x80000000, (int)"\nASSERT_EFI_ERROR (Status = %r)\n", v2); /*0xffe07534*/
    v3 = DebugPrintProtocol(); /*0xffe0753c*/
    if ( v3 ) /*0xffe07543*/
      (*(void (__cdecl **)(const char *, int, const char *))(v3 + 4))( /*0xffe07551*/
        "e:\\hs\\MdePkg\\Library\\PeiPcdLib\\PeiPcdLib.c",
        49,
        "!EFI_ERROR (Status)");
  }
  return v5; /*0xffe0755c*/
}