Function at 0x68bbb4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x68bd49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730e3c]
cmp dword [eax], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x68bd0c
xor eax, eax
push ebp
push 0x68bc26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, 0x68bd64
call sub.rtl260.bpl__System_Sysutils_DirectoryExists_qqrx20System_UnicodeStringo
test al, al
jne 0x68bc1c
mov eax, 0x68bd64
call sub.rtl260.bpl__System_Sysutils_CreateDir_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x68bc30
cmp dword [ebp - 0xc], 0
jle 0x68bd0c
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x134]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x10]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x10]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x68bd98
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
fild dword [eax + 0xa0c]
fstp dword [ebp - 0x14]
wait
push dword [ebp - 0x14]
mov edx, 0x68be2c
mov eax, dword [ebp - 0x10]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsSingle_qqrxf
mov edx, 0x68be40
mov eax, dword [ebp - 0x10]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsInteger_qqrxi
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x68be54
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 0x68be74
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [0x730a90]
mov eax, dword [eax]
mov eax, dword [eax + 0x5d4]
mov eax, dword [eax + 0x2d8]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x68beac
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
call sub.dbrtl260.bpl__Data_Db_TBlobField_SaveToFile_qqrx20System_UnicodeString
push 0
push 0
push 1
push 0xffffffffffffffff
mov eax, dword [sym.imp.vcl260.bpl__Vcl_Forms_Application]
mov eax, dword [eax]
mov eax, dword [eax + 0x188]
mov ecx, dword [ebp - 8]
xor edx, edx
call fcn.0068ba7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x68bd50
lea eax, [ebp - 0x18]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
ret