Function at 0x580dd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x580dd8
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x581804
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov eax, dword [eax + 0x2f0]
dec eax
test eax, eax
jle 0x580eb1
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 1
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 0xc]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 0xc]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 0xc]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 0xc]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 0xc]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 0xc]
mov edx, 5
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x580e18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58c]
mov eax, dword [eax + 0x2d8]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x41c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x58181c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5818d4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x58197c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581a0c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581a64
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581ab4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581aec
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581b30
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov eax, dword [ebp - 0x2c]
push eax
mov edx, 0x581b6c
mov eax, dword [ebp - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_First_qqrv
jmp 0x581077
mov edx, 0x581b8c
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x34]
push 0x581bac
mov edx, 0x581bc0
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x38]
push 0x581bd8
mov edx, 0x581bec
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x40]
push eax
mov edx, 0x581c04
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x3c]
pop edx
call fcn.006ff580
push dword [ebp - 0x3c]
lea eax, [ebp - 0x30]
mov edx, 5
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58c]
mov eax, dword [eax + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0xad], 0
je 0x580fc8
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581c1c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov eax, dword [ebp - 0x48]
push eax
mov edx, 0x581b6c
mov eax, dword [ebp - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x58115b
mov edx, 0x581c9c
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
cmp dword [ebp - 0x4c], 0
jne 0x581136
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e4]
or edx, 0xffffffff
mov ecx, dword [eax]
call dword [ecx + 0x134]
jmp 0x58115b
mov edx, 0x581c9c
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5e4]
mov ecx, dword [eax]
call dword [ecx + 0x134]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x594]
mov eax, dword [eax + 0x304]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581cc0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov eax, dword [ebp - 0x50]
push eax
mov edx, 0x581b6c
mov eax, dword [ebp - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x581226
mov edx, 0x581d40
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.006ffe38
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x594]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x41c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x548]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581d64
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581dc8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581e3c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x581fa8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582060
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5820d0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582124
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5821a8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x58238c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x58249c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5825c0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582744
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582850
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582a30
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582ae8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582c70
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582d7c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x582f58
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5830ac
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5830c4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5830d4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583224
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5833bc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5834cc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5835f0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583724
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5838ac
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583950
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583978
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583998
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583a3c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583b98
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583bf8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583c54
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583ca4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583d0c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583d4c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583e60
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583ea8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583f08
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583f88
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x583fdc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x584038
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x584088
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5840dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x584160
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5841dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x584220
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5842b8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x28]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5842c8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov ecx, dword [eax + 0x2bc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4e8]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov eax, dword [ebp - 0x5c]
push eax
mov edx, 0x581b6c
mov eax, dword [ebp - 0x28]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_First_qqrv
jmp 0x581792
inc dword [ebp - 8]
mov edx, 0x584318
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 8]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x584330
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 8]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x58434c
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 8]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x584368
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 8]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x584380
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
cmp dword [ebp - 0x1c], 0
jne 0x58171b
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
jmp 0x581727
mov eax, dword [ebp - 0x1c]
call sub.rtl260.bpl__System_Sysutils_StrToFloat_qqrx20System_UnicodeString
fstp qword [ebp - 0x18]
wait
fld qword [ebp - 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x70]
mov eax, 0x584398
call sub.rtl260.bpl__System_Sysutils_FormatFloat_qqrx20System_UnicodeStringg
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 8]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5843b0
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x74]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov ecx, dword [ebp - 8]
mov edx, 5
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x28]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x28]
cmp byte [eax + 0xad], 0
je 0x58162b
cmp dword [ebp - 8], 0
jle 0x5817ba
mov edx, dword [ebp - 8]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
cmp dword [ebp - 8], 0
jne 0x5817d3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x590]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x548]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58180b
lea eax, [ebp - 0x74]
mov edx, 0x13
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
ret