Newer
Older
AMI-Aptio-BIOS-Reversed / StaticSkuDataDxeLightningRidgeEXRP / StaticSkuDataDxeLightningRidgeEXRP.c
@Ajax Dong Ajax Dong 2 days ago 1 KB Init
/** @file
  StaticSkuDataDxeLightningRidgeEXRP.c -- StaticSkuDataDxeLightningRidgeEXRP

  Auto-converted from IDA decompiler output.
  Functions: 1

Copyright (c) HR650X BIOS Decompilation Project
**/

#include "StaticSkuDataDxeLightningRidgeEXRP.h"


// Function: ModuleEntryPoint
EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) { EFI_STATUS result; // rax __int64 v4; // [rsp+30h] [rbp+8h] BYREF ::ImageHandle = (__int64)ImageHandle; if ( !ImageHandle ) sub_5C8( "e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 51, "gImageHandle != ((void *) 0)"); ::SystemTable = (__int64)SystemTable; if ( !SystemTable ) sub_5C8("e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 57, "gST != ((void *) 0)"); BootServices = (__int64)SystemTable->BootServices; if ( !BootServices ) sub_5C8("e:\\hs\\MdePkg\\Library\\UefiBootServicesTableLib\\UefiBootServicesTableLib.c", 63, "gBS != ((void *) 0)"); RuntimeServices = (__int64)SystemTable->RuntimeServices; if ( !RuntimeServices ) sub_5C8( "e:\\hs\\MdePkg\\Library\\UefiRuntimeServicesTableLib\\UefiRuntimeServicesTableLib.c", 47, "gRT != ((void *) 0)"); sub_608(); v4 = 0; result = (*(__int64 ( **)(void *, _QWORD, __int64 *))(BootServices + 320))(&unk_4090, 0, &v4); if ( (result & 0x8000000000000000uLL) == 0LL ) { result = (*(__int64 ( **)(__int64, void *, void *, __int64))(v4 + 16))(v4, &unk_40C8, &unk_40B0, 24); if ( (result & 0x8000000000000000uLL) == 0LL ) { result = (*(__int64 ( **)(__int64, void *, void *, __int64))(v4 + 16))(v4, &unk_40E8, &unk_40D8, 16); if ( (result & 0x8000000000000000uLL) == 0LL ) return (*(EFI_STATUS ( **)(__int64, void *, void *, __int64))(v4 + 16))(v4, &unk_9030, &unk_9020, 16); } } return result; }