Function at 0x6978e8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x6978f0
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x697b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x404]
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, 0x697b6c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
fild dword [eax + 0xa0c]
fstp qword [ebp - 0x14]
wait
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov edx, 0x697c5c
mov eax, dword [ebp - 0xc]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
lea edx, [ebp - 0x1c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x740]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x18]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x18]
push eax
mov edx, 0x697c70
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
mov edx, 0x697c8c
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
test eax, eax
jle 0x697b08
mov edx, 0x697ca0
mov eax, dword [ebp - 0xc]
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]
lea edx, [ebp - 0x20]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x20], 0
je 0x697a1a
mov edx, 0x697ca0
mov eax, dword [ebp - 0xc]
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]
lea edx, [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 8]
mov edx, 0x697cbc
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, 0x697cd8
mov eax, dword [ebp - 0xc]
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]
lea edx, [ebp - 0x30]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x30], 0
je 0x697af5
cmp dword [ebp - 8], 0
jne 0x697a9e
mov edx, 0x697cd8
mov eax, dword [ebp - 0xc]
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]
lea edx, [ebp - 0x3c]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x3c]
call sub.rtl260.bpl__System_Sysutils_StrToFloat_qqrx20System_UnicodeString
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x38]
mov eax, 0x697cf0
call sub.rtl260.bpl__System_Sysutils_FormatFloat_qqrx20System_UnicodeStringg
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 8]
mov edx, 0x697d04
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
jmp 0x697af5
push dword [ebp - 8]
push 0x697d20
mov edx, 0x697cd8
mov eax, dword [ebp - 0xc]
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]
lea edx, [ebp - 0x48]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x48]
call sub.rtl260.bpl__System_Sysutils_StrToFloat_qqrx20System_UnicodeString
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x44]
mov eax, 0x697cf0
call sub.rtl260.bpl__System_Sysutils_FormatFloat_qqrx20System_UnicodeStringg
push dword [ebp - 0x44]
lea eax, [ebp - 8]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
mov edx, dword [ebp - 8]
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
jmp 0x697b18
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
xor edx, edx
call sub.vcl260.bpl__Vcl_Controls_TControl_SetText_qqrx20System_UnicodeString
mov eax, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x697b5a
lea eax, [ebp - 0x4c]
mov edx, 0xc
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x18]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
ret