Function at 0x6e0448
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x6e0450
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6e0736
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.006e7910
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0xc]
mov eax, 0x6e0750
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
call fcn.006e7910
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x10]
mov eax, 0x6e0774
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e0790
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e084c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e08ec
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System_Sysutils_StrToDate_qqrx20System_UnicodeString
fsub dword [0x6e0948]
fstp qword [ebp - 0x24]
wait
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x1c]
push eax
mov edx, 0x6e0958
mov eax, dword [ebp - 0x18]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x6e0978
mov eax, dword [ebp - 0x18]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
fild dword [eax + 0xa0c]
fstp qword [ebp - 0x24]
wait
push dword [ebp - 0x20]
push dword [ebp - 0x24]
mov edx, 0x6e0994
mov eax, dword [ebp - 0x18]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
lea edx, [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
mov eax, dword [ebp - 0x28]
push eax
mov edx, 0x6e09a8
mov eax, dword [ebp - 0x18]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x6e09c4
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
cmp dword [ebp - 0x2c], 0
je 0x6e06fe
mov edx, 0x6e09c4
mov eax, dword [ebp - 0x18]
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]
call sub.rtl260.bpl__System_Sysutils_StrToDate_qqrx20System_UnicodeString
fadd dword [0x6e0948]
fstp qword [ebp - 0x24]
wait
push dword [ebp - 0x20]
push dword [ebp - 0x24]
lea eax, [ebp - 0x30]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrCmp_qqrv
ja 0x6e06fe
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e09dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e084c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e0a90
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x6e09c4
mov eax, dword [ebp - 0x18]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x38]
mov ecx, 0x6e0ad0
mov edx, dword [ebp - 0x10]
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x38]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 4]
fild dword [eax + 0xa0c]
fstp qword [ebp - 0x24]
wait
push dword [ebp - 0x20]
push dword [ebp - 0x24]
mov edx, 0x6e0994
mov eax, dword [ebp - 0x18]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x530]
mov edx, dword [eax]
call dword [edx + 0x130]
lea edx, [ebp - 0x3c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
mov eax, dword [ebp - 0x3c]
push eax
mov edx, 0x6e09a8
mov eax, dword [ebp - 0x18]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x6e0ae0
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xc
jle 0x6e06fe
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e073d
lea eax, [ebp - 0x3c]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x10]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret