Function at 0x6a9574
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x6a957c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6a98be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov edx, dword [eax + 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
mov eax, dword [eax + 0x1d0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov edx, dword [eax + 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
mov eax, dword [eax + 0x1d0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
xor edx, edx
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x1c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
call fcn.006dd614
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0xd4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x14]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x14]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x6a98d8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x6a9994
mov eax, dword [ebp - 0x14]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [0x730da8]
mov edx, dword [edx]
mov edx, dword [edx + 0xa0c]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_First_qqrv
jmp 0x6a9854
mov edx, 0x6a99a8
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call sub.rtl260.bpl__System_Sysutils_AnsiUpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea eax, [ebp - 0x28]
push eax
mov ecx, 2
mov edx, 2
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov eax, dword [ebp - 0x28]
mov edx, 0x6a99c0
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x6a9740
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x6a99d0
call sub.rtl260.bpl__System_Pos_qqrx31System__AnsiStringT_us_i65535__t1i
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x64
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x30]
pop eax
call sub.rtl260.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, 0x6a99e8
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x3c]
mov edx, 0x6a99fc
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6a97ca
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x40]
mov dl, 1
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x6a97b7
lea eax, [ebp - 0x44]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
mov eax, dword [eax + 0x1d0]
call sub.vcl260.bpl__Vcl_Graphics_TPicture_LoadFromFile_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
mov dword [eax + 0xc], 1
jmp 0x6a984c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
xor edx, edx
mov dword [eax + 0xc], edx
jmp 0x6a984c
mov edx, 0x6a99e8
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x48]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x48]
mov edx, 0x6a9a0c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6a984c
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x4c]
mov dl, 1
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x6a983e
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
mov eax, dword [eax + 0x1d0]
call sub.vcl260.bpl__Vcl_Graphics_TPicture_LoadFromFile_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
mov dword [eax + 0xc], 1
jmp 0x6a984c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0xad], 0
je 0x6a9681
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6a98c5
lea eax, [ebp - 0x50]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x38]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x34]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x24]
mov edx, 4
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
ret