Function at 0x50ea40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50ec10
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x110]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 8]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 8]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50ec28
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 - 0x10]
mov eax, 0x50ecfc
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x10]
push eax
mov edx, 0x50ed20
mov eax, dword [ebp - 8]
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
fadd dword [0x50ed2c]
fstp qword [ebp - 0x1c]
wait
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
lea edx, [ebp - 0x14]
mov eax, 0x50ecfc
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x14]
push eax
mov edx, 0x50ed3c
mov eax, dword [ebp - 8]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 8]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x50ed54
mov eax, dword [ebp - 8]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
test eax, eax
jle 0x50ebd9
mov eax, dword [0x730e9c]
cmp dword [eax], 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x50eb7d
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4ec5f0]
call sub.vcl260.bpl__Vcl_Forms_TCustomForm__bctr_qqrp25System_Classes_TComponent
mov edx, dword [0x730f18]
mov dword [edx], eax
mov eax, dword [0x730f18]
mov eax, dword [eax]
mov eax, dword [eax + 0x3d4]
mov edx, 1
mov ecx, dword [eax]
call dword [ecx + 0x404]
mov eax, dword [0x730f18]
mov eax, dword [eax]
mov eax, dword [eax + 0x42c]
mov si, 0xffea
call sub.rtl260.bpl__System__CallDynaInst_qqrv
jmp 0x50ebed
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xab0]
mov dl, 1
call sub.vcl260.bpl__Vcl_Controls_TControl_SetVisible_qqro
mov eax, dword [0x731020]
mov eax, dword [eax]
cmp byte [eax + 0x215], 0
jne 0x50ebc5
mov eax, dword [0x731020]
mov eax, dword [eax]
call fcn.005d4c24
mov eax, dword [0x731020]
mov eax, dword [eax]
call fcn.005d4e3c
mov eax, dword [0x731020]
mov eax, dword [eax]
call sub.vcl260.bpl__Vcl_Forms_TCustomForm_Show_qqrv
mov eax, dword [0x730a90]
mov eax, dword [eax]
call sub.vcl260.bpl__Vcl_Controls_TWinControl_GetHandle_qqrv
push eax
call sub.user32.dll_SetForegroundWindow
jmp 0x50ebed
mov eax, dword [0x731020]
mov eax, dword [eax]
mov eax, dword [eax + 0xab0]
xor edx, edx
call sub.vcl260.bpl__Vcl_Controls_TControl_SetVisible_qqro
mov eax, dword [ebp - 8]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ec17
lea eax, [ebp - 0x14]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret