Function at 0x51115c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x511165
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 0x10]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 0xc]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 8]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x51158f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5115ac
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x51168c
mov eax, dword [ebp - 0x3c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x5116a0
mov eax, dword [ebp - 0x3c]
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, 0x5116b8
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x511242
lea eax, [ebp - 0x18]
mov edx, 0x5116b8
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x30]
mov edx, 0x5116c8
call sub.rtl260.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
jmp 0x5112a3
lea eax, [ebp - 0x18]
mov edx, 0x5116d8
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp + 8]
mov edx, 0x5116b8
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x51126b
lea eax, [ebp - 0x18]
mov edx, 0x5116b8
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp + 8]
mov edx, 0x5116b8
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x511287
lea eax, [ebp - 0x30]
mov edx, 0x5116e8
call sub.rtl260.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov eax, dword [ebp + 8]
mov edx, 0x5116d8
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x5112a3
lea eax, [ebp - 0x30]
mov edx, 0x5116c8
call sub.rtl260.bpl__System__LStrLAsg_qqrr27System__AnsiStringT_us_i0__x27System__AnsiStringT_us_i0__
mov edx, 0x5116f8
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x51170c
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x511724
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x511744
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x34]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov edx, 0x511758
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x38]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
lea eax, [ebp - 0x24]
call sub.rtl260.bpl__System__UStrClr_qqrpv
mov eax, dword [ebp - 0x30]
mov edx, 0x5116e8
call sub.rtl260.bpl__System__LStrEqual_qqrv
jne 0x511361
lea eax, [ebp - 0x24]
mov edx, 0x511770
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x5113ad
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x3c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5117b8
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x51168c
mov eax, dword [ebp - 0x3c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x3c]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 4]
call fcn.00506e0c
mov eax, dword [ebp - 0x3c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
push 0x511848
push dword [ebp - 8]
push 0x511888
push 0x51189c
lea eax, [ebp - 0x58]
mov edx, dword [ebp - 0x30]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x58]
push 0x5118b8
push 0x5118c8
push dword [ebp - 0x24]
push 0x511888
push 0x5118ec
push 0x511910
mov eax, dword [0x730d84]
push dword [eax]
push 0x511888
push 0x51193c
push dword [ebp - 0x18]
push 0x5118b8
push 0x511960
push 0x51199c
push dword [ebp + 0xc]
push 0x511888
push 0x5119dc
push 0x511a20
push 0x511a64
push 0x511aa8
push 0x511aec
push 0x511b30
push dword [ebp - 0xc]
push 0x511888
push 0x511b64
push 0x511b84
push 0x511bb4
lea eax, [ebp - 0x14]
mov edx, 0x1f
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x14]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System__PCharLen_qqrpc
mov ecx, eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00501920
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44c]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x511501
push 0x511bd0
push dword [ebp - 0x2c]
push 0x511be0
push 0x511bf0
lea eax, [ebp - 0x64]
mov edx, 4
call sub.rtl260.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x60]
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x68]
push 0x511c00
lea eax, [ebp - 0x5c]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x30]
mov edx, 0x5116e8
call sub.rtl260.bpl__System__LStrEqual_qqrv
je 0x511538
push 0x511c10
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x38]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x6c]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp + 0xc]
mov eax, dword [0x751b74]
call fcn.00511c18
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x511596
lea eax, [ebp - 0x6c]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x64]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x60]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x38]
mov edx, 4
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x24]
mov edx, 8
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 8]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret