Newer
Older
AMI-Aptio-BIOS-Reversed / CpRcPkg / Universal / RegAccess / Pei / RegAccessPeim / decompile_ModuleEntryPoint.json
@Ajax Dong Ajax Dong 2 days ago 2 KB Restructure the repo
{"jsonrpc": "2.0", "result": {"content": [{"type": "text", "text": "{\"addr\":\"_ModuleEntryPoint\",\"code\":\"EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)\\n{\\n  int v2; // eax\\n  int v3; // eax\\n  EFI_STATUS v4; // esi\\n  int v5; // eax\\n\\n  v2 = sub_FFDAF396(); /*0xffdaed02*/\\n  v3 = (*(int (__cdecl **)(int, void *))(*(_DWORD *)v2 + 24))(v2, &unk_FFDB09EC); /*0xffdaed0f*/\\n  v4 = v3; /*0xffdaed12*/\\n  if ( v3 < 0 ) /*0xffdaed18*/\\n  {\\n    sub_FFDAEDE9(0x80000000, \\\"\\\\nASSERT_EFI_ERROR (Status = %r)\\\\n\\\", v3); /*0xffdaed25*/\\n    v5 = sub_FFDAEDB8(); /*0xffdaed2d*/\\n    if ( v5 ) /*0xffdaed34*/\\n      (*(void (__cdecl **)(const char *, int, const char *))(v5 + 4))( /*0xffdaed42*/\\n        \\\"e:\\\\\\\\hs\\\\\\\\CpRcPkg\\\\\\\\Universal\\\\\\\\RegAccess\\\\\\\\Pei\\\\\\\\RegAccess.c\\\",\\n        61,\\n        \\\"!EFI_ERROR (Status)\\\");\\n  }\\n  return v4; /*0xffdaed4a*/\\n}\",\"refs\":[{\"addr\":\"0xffdaf396\",\"name\":\"sub_FFDAF396\"},{\"addr\":\"0xffdb09ec\",\"name\":\"unk_FFDB09EC\"},{\"addr\":\"0xffdaede9\",\"name\":\"sub_FFDAEDE9\"},{\"addr\":\"0xffdb0544\",\"name\":\"aAssertEfiError\",\"string\":\"\\nASSERT_EFI_ERROR (Status = %r)\\n\"},{\"addr\":\"0xffdaedb8\",\"name\":\"sub_FFDAEDB8\"},{\"addr\":\"0xffdb057c\",\"name\":\"aEHsCprcpkgUniv\",\"string\":\"e:\\\\hs\\\\CpRcPkg\\\\Universal\\\\RegAccess\\\\Pei\\\\RegAccess.c\"},{\"addr\":\"0xffdb0568\",\"name\":\"aEfiErrorStatus\",\"string\":\"!EFI_ERROR (Status)\"}]}"}], "structuredContent": {"addr": "_ModuleEntryPoint", "code": "EFI_STATUS ModuleEntryPoint(EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable)\n{\n  int v2; // eax\n  int v3; // eax\n  EFI_STATUS v4; // esi\n  int v5; // eax\n\n  v2 = sub_FFDAF396(); /*0xffdaed02*/\n  v3 = (*(int (__cdecl **)(int, void *))(*(_DWORD *)v2 + 24))(v2, &unk_FFDB09EC); /*0xffdaed0f*/\n  v4 = v3; /*0xffdaed12*/\n  if ( v3 < 0 ) /*0xffdaed18*/\n  {\n    sub_FFDAEDE9(0x80000000, \"\\nASSERT_EFI_ERROR (Status = %r)\\n\", v3); /*0xffdaed25*/\n    v5 = sub_FFDAEDB8(); /*0xffdaed2d*/\n    if ( v5 ) /*0xffdaed34*/\n      (*(void (__cdecl **)(const char *, int, const char *))(v5 + 4))( /*0xffdaed42*/\n        \"e:\\\\hs\\\\CpRcPkg\\\\Universal\\\\RegAccess\\\\Pei\\\\RegAccess.c\",\n        61,\n        \"!EFI_ERROR (Status)\");\n  }\n  return v4; /*0xffdaed4a*/\n}", "refs": [{"addr": "0xffdaf396", "name": "sub_FFDAF396"}, {"addr": "0xffdb09ec", "name": "unk_FFDB09EC"}, {"addr": "0xffdaede9", "name": "sub_FFDAEDE9"}, {"addr": "0xffdb0544", "name": "aAssertEfiError", "string": "\nASSERT_EFI_ERROR (Status = %r)\n"}, {"addr": "0xffdaedb8", "name": "sub_FFDAEDB8"}, {"addr": "0xffdb057c", "name": "aEHsCprcpkgUniv", "string": "e:\\hs\\CpRcPkg\\Universal\\RegAccess\\Pei\\RegAccess.c"}, {"addr": "0xffdb0568", "name": "aEfiErrorStatus", "string": "!EFI_ERROR (Status)"}]}, "isError": false}, "id": 1}