Newer
Older
AMI-Aptio-BIOS-Reversed / PurleySktPkg / Me / Heci / Smm / HeciSmm / HeciSmm.c
@Ajax Dong Ajax Dong 2 days ago 1 KB Restructure the repo
/** @file
  HeciSmm.c -- HeciSmm

  Auto-converted from IDA decompiler output.
  Functions: 1

Copyright (c) HR650X BIOS Decompilation Project
**/

#include "HeciSmm.h"


// Function: ModuleEntryPoint
// Original build path:
//   PurleySktPkg/Me/Heci/Smm/HeciSmm/DEBUG/AutoGen.c
EFI_STATUS
ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
  __int64 v2; // rax
  EFI_STATUS v3; // rbx

  sub_560(ImageHandle, SystemTable);
  qword_3618 = 0x8000000000000001uLL;

  if ( !sub_280(&unk_3520) )
  {
    v2 = sub_D1C();
    if ( v2 >= 0 || qword_3618 < 0 )
      qword_3618 = v2;

    sub_112C(&unk_3520);
    sub_320(&unk_3520, -1);
    sub_10EC(
      "e:\\hs\\Build\\HR6N0XMLK\\DEBUG_VS2015\\X64\\PurleySktPkg\\Me\\Heci\\Smm\\HeciSmm\\DEBUG\\AutoGen.c",
      461,
      "((BOOLEAN)(0==1))");
    sub_10EC(
      "e:\\hs\\Build\\HR6N0XMLK\\DEBUG_VS2015\\X64\\PurleySktPkg\\Me\\Heci\\Smm\\HeciSmm\\DEBUG\\AutoGen.c",
      476,
      "((BOOLEAN)(0==1))");
  }

  v3 = qword_3618;
  if ( qword_3618 < 0 )
    sub_11E8();
  return v3;
}