Function at 0x6a0ca4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x6a0cac
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6a1004
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x470]
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 + 0x470]
mov edx, dword [eax + 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
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 + 0x468]
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, 0x6a101c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [0x730da8]
mov eax, dword [eax]
fild dword [eax + 0xa0c]
fstp qword [ebp - 0x24]
wait
push dword [ebp - 0x20]
push dword [ebp - 0x24]
mov edx, 0x6a10d8
mov eax, dword [ebp - 0x14]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
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 0x6a0f8d
mov edx, 0x6a10ec
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_AnsiUpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea eax, [ebp - 0x30]
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 - 0x30]
mov edx, 0x6a1104
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x6a0e79
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x6a1114
call sub.rtl260.bpl__System_Pos_qqrx31System__AnsiStringT_us_i65535__t1i
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
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 - 0x40]
lea eax, [ebp - 0x3c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x38]
pop eax
call sub.rtl260.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, 0x6a112c
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x44]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x44]
mov edx, 0x6a1140
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6a0f03
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x48]
mov dl, 1
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x6a0ef0
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x4c]
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 0x6a0f85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x458]
xor edx, edx
mov dword [eax + 0xc], edx
jmp 0x6a0f85
mov edx, 0x6a112c
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x50]
mov edx, 0x6a1150
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6a0f85
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x54]
mov dl, 1
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x6a0f77
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov eax, dword [eax + 0x1d0]
call sub.vcl260.bpl__Vcl_Graphics_TPicture_LoadFromFile_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov dword [eax + 0xc], 1
jmp 0x6a0f85
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
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 0x6a0dba
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 0x6a100b
lea eax, [ebp - 0x58]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x40]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x3c]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x30]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x2c]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
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__LStrArrayClr_qqrpvi
ret