Newer
Older
AMI-Aptio-BIOS-Reversed / LnvDriverPei / _ModuleEntryPoint.c
@Ajax Dong Ajax Dong 2 days ago 1 KB Init
EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
  int v2; // eax
  int v3; // edi
  int v4; // eax
  EFI_STATUS v5; // edi

  if ( (*(int (__cdecl **)(EFI_SYSTEM_TABLE *, void *, _DWORD, _DWORD, void *))(LODWORD(SystemTable->Hdr.Signature) + 32))(
         SystemTable,
         &unk_FFE3E344,
         0,
         0,
         &unk_FFE3E3C8) < 0 )
  {
    v2 = (*(int (__cdecl **)(EFI_SYSTEM_TABLE *, void *))(LODWORD(SystemTable->Hdr.Signature) + 36))(
           SystemTable,
           &unk_FFE3E3B8);
    v3 = v2;
    if ( v2 < 0 )
    {
      sub_FFE3C296(-1, "PEI - PeiLnvSendIpmiCmdLibConstructor NotifyPpi Status = %r \n", v2);
      sub_FFE3C296(-1, "PeiLnvSendIpmiCmdLibConstructor Status = %r  \n", v3);
    }
  }
  v4 = (*(int (__cdecl **)(EFI_SYSTEM_TABLE *, void *))(LODWORD(SystemTable->Hdr.Signature) + 36))(
         SystemTable,
         &unk_FFE3E394);
  v5 = v4;
  if ( v4 < 0 )
    sub_FFE3C296(-1, "PEI - LnvDriverPEI_Init NotifyPpi Status = %r \n", v4);
  sub_FFE3C0FE(SystemTable);
  return v5;
}