Function at 0x6a4ecc
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x6a4ed4
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x6a527f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax + 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
mov eax, dword [eax + 0x1d0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x448]
mov edx, dword [eax + 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov eax, dword [eax + 0x1d0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
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, 0x6a5298
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, 0x6a53b4
mov eax, dword [ebp - 0x14]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
push 0x6a53c8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x488]
push dword [eax + 0x2ac]
push dword [eax + 0x2a8]
lea edx, [ebp - 0x2c]
mov eax, 0x6a53d8
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
push dword [ebp - 0x2c]
push 0x6a53c8
lea eax, [ebp - 0x28]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 0x28]
push eax
mov edx, 0x6a53d8
mov eax, dword [ebp - 0x14]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
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 0x6a5208
mov edx, 0x6a53f8
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sub.rtl260.bpl__System_Sysutils_AnsiUpperCase_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea eax, [ebp - 0x38]
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 - 0x38]
mov edx, 0x6a5410
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x6a50f4
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x6a5420
call sub.rtl260.bpl__System_Pos_qqrx31System__AnsiStringT_us_i65535__t1i
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x48]
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 - 0x48]
lea eax, [ebp - 0x44]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x40]
pop eax
call sub.rtl260.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0xc]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, 0x6a5438
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x4c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x4c]
mov edx, 0x6a544c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6a517e
lea eax, [ebp - 0x50]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x50]
mov dl, 1
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x6a516b
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
mov eax, dword [eax + 0x1d0]
call sub.vcl260.bpl__Vcl_Graphics_TPicture_LoadFromFile_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
mov dword [eax + 0xc], 1
jmp 0x6a5200
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x434]
xor edx, edx
mov dword [eax + 0xc], edx
jmp 0x6a5200
mov edx, 0x6a5438
mov eax, dword [ebp - 0x14]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x58]
mov edx, 0x6a545c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6a5200
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x5c]
mov dl, 1
call sub.rtl260.bpl__System_Sysutils_FileExists_qqrx20System_UnicodeStringo
test al, al
je 0x6a51f2
lea eax, [ebp - 0x60]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov eax, dword [eax + 0x1d0]
call sub.vcl260.bpl__Vcl_Graphics_TPicture_LoadFromFile_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
mov dword [eax + 0xc], 1
jmp 0x6a5200
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x440]
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 0x6a5035
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 0x6a5286
lea eax, [ebp - 0x60]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x48]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x44]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x38]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x34]
mov edx, 4
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