Function at 0x650464
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor edx, edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x650990
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
xor edx, edx
call sub.vcl260.bpl__Vcl_Extctrls_TTimer_SetEnabled_qqro
xor ecx, ecx
mov edx, 0x6509a8
mov eax, 0x6509c4
call fcn.006ecc58
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d0]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6509dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x650a48
mov eax, dword [ebp - 0x30]
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
jne 0x650524
lea eax, [ebp - 0x2c]
mov edx, 0x650a64
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x2c]
mov edx, 0x650a64
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x65078c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d0]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x34]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x34]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650a74
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jl 0x65077f
inc eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650b2c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650bf8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650c78
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650d28
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650d68
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d0]
mov edx, 0x650df8
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 edx, 0x650df8
mov eax, dword [ebp - 0x3c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
fsub dword [0x650e08]
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x48]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x48]
push eax
mov edx, 0x650e18
mov eax, dword [ebp - 0x3c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x54]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x54]
push eax
mov edx, 0x650e30
mov eax, dword [ebp - 0x3c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
jmp 0x65075b
mov edx, 0x650e48
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x64]
fstp qword [ebp - 0x20]
wait
mov edx, 0x650e68
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 1
jne 0x650717
fild dword [ebp - 0x10]
fadd qword [ebp - 0x20]
fld1
fsubp st(1)
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x24]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
jmp 0x650743
fild dword [ebp - 0x10]
fadd qword [ebp - 0x20]
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x24]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x650753
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x3c]
cmp byte [eax + 0xad], 0
je 0x6506b4
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
inc dword [ebp - 0xc]
dec dword [ebp - 0x38]
jne 0x650598
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
jmp 0x650949
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d4]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650b2c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650bf8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650c78
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650e84
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x650ec4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x650f54
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, 0x650f70
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
fsub dword [0x650e08]
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x58]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x58]
push eax
mov edx, 0x650e18
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x5c]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x5c]
push eax
mov edx, 0x650e30
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
jmp 0x650931
mov edx, 0x650e48
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x64]
fstp qword [ebp - 0x20]
wait
mov edx, 0x650e68
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 1
jne 0x6508ed
fild dword [ebp - 0x10]
fadd qword [ebp - 0x20]
fld1
fsubp st(1)
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x24]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
jmp 0x650919
fild dword [ebp - 0x10]
fadd qword [ebp - 0x20]
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
lea eax, [ebp - 0x24]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_DateToStr_qqrx16System_TDateTime
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x650929
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x40]
cmp byte [eax + 0xad], 0
je 0x65088a
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
cmp dword [ebp - 0x14], 0
jle 0x65095b
mov edx, 0x650f8c
mov al, 4
call fcn.006efbe4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x650997
lea eax, [ebp - 0x5c]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x48]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x2c]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret