Function at 0x687784
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x68778c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x687ad3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x478]
mov edx, dword [eax + 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
mov eax, dword [eax + 0x1d0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x478]
mov edx, dword [eax + 0x1d0]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
mov eax, dword [eax + 0x1d0]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
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 + 0x6c]
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, 0x687aec
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x687ba8
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 0x687a61
mov edx, 0x687bbc
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, 0x687bd4
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x68794d
mov ecx, 1
mov edx, dword [ebp - 0xc]
mov eax, 0x687be4
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, 0x687bfc
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, 0x687c10
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x6879d7
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 0x6879c4
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 + 0x44c]
mov eax, dword [eax + 0x1d0]
call sub.vcl260.bpl__Vcl_Graphics_TPicture_LoadFromFile_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
mov dword [eax + 0xc], 1
jmp 0x687a59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
xor edx, edx
mov dword [eax + 0xc], edx
jmp 0x687a59
mov edx, 0x687bfc
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, 0x687c20
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x687a59
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 0x687a4b
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 + 0x45c]
mov eax, dword [eax + 0x1d0]
call sub.vcl260.bpl__Vcl_Graphics_TPicture_LoadFromFile_qqrx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
mov dword [eax + 0xc], 1
jmp 0x687a59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x45c]
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 0x68788e
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 0x687ada
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, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x18]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
ret