MCPcopy Create free account
hub / github.com/KasperskyLab/hrtng / ACT_DEF

Function ACT_DEF

src/MicrocodeExplorer.cpp:797–818  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

795}
796
797ACT_DEF(show_microcode_explorer)
798{
799 func_t* pfn = get_func(get_screen_ea());
800 if (pfn == NULL) {
801 warning("Please position the cursor within a function");
802 return 0;
803 }
804
805 mba_maturity_t mmat = AskDesiredMaturity();
806 if (mmat == MMAT_ZERO)
807 return 0;
808
809 hexrays_failure_t hf;
810 mbl_array_t* mba = gen_microcode(pfn, &hf, NULL, DECOMP_NO_CACHE, mmat);
811 if (mba == NULL) {
812 warning("#error \"%a: %s", hf.errea, hf.desc().c_str());
813 return 0;
814 }
815
816 showMicrocodeExplorer(mba, true, MicroMaturityToString(mmat));
817 return 1;
818}
819
820#else
821void registerMicrocodeExplorer() {}

Callers

nothing calls this directly

Calls 3

AskDesiredMaturityFunction · 0.85
showMicrocodeExplorerFunction · 0.85
MicroMaturityToStringFunction · 0.85

Tested by

no test coverage detected