Function at 0x4e0690
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1b
push 0
push 0
dec ecx
jne 0x4e0698
push ecx
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e0e4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_GetActive_qqrv
test al, al
je 0x4e0d83
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
jne 0x4e0d83
mov edx, 0x4e0e6c
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4e0e8c
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 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, 0x4e0ea4
mov ecx, dword [eax]
call dword [ecx + 0x30]
xor eax, eax
push ebp
push 0x4e07d4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x4e1024
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x54]
push eax
mov edx, 0x4e1038
mov eax, dword [ebp - 0x44]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x4e104c
mov eax, dword [ebp - 0x44]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x34]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x44]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x4e106c
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, 0x4e1084
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 0x4e0804
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x4c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x4c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e10a0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x4c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e1164
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x4c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e11ac
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x4c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e11e0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x4e1024
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]
push eax
mov edx, 0x4e1024
mov eax, dword [ebp - 0x4c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x4e1218
mov eax, dword [ebp - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x88]
lea eax, [ebp - 0x5c]
push eax
mov edx, 0x4e122c
mov eax, dword [ebp - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x60]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x60]
mov ecx, 8
mov edx, 1
call sub.rtl260.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x1c]
mov ecx, 0x4e1244
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, 0x4e1260
mov eax, dword [ebp - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4e1278
mov eax, dword [ebp - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4e128c
mov eax, dword [ebp - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4e12a0
mov eax, dword [ebp - 0x4c]
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 - 0x4c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x24]
call sub.rtl260.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x64]
mov edx, 0x4e12c0
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x4e0992
lea eax, [ebp - 0x24]
mov edx, 0x4e12d0
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4e099f
lea eax, [ebp - 0x24]
mov edx, 0x4e12e0
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x6c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x50]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x50]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e12f0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x50]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e1340
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x50]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e1388
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x50]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e13cc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x50]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4e1424
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b0]
mov edx, 0x4e1024
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x68]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x68]
push eax
mov edx, 0x4e1024
mov eax, dword [ebp - 0x50]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x50]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x4e1464
mov eax, dword [ebp - 0x50]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4e1480
mov eax, dword [ebp - 0x50]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x50]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3fc]
mov edx, 0x4e14a4
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 0x4e0b1c
mov edx, 0x4e14c4
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
mov edx, 0x4e14e0
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0xc]
mov edx, 0x4e1540
call sub.rtl260.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0x11
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x4e1550
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
jmp 0x4e0b6f
mov edx, 0x4e156c
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
mov edx, 0x4e1584
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0x11
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x4e1550
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xa4], eax
mov byte [ebp - 0xa0], 0x11
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x9c], eax
mov byte [ebp - 0x98], 0x11
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x94], eax
mov byte [ebp - 0x90], 0x11
lea edx, [ebp - 0xa4]
mov ecx, 2
mov eax, 0x4e15e4
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x88]
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 - 0x10]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0x11
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0x11
lea edx, [ebp - 0xbc]
mov ecx, 1
mov eax, 0x4e15fc
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 - 0xc4]
push eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0x11
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0x11
lea edx, [ebp - 0xbc]
mov ecx, 1
mov eax, 0x4e1624
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
lea eax, [ebp - 0xcc]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0x11
xor eax, eax
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0x11
lea edx, [ebp - 0xbc]
mov ecx, 1
mov eax, 0x4e1648
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0xcc]
lea eax, [ebp - 0xc8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xc8]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0xd4]
push eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0x11
xor eax, eax
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0x11
lea edx, [ebp - 0xbc]
mov ecx, 1
mov eax, 0x4e1664
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0xd4]
lea eax, [ebp - 0xd0]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xd0]
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System_Classes_TStrings_Append_qqrx20System_UnicodeString
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x78], eax
mov byte [ebp - 0x74], 0x11
lea edx, [ebp - 0x78]
xor ecx, ecx
mov eax, 0x4e167c
call sub.rtl260.bpl__System_Ansistrings_Format_qqrx27System__AnsiStringT_us_i0__px14System_TVarRecxi
mov edx, dword [ebp - 0xdc]
lea eax, [ebp - 0xd8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0xd8]
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 0x4e0e59
lea eax, [ebp - 0xdc]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xd8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xd4]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xd0]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0xcc]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xc8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
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 - 0xac]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xa8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x8c]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x88]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x84]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x80]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x70]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x6c]
mov edx, 7
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x3c]
mov edx, 0xd
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret