


4.46 patched

.text:00504538 8D 45 F0                             lea     eax, [ebp+var_10]
.text:0050453B 8A 15 A0 74 53 00                    mov     dl, byte_5374A0
.text:00504541 E8 1A 07 F0 FF                       call    unknown_libname_79 ; BDS 2005-2007 and Delphi6-7 Visual Component Library
.text:00504546 8B 45 F0                             mov     eax, [ebp+var_10]

.text:00504549 90                                   nop
.text:0050454A 8B 0D 60 4E 53 00                    mov     ecx, lpxxMultipler
.text:00504550 80 39 FA                             cmp     byte ptr [ecx], 0FAh
.text:00504553 73 22                                jnb     short loc_504577
.text:00504555 FF 75 F0                             push    [ebp+var_10]
.text:00504558 8B 0D 98 74 53 00                    mov     ecx, CurRow
.text:0050455E 0F B7 15 94 74 53 00                 movzx   edx, CurCol
.text:00504565 A1 08 4A 53 00                       mov     eax, lpObj
.text:0050456A 8B 00                                mov     eax, [eax]
.text:0050456C 8B 80 88 06 00 00                    mov     eax, [eax+688h]
.text:00504572 E8 B9 55 FD FF                       call    @Grids@TStringGrid@SetCells
.text:00504577
.text:00504577                      loc_504577:                             ; CODE XREF: ScanFunc+3Bj
.text:00504577 66 C7 05 68 74 53 00 00 00           mov     word ptr byte_537468, 0

.text:00504580 0F B7 05 94 74 53 00                 movzx   eax, CurCol
.text:00504587 0F B7 15 C8 44 53 00                 movzx   edx, word_5344C8
.text:0050458E 83 EA 01                             sub     edx, 1
.text:00504591 71 05                                jno     short loc_504598
.text:00504593 E8 0C F6 EF FF                       call    System_Error_5
.text:00504598
.text:00504598                      loc_504598:                             ; CODE XREF: ScanFunc+79j
.text:00504598 3B C2                                cmp     eax, edx
.text:0050459A 7D 11                                jge     short loc_5045AD
.text:0050459C 66 83 05 94 74 53 00 01              add     CurCol, 1
.text:005045A4 73 05                                jnb     short loc_5045AB
.text:005045A6 E8 F9 F5 EF FF                       call    System_Error_5
.text:005045AB
.text:005045AB                      loc_5045AB:                             ; CODE XREF: ScanFunc+8Cj
.text:005045AB EB 67                                jmp     short loc_504614

.text:005045AD                      loc_5045AD:                             ; CODE XREF: ScanFunc+82j
.text:005045AD 66 C7 05 94 74 53 00 00              mov     CurCol, 0
.text:005045B6 A1 08 4A 53 00                       mov     eax, lpObj
.text:005045BB 8B 00                                mov     eax, [eax]
.text:005045BD 8B 80 88 06 00 00                    mov     eax, [eax+688h]
.text:005045C3 8B 90 4C 02 00 00                    mov     edx, [eax+24Ch]
.text:005045C9 83 C2 01                             add     edx, 1

.text:005045CC 8B 0D 60 4E 53 00                    mov     ecx, lpxxMultipler
.text:005045D2 80 39 FA                             cmp     byte ptr [ecx], 0FAh
.text:005045D5 72 09                                jb      short loc_5045E0
.text:005045D7 05 4C 02 00 00                       add     eax, 24Ch
.text:005045DC 89 10                                mov     [eax], edx
.text:005045DE EB 05                                jmp     short loc_5045E5
.text:005045E0
.text:005045E0                      loc_5045E0:                             ; CODE XREF: ScanFunc+BDj

.text:005045E0 E8 7F 33 FD FF                       call    @Grids@TCustomGrid@SetRowCount
.text:005045E5
.text:005045E5                      loc_5045E5:                             ; CODE XREF: ScanFunc+C6j
.text:005045E5 83 05 98 74 53 00 01                 add     CurRow, 1
.text:005045EC 73 05                                jnb     short loc_5045F3
.text:005045EE E8 B1 F5 EF FF                       call    System_Error_5
.text:005045F3
.text:005045F3                      loc_5045F3:                             ; CODE XREF: ScanFunc+D4j
.text:005045F3 8B 15 98 74 53 00                    mov     edx, CurRow
.text:005045F9 85 D2                                test    edx, edx

---------------------------------------------------------------------------------------

4.46 orig

.text:00504559                      loc_504559:                             ; CODE XREF: ScanFunc+3Aj
.text:00504559 0F B7 15 94 74 53 00                 movzx   edx, word_537494
.text:00504560 A1 08 4A 53 00                       mov     eax, lpObj
.text:00504565 8B 00                                mov     eax, [eax]
.text:00504567 8B 80 88 06 00 00                    mov     eax, [eax+688h]
.text:0050456D E8 BE 55 FD FF                       call    @Grids@TStringGrid@SetCells
.text:00504572 C6 05 69 74 53 00 00                 mov     byte_537469, 0
.text:00504579 C6 05 68 74 53 00 00                 mov     byte_537468, 0
.text:00504580 0F B7 05 94 74 53 00                 movzx   eax, CurCol
.text:00504587 0F B7 15 C8 44 53 00                 movzx   edx, word_5344C8
.text:0050458E 83 EA 01                             sub     edx, 1
.text:00504591 71 05                                jno     short loc_504598
.text:00504593 E8 0C F6 EF FF                       call    System_Error_5
.text:00504598
.text:00504598                      loc_504598:                             ; CODE XREF: ScanFunc+79j
.text:00504598 3B C2                                cmp     eax, edx
.text:0050459A 7D 11                                jge     short loc_5045AD
.text:0050459C 66 83 05 94 74 53 00 01              add     CurCol, 1
.text:005045A4 73 05                                jnb     short loc_5045AB
.text:005045A6 E8 F9 F5 EF FF                       call    System_Error_5
.text:005045AB
.text:005045AB                      loc_5045AB:                             ; CODE XREF: ScanFunc+8Cj
.text:005045AB EB 67                                jmp     short loc_504614

.text:005045AD                      loc_5045AD:                             ; CODE XREF: ScanFunc+82j
.text:005045AD 66 C7 05 94 74 53 00 00              mov     CurCol, 0
.text:005045B6 A1 08 4A 53 00                       mov     eax, lpObj
.text:005045BB 8B 00                                mov     eax, [eax]
.text:005045BD 8B 80 88 06 00 00                    mov     eax, [eax+688h]
.text:005045C3 8B 90 4C 02 00 00                    mov     edx, [eax+24Ch]
.text:005045C9 83 C2 01                             add     edx, 1
.text:005045CC 71 05                                jno     short loc_5045D3
.text:005045CE E8 D1 F5 EF FF                       call    System_Error_5
.text:005045D3
.text:005045D3                      loc_5045D3:                             ; CODE XREF: ScanFunc+B4j
.text:005045D3 A1 08 4A 53 00                       mov     eax, lpObj
.text:005045D8 8B 00                                mov     eax, [eax]
.text:005045DA 8B 80 88 06 00 00                    mov     eax, [eax+688h]
.text:005045E0 E8 7F 33 FD FF                       call    @Grids@TCustomGrid@SetRowCount
.text:005045E5 83 05 98 74 53 00 01                 add     CurRow, 1
.text:005045EC 73 05                                jnb     short loc_5045F3
.text:005045EE E8 B1 F5 EF FF                       call    System_Error_5
.text:005045F3
.text:005045F3                      loc_5045F3:                             ; CODE XREF: ScanFunc+D4j
.text:005045F3 8B 15 98 74 53 00                    mov     edx, CurRow
.text:005045F9 85 D2                                test    edx, edx





