Newer
Older
AMI-Aptio-BIOS-Reversed / KbcEmulDxe / KbcEmulDxe_390.c
@Ajax Dong Ajax Dong 2 days ago 1 KB Init
// Original function: ModuleEntryPoint
// Address: 0x390
// Signature: EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)

EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)
{
  __int64 v3; // rcx

  ::ImageHandle = (__int64)ImageHandle; /*0x396*/
  if ( !ImageHandle ) /*0x3a3*/
    sub_88C( /*0x3b6*/
      "e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c",
      51,
      "gImageHandle != ((void *) 0)");
  ::SystemTable = (__int64)SystemTable; /*0x3bb*/
  if ( !SystemTable ) /*0x3c5*/
    sub_88C("e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 57, "gST != ((void *) 0)"); /*0x3d8*/
  BootServices = (__int64)SystemTable->BootServices; /*0x3e1*/
  if ( !BootServices ) /*0x3eb*/
    sub_88C("e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 63, "gBS != ((void *) 0)"); /*0x3fe*/
  RuntimeServices = (__int64)SystemTable->RuntimeServices; /*0x407*/
  if ( !RuntimeServices ) /*0x411*/
    sub_88C( /*0x424*/
      "e:\\hs\\MdePkg\\Library\\UefiRuntimeServicesTableLib\\UefiRuntimeServicesTableLib.c",
      47,
      "gRT != ((void *) 0)");
  sub_8CC(); /*0x429*/
  return sub_43C(v3, SystemTable); /*0x436*/
}