Function at 0x502980
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x502988
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50453e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x50435f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x46c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x470]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x450]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x460]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x478]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x47c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x480]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x484]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x494]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x458]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x49c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x498]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x454]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0x18], 0
jne 0x502c09
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5043a8
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00506ac4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
test al, al
jne 0x502c92
mov eax, dword [ebp - 4]
add eax, 0x4bc
mov edx, dword [ebp - 0x14]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
add eax, 0x4c0
mov edx, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
add eax, 0x4c4
mov edx, dword [ebp - 0x10]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
add eax, 0x4c8
mov edx, dword [ebp - 0x30]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
add eax, 0x4cc
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
add eax, 0x4d0
mov edx, dword [ebp - 0x24]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x502ce0
mov eax, dword [ebp - 4]
add eax, 0x4bc
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 4]
add eax, 0x4c0
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 4]
add eax, 0x4c4
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 4]
add eax, 0x4c8
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 4]
add eax, 0x4cc
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 4]
add eax, 0x4d0
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp al, 1
jne 0x502e51
mov eax, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0xe
je 0x502d66
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x58]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x58]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50455c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5045c8
mov eax, dword [ebp - 0x58]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x58]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x58]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 4]
call fcn.00506e0c
lea eax, [ebp - 0x80]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00506ac4
mov eax, dword [ebp - 0x80]
mov edx, 0x5045dc
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x502e51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x5c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x5c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50455c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5045c8
mov eax, dword [ebp - 0x5c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x5c]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x5c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x5c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5045f4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5045c8
mov eax, dword [ebp - 0x5c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50467c
mov eax, dword [ebp - 0x5c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x5c]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 4]
call fcn.00506e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5043a8
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x600]
cmp dword [eax + 0xc], 1
je 0x504355
mov eax, dword [ebp - 0x1c]
mov edx, 0x504690
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x503816
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
neg al
sbb eax, eax
mov edx, dword [0x730c24]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x60]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x60]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5046a0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x60]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504780
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x504834
mov eax, dword [ebp - 0x60]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50484c
mov eax, dword [ebp - 0x60]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x60]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x60]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x502fdb
mov edx, 0x50467c
mov eax, dword [ebp - 0x60]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x60]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.006d6470
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
test eax, eax
je 0x503297
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp eax, 4
je 0x503297
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp eax, 5
je 0x503297
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x404]
mov edx, dword [eax]
call dword [edx + 0x130]
test al, al
jne 0x503297
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, 0x504864
call fcn.006c3cac
fstp st(0)
jmp 0x503297
mov eax, dword [ebp - 0x60]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x5fc]
mov si, 0xffea
call sub.rtl260.bpl__System__CallDynaInst_qqrv
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x538]
mov edx, 0x504874
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x450]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x84]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x544]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x460]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov eax, dword [ebp - 0x8c]
mov ecx, 6
mov edx, 1
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov edx, dword [ebp - 0x88]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x69c]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x460]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov eax, dword [ebp - 0x94]
mov ecx, 7
mov edx, 8
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov edx, dword [ebp - 0x90]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6a0]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x464]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x98]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x98]
mov edx, 0x504884
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x503197
lea ecx, [ebp - 0x9c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004fce54
mov edx, dword [ebp - 0x9c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x540]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x5031c0
lea ecx, [ebp - 0xa0]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004fce54
mov edx, dword [ebp - 0xa0]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x554]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0xa4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x468]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0xa4], 0
je 0x503284
lea eax, [ebp - 0xa8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x474]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0xa8]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x548]
call sub.vcl260.bpl__Vcl_Mask_TCustomMaskEdit_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x468]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0xac]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x520]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, 0x504864
call fcn.006c3cac
fstp st(0)
lea eax, [ebp - 0xb0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x47c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0xb0], 0
je 0x50332d
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x47c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0xb4]
mov eax, dword [0x730d30]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jl 0x50332d
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x650]
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x134]
cmp dword [ebp - 0x34], 0
je 0x503349
mov eax, dword [ebp - 0x34]
call sub.rtl260.bpl__System_Sysutils_StrToInt_qqrx20System_UnicodeString
mov edx, eax
mov eax, dword [0x730da8]
mov eax, dword [eax]
call fcn.006b7ffc
lea eax, [ebp - 0xb8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x484]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0xb8], 0
je 0x5033df
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x484]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0xbc]
mov eax, dword [0x730c78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x5033df
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x668]
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x134]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
xor edx, edx
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0xc0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0xc0], 0
je 0x503567
lea edx, [ebp - 0xc4]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
cmp dword [ebp - 0xc4], 0
jne 0x503495
lea eax, [ebp - 0xc8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0xc8]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x503513
lea edx, [ebp - 0xd0]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
push dword [ebp - 0xd0]
push 0x504898
lea eax, [ebp - 0xd4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
push dword [ebp - 0xd4]
lea eax, [ebp - 0xcc]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0xcc]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [0x730ba4]
cmp dword [eax], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x503567
lea eax, [ebp - 0xd8]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0xd8]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x774]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0xdc], 0
je 0x503687
lea edx, [ebp - 0xe0]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
cmp dword [ebp - 0xe0], 0
jne 0x503609
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0xe4]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x503687
lea edx, [ebp - 0xec]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
push dword [ebp - 0xec]
push 0x504898
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
push dword [ebp - 0xf0]
lea eax, [ebp - 0xe8]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0xe8]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
cmp dword [ebp - 0x38], 0
je 0x5036fa
mov al, byte [0x50489c]
push eax
lea eax, [ebp - 0xf4]
push eax
lea edx, [ebp - 0xf8]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0xf8]
push eax
lea eax, [ebp - 0xfc]
mov ecx, dword [ebp - 0x38]
mov edx, 0x5048ac
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0xfc]
mov edx, 0x5048c4
pop eax
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0xf4]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x5037dd
mov eax, dword [ebp - 0x44]
mov edx, 0x5048d8
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x50371c
mov eax, dword [ebp - 0x44]
mov edx, 0x5048ec
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x5037dd
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00504ea8
cmp dword [ebp - 0x48], 0
je 0x5037dd
lea edx, [ebp - 0x100]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
cmp dword [ebp - 0x100], 0
jne 0x50378a
lea eax, [ebp - 0x104]
mov ecx, dword [ebp - 0x48]
mov edx, 0x504900
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x104]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x5037dd
push 0x504900
push dword [ebp - 0x48]
push 0x504914
lea edx, [ebp - 0x10c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
push dword [ebp - 0x10c]
lea eax, [ebp - 0x108]
mov edx, 4
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x108]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp al, 1
jne 0x503808
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x604]
mov si, 0xffea
call sub.rtl260.bpl__System__CallDynaInst_qqrv
mov eax, dword [0x730c24]
xor edx, edx
mov dword [eax], edx
jmp 0x504266
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
test al, al
jne 0x503911
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504928
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504960
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5049ac
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504a24
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x64]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504a5c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x504834
mov eax, dword [ebp - 0x64]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x504a9c
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
dec eax
jle 0x503900
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, dword [ebp - 0x18]
call fcn.006d6854
mov eax, dword [ebp - 0x64]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5043a8
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.006d6470
jmp 0x503920
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, dword [ebp - 8]
call fcn.006d6470
xor eax, eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x464]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
lea eax, [ebp - 0x110]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x110]
mov edx, 0x504884
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x5039a5
lea ecx, [ebp - 0x114]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004fce54
mov edx, dword [ebp - 0x114]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x540]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x5039ce
lea ecx, [ebp - 0x118]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004fce54
mov edx, dword [ebp - 0x118]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x554]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x468]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0x11c], 0
je 0x503a92
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x474]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x120]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x548]
call sub.vcl260.bpl__Vcl_Mask_TCustomMaskEdit_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x468]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x124]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x520]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
neg al
sbb eax, eax
mov edx, dword [0x730c24]
mov dword [edx], eax
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
test eax, eax
je 0x503b2b
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp eax, 4
je 0x503b2b
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp eax, 5
je 0x503b2b
mov dword [ebp - 0x4c], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x404]
mov edx, dword [eax]
call dword [edx + 0x130]
test al, al
jne 0x503b2b
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, 0x504864
call fcn.006c3cac
fstp st(0)
cmp dword [ebp - 0x4c], 0
jne 0x503cec
mov dl, 1
mov eax, 0x504ab0
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x503c2f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x68]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x68]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504af0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x68]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504b34
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x68]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504c44
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x68]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504c64
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x504834
mov eax, dword [ebp - 0x68]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50484c
mov eax, dword [ebp - 0x68]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x68]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x504a9c
mov eax, dword [ebp - 0x68]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
test eax, eax
jne 0x503c22
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x404]
mov edx, dword [eax]
call dword [edx + 0x130]
test al, al
jne 0x503c22
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, 0x504864
call fcn.006c3cac
fstp st(0)
mov eax, dword [ebp - 0x68]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
jmp 0x503cec
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x6c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x6c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504d74
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x6c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x504e00
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x504834
mov eax, dword [ebp - 0x6c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50484c
mov eax, dword [ebp - 0x6c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x6c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x504a9c
mov eax, dword [ebp - 0x6c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
test eax, eax
jne 0x503ce4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x404]
mov edx, dword [eax]
call dword [edx + 0x130]
test al, al
jne 0x503ce4
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov edx, 0x504864
call fcn.006c3cac
fstp st(0)
mov eax, dword [ebp - 0x6c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x47c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0x128], 0
je 0x503d82
lea eax, [ebp - 0x12c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x47c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x12c]
mov eax, dword [0x730d30]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jl 0x503d82
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x650]
mov edx, dword [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x134]
cmp dword [ebp - 0x34], 0
je 0x503d9e
mov eax, dword [ebp - 0x34]
call sub.rtl260.bpl__System_Sysutils_StrToInt_qqrx20System_UnicodeString
mov edx, eax
mov eax, dword [0x730da8]
mov eax, dword [eax]
call fcn.006b7ffc
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x484]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0x130], 0
je 0x503e34
lea eax, [ebp - 0x134]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x484]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x134]
mov eax, dword [0x730c78]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x58]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jl 0x503e34
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x668]
mov edx, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x134]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
xor edx, edx
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0x138]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0x138], 0
je 0x503fbc
lea edx, [ebp - 0x13c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
cmp dword [ebp - 0x13c], 0
jne 0x503eea
lea eax, [ebp - 0x140]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x140]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x503f68
lea edx, [ebp - 0x148]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
push dword [ebp - 0x148]
push 0x504898
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
push dword [ebp - 0x14c]
lea eax, [ebp - 0x144]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x144]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [0x730ba4]
cmp dword [eax], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x503fbc
lea eax, [ebp - 0x150]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x488]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x150]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x774]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
lea eax, [ebp - 0x154]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
cmp dword [ebp - 0x154], 0
je 0x5040dc
lea edx, [ebp - 0x158]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
cmp dword [ebp - 0x158], 0
jne 0x50405e
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov edx, dword [ebp - 0x15c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x5040dc
lea edx, [ebp - 0x164]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
push dword [ebp - 0x164]
push 0x504898
lea eax, [ebp - 0x168]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x48c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d0]
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
push dword [ebp - 0x168]
lea eax, [ebp - 0x160]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x160]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
cmp dword [ebp - 0x38], 0
je 0x50414f
mov al, byte [0x50489c]
push eax
lea eax, [ebp - 0x16c]
push eax
lea edx, [ebp - 0x170]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x170]
push eax
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x38]
mov edx, 0x5048ac
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov ecx, dword [ebp - 0x174]
mov edx, 0x5048c4
pop eax
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x16c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x504232
mov eax, dword [ebp - 0x44]
mov edx, 0x5048d8
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x504171
mov eax, dword [ebp - 0x44]
mov edx, 0x5048ec
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x504232
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00504ea8
cmp dword [ebp - 0x48], 0
je 0x504232
lea edx, [ebp - 0x178]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
cmp dword [ebp - 0x178], 0
jne 0x5041df
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 0x48]
mov edx, 0x504900
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x17c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x504232
push 0x504900
push dword [ebp - 0x48]
push 0x504914
lea edx, [ebp - 0x184]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
push dword [ebp - 0x184]
lea eax, [ebp - 0x180]
mov edx, 4
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x180]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x7cc]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp al, 1
jne 0x50425d
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x604]
mov si, 0xffea
call sub.rtl260.bpl__System__CallDynaInst_qqrv
mov eax, dword [0x730c24]
xor edx, edx
mov dword [eax], edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00506ac4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3d8]
mov edx, dword [eax]
call dword [edx + 0x130]
cmp al, 1
jne 0x504355
mov eax, dword [ebp - 0x30]
mov edx, 0x5045dc
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x50434d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x70]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x70]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50455c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5045c8
mov eax, dword [ebp - 0x70]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x70]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x70]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x70]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x70]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5045f4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5045c8
mov eax, dword [ebp - 0x70]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50467c
mov eax, dword [ebp - 0x70]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x70]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 4]
call fcn.00506e0c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5043a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x504548
lea eax, [ebp - 0x188]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x184]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x180]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x178]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x174]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x170]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x16c]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x164]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x15c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x158]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x154]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x148]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x140]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x13c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x138]
mov edx, 0xb
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x10c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x108]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x100]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xfc]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xf8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xf4]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xec]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xe4]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xe0]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xdc]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xd0]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xc8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xc4]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xc0]
mov edx, 0x13
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x48]
mov edx, 0x11
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret