Function at 0x6110e8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcf0
xor edx, edx
mov dword [ebp - 0x310], edx
mov dword [ebp - 0x30c], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x61145a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4e8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x4ec], 0x6f
xor ecx, ecx
mov edx, 0x611474
lea eax, [ebp - 0x308]
call sub.rtl260.bpl__System__AssignText_qqrr15System_TTextRecpxbxus
lea eax, [ebp - 0x308]
call sub.rtl260.bpl__System__ResetText_qqrr15System_TTextRec
call sub.rtl260.bpl__System___IOTest_qqrv
lea eax, [ebp - 0x14]
mov edx, 0x6114d8
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x6111c5
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x308]
call sub.rtl260.bpl__System__ReadUString_qqrr15System_TTextRecr20System_UnicodeString
lea eax, [ebp - 0x308]
call sub.rtl260.bpl__System__ReadLn_qqrr15System_TTextRec
call sub.rtl260.bpl__System___IOTest_qqrv
lea edx, [ebp - 0x30c]
mov eax, dword [ebp - 0x10]
call sub.rtl260.bpl__System_Sysutils_AnsiUpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x30c]
mov ecx, 1
mov eax, 0x6114ec
call sub.rtl260.bpl__System_Pos_qqrx20System_UnicodeStringt1i
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x6111c5
lea eax, [ebp - 0x14]
mov edx, 0x611508
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x308]
call sub.rtl260.bpl__System__EofText_qqrr15System_TTextRec
call sub.rtl260.bpl__System___IOTest_qqrv
test al, al
je 0x611167
lea eax, [ebp - 0x308]
call sub.rtl260.bpl__System__Close_qqrr15System_TTextRec
call sub.rtl260.bpl__System___IOTest_qqrv
mov eax, dword [ebp - 0x14]
mov edx, 0x611508
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x61142f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call sub.dac260.bpl__Dbaccess_TCustomDAConnection_Connect_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
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.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x1c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x61151c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x1c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x611598
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x1c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6115e8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x1c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x611628
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x1c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x61166c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x6116d0
mov eax, dword [ebp - 0x1c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [0x730d84]
mov edx, dword [edx]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x1c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x611409
mov eax, dword [ebp - 4]
mov dword [eax + 0x4e8], 1
mov edx, 0x6116f0
mov eax, dword [ebp - 0x1c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4ec], eax
mov edx, 0x611708
mov eax, dword [ebp - 0x1c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x310]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x310]
lea edx, [ebp - 0x18]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x18], 0
je 0x611421
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, 0x611720
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 0x6113ae
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, 0x611794
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x611818
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x18]
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
jmp 0x6113fa
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, 0x611834
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x611818
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x18]
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
mov eax, dword [0x730ad4]
mov edx, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x611421
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x4e8], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x4ec], 0x6f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x430]
call sub.dac260.bpl__Dbaccess_TCustomDAConnection_Disconnect_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x611461
lea eax, [ebp - 0x310]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x18]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret