diff --git a/RpcDecompiler/RpcDecompiler.cpp b/RpcDecompiler/RpcDecompiler.cpp index 77afb21..09d5e9f 100644 --- a/RpcDecompiler/RpcDecompiler.cpp +++ b/RpcDecompiler/RpcDecompiler.cpp @@ -39,7 +39,6 @@ extern "C" { BOOL __fastcall RpcDecompilerPrintOneProcedure(VOID* pRpcDecompilerCtxt, UINT ProcIndex, std::list& listProcType, std::ostringstream& ossProc); BOOL __fastcall RpcDecompilerDecodeOneProcedureInlined(VOID* pContext, UINT ProcIndex, IdlFunctionDesc& IdlFunctionDesc, std::list& listProcType); BOOL __fastcall RpcDecompilerPrintOneProcedureInlined(VOID* pContext, UINT ProcOffset, IdlFunctionDesc& IdlFunctionDesc, std::list& listProcType, std::ostringstream& ossProc); - BOOL __fastcall RpcDecompilerPrintHiddenFUProcedure(VOID* pRpcDecompilerCtxt, UINT * procOffset, std::list& listProcType, std::ostringstream& ossProc); BOOL __fastcall RpcDecompilerPrintAllProceduresNew(VOID* pRpcDecompilerCtxt); @@ -445,128 +444,6 @@ End: return (bResult); } - - BOOL __fastcall RpcDecompilerPrintHiddenFUProcedure(VOID* pContext, UINT * procOffset, std::list& listProcType, std::ostringstream& ossProc) - { - UINT paramSizeInBytes = RPC_DECOMPILER_INVALID_PARAM_SIZE; - BOOL bResult = FALSE; - RpcDecompilerCtxt_T* pRpcDecompilerCtxt = (RpcDecompilerCtxt_T*)pContext; - - UINT paramOffset = 0; - UINT numParam = 0; - BOOL isReturnParam = FALSE; - BOOL nextIsReturnParam = FALSE; - UINT sizeOfProcDescr = 0; - - IdlFunctionDesc IdlFunctionDesc; - - - if (pRpcDecompilerCtxt == NULL) goto End; - if (pRpcDecompilerCtxt->pRpcViewHelper == NULL) goto End; - if (pRpcDecompilerCtxt->pRpcDecompilerInfo == NULL) goto End; - if (pRpcDecompilerCtxt->pRpcDecompilerInfo->pProcFormatString == NULL) goto End; - - RVA_T pFunction = pRpcDecompilerCtxt->pRpcDecompilerInfo->pProcFormatString + *procOffset; - // carriage return before display function - //ossProc << "\t/* Function 0x" << std::hex << ProcIndex<< " */"<< std::endl; - ossProc << std::endl; - //RpcDecompilerPrintFunctionDbgInfo(pContext, *procOffset, ossProc); - ossProc << "\t /* Function index : 0x" << std::hex << *procOffset; - ossProc << "\t Module Base : 0x" << (unsigned long) pRpcDecompilerCtxt->pRpcDecompilerInfo->pModuleBase; - ossProc << "\t RVA of proc in format string : 0x" << (unsigned long) ((UINT64)pFunction - pRpcDecompilerCtxt->pRpcDecompilerInfo->pModuleBase); - ossProc << " */"<