Function at 0x65cae4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x65caec
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65d106
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5bc]
xor edx, edx
call sub.vcl260.bpl__Vcl_Extctrls_TTimer_SetEnabled_qqro
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x104]
cmp dword [eax + 0xc], 0
jne 0x65cb35
mov eax, dword [0x751cd8]
call fcn.00661210
xor eax, eax
push ebp
push 0x65d022
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x670], 0
jne 0x65cbd4
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x108]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x58]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x58]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65d124
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x65d1a0
mov eax, dword [ebp - 0x58]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
mov edx, dword [0x730d84]
mov edx, dword [edx]
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x58]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x65d1c0
mov eax, dword [ebp - 0x58]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 4]
add eax, 0x670
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x108]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65d1dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65d1f8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65d2bc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65d384
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65d45c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65d4c0
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 - 0x70]
mov eax, 0x65d5a8
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x70]
push eax
mov edx, 0x65d5cc
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
pop edx
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
fadd dword [0x65d5d8]
fstp qword [ebp - 0x7c]
wait
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea edx, [ebp - 0x74]
mov eax, 0x65d5a8
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x74]
push eax
mov edx, 0x65d5e8
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
pop edx
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
mov edx, 0x65d1c0
mov eax, dword [ebp - 0x5c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x670]
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
jmp 0x65cffe
mov edx, 0x65d600
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x65d61c
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x65d638
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x65d658
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov al, byte [0x65d66c]
push eax
lea eax, [ebp - 0x84]
push eax
mov ecx, 0x65d67c
mov edx, 0x65d68c
mov eax, dword [ebp - 0x14]
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x80]
lea eax, [ebp - 0x14]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, 0x65d69c
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x88]
lea eax, [ebp - 0x1c]
push eax
mov ecx, 2
mov edx, 1
mov eax, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
lea eax, [ebp - 0x20]
push eax
mov ecx, 2
mov edx, 4
mov eax, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
lea eax, [ebp - 0x88]
push eax
mov edx, 0x65d6bc
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x94]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x94]
lea edx, [ebp - 0x90]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x90]
lea eax, [ebp - 0x8c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x8c]
mov ecx, 0x3e8
mov edx, 1
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x38]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, 0x65d6e0
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x65d6fc
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x65d710
mov eax, dword [ebp - 0x5c]
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 - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, 0x65d72c
mov eax, dword [ebp - 4]
call fcn.0065de1c
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x65cfc3
lea eax, [ebp - 0x98]
push eax
mov edx, 0x65d73c
mov eax, dword [ebp - 0x5c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0xa0]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0xa0]
lea eax, [ebp - 0x9c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x9c]
mov ecx, 0xc
mov edx, 1
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x34]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x38]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xa4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa8]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0xa8]
push eax
lea eax, [ebp - 0xac]
mov edx, dword [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, dword [ebp - 0xac]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0065ee44
fstp qword [ebp - 0x50]
wait
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x44]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00660a10
mov eax, dword [ebp - 0x3c]
mov edx, 0x65d72c
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x65cfe1
mov eax, dword [ebp - 0x40]
mov edx, 0x65d72c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x65cfec
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0065dcdc
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x108]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x108]
cmp byte [eax + 0xad], 0
je 0x65ccf6
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65d031
xor eax, eax
push ebp
push 0x65d051
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0065d74c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65d05b
cmp dword [ebp - 0x54], 1
sbb eax, eax
inc eax
test al, al
jne 0x65d076
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5bc]
mov dl, 1
call sub.vcl260.bpl__Vcl_Extctrls_TTimer_SetEnabled_qqro
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65d110
lea eax, [ebp - 0xac]
mov edx, 3
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xa0]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x9c]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x94]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x8c]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x84]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x74]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x64]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x44]
mov edx, 0x10
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret