Function at 0x6e9288
Capabilities:
Hide graphical window
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x6e9290
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x6e97c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
push 0x6e97dc
push 0xffffffffffffffff
push 0
call fcn.00402164
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x6e9737
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x6e9737
call sub.rtl260.bpl__System_ParamCount_qqrv
dec eax
je 0x6e92f2
mov edx, 0x6e97f8
mov al, 4
call fcn.006efbe4
mov byte [ebp - 1], 0
jmp 0x6e9791
lea edx, [ebp - 0x28]
mov eax, 1
call sub.rtl260.bpl__System_ParamStr_qqri
mov edx, dword [ebp - 0x28]
mov eax, dword [0x730f6c]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x730f6c]
mov eax, dword [eax]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov edx, eax
sub edx, 6
mov eax, dword [0x730f6c]
mov eax, dword [eax]
mov ecx, 7
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov eax, dword [ebp - 0x2c]
mov edx, 0x6e9838
call sub.rtl260.bpl__System__LStrEqual_qqrv
jne 0x6e9370
mov eax, dword [0x730f6c]
push eax
mov eax, dword [0x730f6c]
mov eax, dword [eax]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
sub ecx, 7
mov eax, dword [0x730f6c]
mov eax, dword [eax]
mov edx, 1
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
jmp 0x6e939e
lea edx, [ebp - 0x30]
mov eax, 1
call sub.rtl260.bpl__System_ParamStr_qqri
mov eax, dword [ebp - 0x30]
call fcn.007014ec
test al, al
jne 0x6e939e
mov edx, 0x6e97f8
mov al, 4
call fcn.006efbe4
mov byte [ebp - 1], 0
jmp 0x6e9791
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
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, 0x6e984c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x6e93f8
lea eax, [ebp - 0x14]
mov edx, 0x6e98b8
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x6e9405
lea eax, [ebp - 0x14]
mov edx, 0x6e98cc
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
push ebp
push 0x6e95c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov edx, 0x6e98cc
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6e9597
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0xf8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e98e0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e994c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x24]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6e99dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x6e9a2c
mov eax, dword [ebp - 0x24]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [0x730c50]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
call dword [edx + 0x194]
dec eax
jle 0x6e9585
jmp 0x6e950a
mov edx, 0x6e9a48
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
cmp dword [ebp - 0x18], 0
jne 0x6e94ea
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x6e9502
push dword [ebp - 0x18]
push 0x6e9a68
push dword [ebp - 0x1c]
lea eax, [ebp - 0x18]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x24]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x24]
cmp byte [eax + 0xad], 0
je 0x6e94bf
push 0x6e9a78
mov eax, dword [0x730c50]
push dword [eax]
push 0x6e9a68
push 0x6e9acc
push dword [ebp - 0x18]
push 0x6e9a68
push 0x6e9af4
lea edx, [ebp - 0x38]
mov eax, dword [0x730f34]
mov eax, dword [eax]
call fcn.00407040
push dword [ebp - 0x38]
lea eax, [ebp - 0x34]
mov edx, 8
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x34]
mov al, 4
call fcn.006efbe4
mov byte [ebp - 1], 0
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0xf4]
call sub.dac260.bpl__Dbaccess_TCustomDAConnection_Disconnect_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6e9791
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0xf4]
call sub.dac260.bpl__Dbaccess_TCustomDAConnection_Disconnect_qqrv
mov eax, dword [0x730c50]
cmp dword [eax], 0
jne 0x6e95be
mov edx, 0x6e9b14
mov al, 4
call fcn.006efbe4
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6e9791
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x6e95d2
lea eax, [ebp - 0x40]
mov edx, dword [0x730f6c]
mov edx, dword [edx]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call fcn.007012cc
mov eax, dword [ebp - 0x3c]
call fcn.006e7b14
lea eax, [ebp - 0x48]
mov edx, dword [0x730f6c]
mov edx, dword [edx]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.007013dc
mov eax, dword [ebp - 0x44]
call fcn.006e7a74
lea eax, [ebp - 0x50]
mov edx, dword [0x730f6c]
mov edx, dword [edx]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call fcn.007010e0
mov eax, dword [ebp - 0x4c]
call fcn.006e79c4
lea eax, [ebp - 0x58]
mov edx, dword [0x730f6c]
mov edx, dword [edx]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.007011bc
mov eax, dword [ebp - 0x54]
call fcn.006e7a1c
mov ecx, 0x6e9b40
mov dl, 1
mov eax, dword [sym.imp.rtl260.bpl__System_Inifiles_TIniFile_]
call sub.rtl260.bpl__System_Inifiles_TCustomIniFile__bctr_qqrx20System_UnicodeString
mov dword [ebp - 0x10], eax
mov eax, dword [0x730c68]
mov eax, dword [eax]
push eax
mov ecx, 0x6e9b60
mov edx, 0x6e9b78
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push 0
mov ecx, 0x6e9b90
mov edx, 0x6e9ba8
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x18]
test al, al
je 0x6e96c9
push 0
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x6e9bc0
mov edx, 0x6e9ba8
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 8]
mov edx, dword [ebp - 0x5c]
mov eax, dword [0x730d9c]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0
mov ecx, 0x6e9bd8
mov edx, 0x6e9ba8
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x18]
neg al
sbb eax, eax
mov edx, dword [0x730a7c]
mov dword [edx], eax
push 1
mov ecx, 0x6e9bf4
mov edx, 0x6e9ba8
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x18]
neg al
sbb eax, eax
mov edx, dword [0x730e08]
mov dword [edx], eax
push 1
mov ecx, 0x6e9c10
mov edx, 0x6e9ba8
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x18]
neg al
sbb eax, eax
mov edx, dword [0x730e28]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
call sub.rtl260.bpl__System_TObject_Free_qqrv
mov byte [ebp - 1], 1
jmp 0x6e9791
push 0x6e9c24
push 0x6e9c2c
call sub.user32.dll_FindWindowW
mov dword [ebp - 0xc], eax
mov edx, 0x6e9c54
mov eax, dword [ebp - 0xc]
call fcn.004024e0
push 0x6e9c24
push 0x6e9c2c
call sub.user32.dll_FindWindowW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6e9791
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_BringWindowToTop
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_ShowOwnedPopups
push 1
mov eax, dword [ebp - 0xc]
push eax
call sub.user32.dll_ShowWindow
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6e97d0
lea eax, [ebp - 0x5c]
mov edx, 0xc
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x2c]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x1c]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret