Newer
Older
AMI-Aptio-BIOS-Reversed / UefiCpuPkg / PiSmmCommunication / PiSmmCommunicationSmm / PiSmmCommunicationSmm.c
@Ajax Dong Ajax Dong 2 days ago 1 KB Restructure the repo
/** @file
  PiSmmCommunicationSmm.c -- PiSmmCommunicationSmm

  Auto-converted from IDA decompiler output.
  Functions: 1

Copyright (c) HR650X BIOS Decompilation Project
**/

#include "PiSmmCommunicationSmm.h"


// Function: ModuleEntryPoint
EFI_STATUS
ModuleEntryPoint (
  EFI_HANDLE        ImageHandle,
  EFI_SYSTEM_TABLE *SystemTable
  )
{
  __int64 Status; // rax

  // Constructor chain: sub_504() initializes globals, sub_7EC() is the
  // module entry path, and the cleanup callbacks mirror the AutoGen teardown.
  sub_504(ImageHandle, SystemTable);
  qword_1578 = 0x8000000000000001uLL;

  if (!sub_300(&unk_1480)) {
    Status = sub_7EC();
    if (Status >= 0 || qword_1578 < 0) {
      qword_1578 = Status;
    }

    sub_B0C(&unk_1480);
    sub_3A0(&unk_1480, -1);
    sub_ACC(
      "e:\\hs\\Build\\HR6N0XMLK\\DEBUG_VS2015\\X64\\UefiCpuPkg\\PiSmmCommunication\\PiSmmCommunicationSmm\\DEBUG\\AutoGen.c",
      192,
      "((BOOLEAN)(0==1))");
    sub_ACC(
      "e:\\hs\\Build\\HR6N0XMLK\\DEBUG_VS2015\\X64\\UefiCpuPkg\\PiSmmCommunication\\PiSmmCommunicationSmm\\DEBUG\\AutoGen.c",
      207,
      "((BOOLEAN)(0==1))");
  }

  return qword_1578;
}