Function at 0x65d74c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x65d754
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x65da29
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x104]
cmp dword [eax + 0xc], 0
jne 0x65d78c
mov eax, dword [0x751cd8]
call fcn.00661210
xor eax, eax
push ebp
push 0x65d9c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x114]
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, 0x65da44
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
jmp 0x65d98a
mov edx, 0x65dab0
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x65dacc
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x65dae4
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x24]
push 0x65db00
mov edx, 0x65db10
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, 0x65db2c
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x88]
xor eax, eax
push ebp
push 0x65d978
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x108]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x1c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x1c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_GetSQL_qqrv
mov edx, 0x65db44
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x65dc18
mov eax, dword [ebp - 0x1c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
mov edx, 0x65dc38
mov eax, dword [ebp - 0x1c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
mov edx, 0x65dc58
mov eax, dword [ebp - 0x1c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
mov edx, 0x65db2c
mov eax, dword [ebp - 0x1c]
call sub.ZComponent260.bpl__Zabstractrodataset_TZAbstractRODataset_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TParam_SetAsString_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x34c]
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x118]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x65dc74
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x65dc58
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65d982
mov eax, dword [ebp - 0x18]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x114]
cmp byte [eax + 0xad], 0
je 0x65d7de
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]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65d9cd
xor eax, eax
push ebp
push 0x65d9f7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x104]
mov edx, dword [eax]
call dword [edx + 0x48]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x65da01
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x65da30
lea eax, [ebp - 0x28]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x14]
mov edx, 4
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret