Function at 0x60ef74
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x60ef7d
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 0x10]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 0xc]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 8]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x60f26c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x80]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x14]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x14]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x60f288
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x60f30c
mov eax, dword [ebp - 0x14]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x60f23c
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x751c7c]
mov eax, dword [eax + 0x450]
mov ecx, 1
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_GetCells_qqrii
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x18], 0
jne 0x60f05b
mov dword [ebp - 0x10], 1
jmp 0x60f06f
mov eax, dword [0x751c7c]
mov eax, dword [eax + 0x450]
mov eax, dword [eax + 0x2f0]
mov dword [ebp - 0x10], eax
mov edx, 0x60f328
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x60f348
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp + 0x10]
mov edx, 0x60f360
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x60f116
push 0x60f370
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
jmp 0x60f131
push 0x60f388
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 3
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp + 0xc]
call sub.rtl260.bpl__System_Sysutils_StrToInt_qqrx20System_UnicodeString
mov edx, eax
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
mov eax, dword [eax + 0x2dc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 4
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp + 8]
mov edx, 0x60f3a0
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x60f198
push 0x60f3b0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 5
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
jmp 0x60f1b3
push 0x60f3c0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 5
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 6
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 7
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x450]
mov ecx, dword [ebp - 0x10]
mov edx, 8
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
cmp dword [ebp - 0x10], 1
jne 0x60f228
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [0x751c7c]
mov eax, dword [eax + 0x450]
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
jmp 0x60f23c
mov edx, dword [ebp - 0x10]
inc edx
mov eax, dword [0x751c7c]
mov eax, dword [eax + 0x450]
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x60f273
lea eax, [ebp - 0x2c]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp + 8]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret