Function at 0x485070
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x18
push 0
push 0
dec ecx
jne 0x485078
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4855cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_GetActive_qqrv
test al, al
je 0x485508
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
jne 0x485508
mov edx, 0x4855e8
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x485608
mov eax, dword [ebp - 0x40]
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 [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x44]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x485620
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
push ebp
push 0x48519a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4857a0
mov eax, dword [ebp - 0x44]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x60c]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x4857b4
mov eax, dword [ebp - 0x44]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x44]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x4857d4
mov eax, dword [ebp - 0x44]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4857ec
mov eax, dword [ebp - 0x44]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x88]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4851ca
lea eax, [ebp - 0x18]
call fcn.006ecf24
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
call fcn.006ece68
mov eax, dword [ebp - 0x50]
mov ecx, 8
mov edx, 1
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x1c]
mov ecx, 0x485808
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
lea eax, [ebp - 0x20]
call fcn.006ece08
lea eax, [ebp - 0x24]
call fcn.006ed2ac
lea eax, [ebp - 0x28]
call fcn.006ecfe4
lea eax, [ebp - 0x2c]
call fcn.006ed044
lea eax, [ebp - 0x34]
call fcn.006ecf84
lea eax, [ebp - 0x30]
call fcn.006ed0a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48c]
mov edx, 0x485824
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [0x730a1c]
cmp dword [eax], 1
sbb eax, eax
inc eax
test al, al
jne 0x4852bc
mov edx, 0x485844
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
mov edx, 0x485860
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x64]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4858c0
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x4858d0
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
jmp 0x485309
mov edx, 0x4858ec
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
mov edx, 0x485904
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x4858d0
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0x6c]
lea eax, [ebp - 0x68]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 0x88], 0x11
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x84], eax
mov byte [ebp - 0x80], 0x11
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x78], 0x11
lea edx, [ebp - 0x8c]
mov ecx, 2
mov eax, 0x485964
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0x94]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
lea edx, [ebp - 0xa4]
mov ecx, 1
mov eax, 0x48597c
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x90]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0xac]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
lea edx, [ebp - 0xa4]
mov ecx, 1
mov eax, 0x4859a4
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0xac]
lea eax, [ebp - 0xa8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xa8]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
xor eax, eax
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
lea edx, [ebp - 0xa4]
mov ecx, 1
mov eax, 0x4859c8
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0xb4]
lea eax, [ebp - 0xb0]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0xbc]
push eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
xor eax, eax
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
lea edx, [ebp - 0xa4]
mov ecx, 1
mov eax, 0x4859e4
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0xbc]
lea eax, [ebp - 0xb8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xb8]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0xc4]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0x11
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x4859fc
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0xc4]
lea eax, [ebp - 0xc0]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4855d5
lea eax, [ebp - 0xc4]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc0]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xbc]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xb8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xb4]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xb0]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xac]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xa8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x94]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x90]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x74]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x70]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x6c]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x68]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x58]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x54]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x3c]
mov edx, 0xd
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret