0042A1B0 push ebp 0042A1B1 mov ebp, esp 0042A1B3 push ecx 0042A1B4 mov eax, [ebp+$08] ... 0042A1D0 call TListBox::Items::Add You now know the button adds something to a listbox. With manual analysis, you can rewrite a functional equivalent.
Today, it sits on the shelf like an old oscilloscope – not something you’d use for new work, but when you encounter a dusty Delphi 5 binary from two decades ago, Dede still lights up and whispers the secrets of TForm and TButton .
Load the EXE into Dede. Step 2: The "Forms" tab instantly shows MainForm contains TButton , TEdit , TListBox . Step 3: Click on Button1 . Dede lists its OnClick handler at address 0x0042A1B0 . Step 4: Switch to "Procedures", locate TMainForm.Button1Click , and view the disassembly: