Function at 0x5593f0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x5593f8
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x559654
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x5595c4
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x69c]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
push dword [ebp - 0x1c]
push 0x559670
lea edx, [ebp - 0x28]
mov eax, dword [0x730da8]
mov eax, dword [eax]
mov eax, dword [eax + 0x6a0]
call sub.vcl260.bpl__Vcl_Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
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.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x10]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x559680
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5597d0
mov eax, dword [ebp - 0x10]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x2c]
mov eax, 0x5597e8
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x2c]
push eax
mov edx, 0x55980c
mov eax, dword [ebp - 0x10]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x559565
mov edx, 0x559824
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x10]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x10]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x559838
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x559824
mov eax, dword [ebp - 0x10]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x10]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x10]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [0x730c4c]
cmp dword [eax], 1
sbb eax, eax
inc eax
cmp al, 1
je 0x55958b
mov eax, dword [0x730a9c]
cmp dword [eax], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x5595ba
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 7
jle 0x5595ba
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, 0x5598a4
mov eax, dword [ebp - 4]
call fcn.005524a4
mov eax, dword [ebp - 4]
call fcn.005576f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x559607
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55965b
lea eax, [ebp - 0x34]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x24]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x20]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x1c]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret