Function at 0x5a8e34
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x5a8e3c
push ecx
xor eax, eax
push ebp
push 0x5a95f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov eax, dword [eax + 0x2f0]
dec eax
test eax, eax
jle 0x5a8fed
mov dword [ebp - 0x1c], eax
mov dword [ebp - 8], 1
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 5
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 6
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 7
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 8
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 9
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 0xa
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 0xb
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
push 0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 8]
mov edx, 0xc
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
inc dword [ebp - 8]
dec dword [ebp - 0x1c]
jne 0x5a8e78
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0xe8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5a9610
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
jmp 0x5a9520
mov edx, 0x5a9648
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x28]
mov edx, 0x5a966c
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x5a9088
mov edx, 0x5a9648
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x2c]
mov edx, 0x5a9694
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x5a9244
mov edx, 0x5a96b8
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x5a96dc
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
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, 0x5a9708
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5a96b8
mov eax, dword [ebp - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a96dc
mov eax, dword [ebp - 0x24]
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 - 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 0x5a91d1
mov edx, 0x5a97c8
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x88]
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, 0x5a97e0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5a97c8
mov eax, dword [ebp - 0x24]
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 - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
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, 0x5a984c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5a97c8
mov eax, dword [ebp - 0x24]
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 - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
lea eax, [ebp - 0x18]
mov edx, 0x5a98b8
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
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, 0x5a98d8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5a96b8
mov eax, dword [ebp - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x5a96dc
mov eax, dword [ebp - 0x24]
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 - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
jmp 0x5a9518
inc dword [ebp - 4]
lea eax, [ebp - 0x30]
push eax
mov edx, 0x5a998c
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x34]
mov ecx, 0x10
mov edx, 1
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a99ac
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a99cc
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a99ec
mov eax, dword [ebp - 0x20]
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 eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a9a08
mov eax, dword [ebp - 0x20]
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]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a9a24
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x48]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 5
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a9a40
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 6
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a9a64
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 7
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a9a84
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x54]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 8
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a9648
mov eax, dword [ebp - 0x20]
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]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 9
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a96b8
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 0xa
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a96dc
mov eax, dword [ebp - 0x20]
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 [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 0xb
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5a9aa8
mov eax, dword [ebp - 0x20]
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 [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov ecx, dword [ebp - 4]
mov edx, 0xc
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x20]
cmp byte [eax + 0xad], 0
je 0x5a9036
cmp dword [ebp - 4], 0
jle 0x5a959b
mov edx, dword [ebp - 4]
inc edx
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa88]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x13c]
mov eax, dword [0x731020]
mov eax, dword [eax]
call fcn.005d4c24
mov eax, dword [0x731020]
mov eax, dword [eax]
call fcn.005d4e3c
mov eax, dword [0x731020]
mov eax, dword [eax]
call sub.vcl260.bpl__Vcl_Forms_TCustomForm_Show_qqrv
mov eax, dword [0x730a90]
mov eax, dword [eax]
call sub.vcl260.bpl__Vcl_Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_SetForegroundWindow
jmp 0x5a95d0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa94]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
cmp dword [ebp - 0x18], 0
je 0x5a95d0
mov eax, dword [0x730bd4]
mov eax, dword [eax]
call fcn.005a2fd0
mov eax, dword [0x730bd4]
mov eax, dword [eax]
call fcn.005a3294
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a95ff
lea eax, [ebp - 0x64]
mov edx, 0x10
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x18]
mov edx, 4
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret