How Fast Reports analyzed TeeChart with DE Decompiler and MCP
Developers of commercial components live with a peculiar blind spot: the code they ship is theirs, but the code around it often is not. Third-party libraries, legacy dependencies and vendor components compiled into an application arrive without sources, and questions still have to be answered. This article follows such a task at Fast Reports, the company behind FastReport, the reporting library used by Delphi and C++Builder developers worldwide. It shows how their team combined DE Decompiler with an AI agent connected through the DE Decompiler MCP server to examine a compiled demo application and audit statically linked third-party code.
The material for this article was provided by Michael Philippenko, CEO and Founder of Fast Reports. The screenshots come from a real working session on the FastReport VCL demo application; the workflow description below is reconstructed from those screenshots.
The task: answers without sources
The FastReport VCL demo is a typical modern Delphi application. The Win32 demo statically links reporting engines, transport components for saving and sending reports, and the TeeChart charting library. When a question arises about how a third-party control behaves inside the compiled demo — which classes a library registers, how a chart is rendered onto a canvas, whether background work is hiding behind a control — the team has two traditional options: ask the vendor and wait, or open the binary in a disassembler and read raw assembly for hours.
Fast Reports builds reporting components themselves, so compatibility questions with other vendors' components are routine: missing source access, undocumented behavior, version differences. What their team needed was a way to turn a compiled Win32 executable back into readable Delphi-like code quickly, without sending the binary anywhere and without weeks of manual assembly reading.
Reading the binary: from forms to the frxChart unit
DE Decompiler opens the demo executable and reconstructs the project structure: units, classes and their members. The tree in the screenshot below shows the recovered frxChart unit with TfrxChartObject, TfrxSeriesItem, TfrxSeriesData and the expanded TfrxChartView class. Alongside recognized names such as Create, LoadContentFromDictionary, SaveContentToDictionary, UpdateSeriesData, AddSeries and AfterPrint, the listing also contains generated names like Proc_3252_13 — routines whose identities the compiler did not preserve and the knowledge bases did not resolve. That mix of recovered and generated identifiers is exactly what a real analysis session looks like.
Selecting Draw_D979BC in the tree opens the decompiled body of TfrxChartView.Draw — the method that paints a chart into a report. The listing reconstructs the control flow: early exits on failed state checks, a guarded block that saves the canvas state with SaveDC, creates a clipping region with CreateRectRgn and IntersectClipRect, calls into the chart engine through TCustomTeePanel.DrawToMetaCanvas, and restores the device context afterwards. Field accesses that the binary does not describe appear as generated names (Self.Field_25A), and unresolved routines keep their addresses — the listing stays honest about what the executable does and does not reveal.
Handing the binary to an agent: the MCP server
The second half of the workflow moves the same analysis into an AI coding agent. The separately available MCP Server plugin lets an agent list modules, classes and procedures and read recovered code and string references from the open project. The agent runs inside the IDE — in this session, the Kai chat panel docked in RAD Studio — and works with the same analysis database the developer sees.
Because the agent reads recovered Delphi-like code instead of raw bytes, it can answer structural questions directly. In the session shown below, the agent reported how the demo was investigated: the executable was processed through DE Decompiler, the agent found library classes by inspecting module indices, and the charting library was mapped into a table of key classes with their module references — TCustomChart, TChart and TCustomChartLegend from VCLTee.Chart, the series and axes classes from the TeeChart engine units, and the canvas classes from TeeCanvas. The agent then continued into a thread-safety audit: searching roughly 2,100 recovered functions for thread-related patterns — TThread, critical sections, Interlocked operations, Synchronize calls — to identify execution paths worth reviewing.
In the session shown here, the agent inspected module indices to locate library classes. MCP Server 2.1.0 adds unit and class name filtering to vb_list_modules and text search within a selected module through vb_search_module_code.
The next screenshot shows Fast Reports’ own source for TfrxChartView.Draw. Its nested PrintChart procedure calls frThreadSynchronize(DrawOnMetaFile), then draws the result to the canvas with Canvas.StretchDraw. The developer can compare this specific synchronization call with the recovered listing and the agent’s report.
Local decompilation and AI model choice
DE Decompiler’s built-in engine analyzes the executable on the developer’s machine. AI Helper and MCP Server are optional. The client configuration and the selected model determine which recovered material the model receives and where it is processed. A team can select a local model to process that material on its own machine.
In their own words
Sometimes, even in routine development — outside the specific business of researching someone else's code — you need to look inside third-party components and modules. As component developers, we face this quite often: compatibility with other vendors' components, no access to source code. Solving such tasks requires specific skills, low-level knowledge, and, above all, time. Having a tool like DE Decompiler in our arsenal considerably reduces that time.
DE Decompiler packs powerful heuristics that restore code to a state any Delphi developer can read, where "obscure" calls turn into familiar virtual method and RTL function calls. No complex setup and no learning curve — everything works in just a few clicks. A fast, fully offline decompilation engine that never sends your projects to third-party servers. And DE Decompiler can do more than open code: it can also protect it with the built-in code obfuscator.
And of course, the AI integration — from the simple one-click "clean this up" mode to a fully-fledged MCP integration that works with most agents, such as OpenCode, Kimi Code, and Kai, as well as local models. This opens up the tool in a completely new way: fully autonomous analysis and code restoration. The agent receives the recovered fragments and brings them to a working state.
For us, DE Decompiler has become a powerful assistant for solving complex, specialized tasks.
— Michael Philippenko, CEO and Founder, Fast Reports
Try the workflow yourself
Free Lite lets you load an application, inspect its forms, disassembly and string references. Commercial licenses add decompilation to Delphi-like Pascal, export tools and AI Helper. The MCP Server plugin is available separately. Start with an application written in Delphi or a supported C++Builder build.
Download Free Lite · Licenses and pricing · AI Helper and code privacy · Read the manual