Function at 0x5abfc0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5abfc8
push ecx
xor eax, eax
push ebp
push 0x5ac1fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0xe8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0xc]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0xc]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5ac214
mov ecx, dword [eax]
call dword [ecx + 0x3c]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x5ac300
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x5ac324
mov eax, dword [ebp - 0xc]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x5ac132
inc dword [ebp - 8]
mov edx, 0x5ac340
mov eax, dword [ebp - 0xc]
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 - 0x14]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa98]
mov ecx, dword [ebp - 8]
xor edx, edx
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5ac360
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa98]
mov ecx, dword [ebp - 8]
mov edx, 1
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov edx, 0x5ac378
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x1c]
mov edx, 0x5ac390
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x5ac10b
push 0x5ac3a0
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa98]
mov ecx, dword [ebp - 8]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
jmp 0x5ac12a
push 0x5ac3b4
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa98]
mov ecx, dword [ebp - 8]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TStringGrid_SetCells_qqriix20System_UnicodeString
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0xc]
cmp byte [eax + 0xad], 0
je 0x5ac057
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
cmp dword [ebp - 8], 0
jle 0x5ac198
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov edx, 0x5ac3c8
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x20]
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xaa0]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
inc edx
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa98]
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
jmp 0x5ac1df
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x5ac3c8
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x28]
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xaa0]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xa98]
mov edx, 2
call sub.vcl260.bpl__Vcl_Grids_TCustomGrid_SetRowCount_qqri
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ac201
lea eax, [ebp - 0x2c]
mov edx, 8
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret