Function at 0x50fe6c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x50fe75
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 + 8]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x5102ec
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x1c]
mov edx, 0x510308
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x2c]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x51031c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5103dc
mov eax, dword [ebp - 0x2c]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x50ff79
mov edx, 0x5103f0
mov eax, dword [ebp - 0x2c]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov eax, dword [ebp - 0x18]
mov edx, 0x51040c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x50ff79
lea eax, [ebp - 0x1c]
mov edx, 0x51041c
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x20]
mov edx, 0x510430
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp + 8]
mov edx, 0x51046c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x50ffc9
push 0x510480
push dword [ebp - 0xc]
push 0x5104c0
push 0x5104d4
push dword [ebp - 0x1c]
push 0x5104f0
push 0x510500
push dword [ebp - 0x20]
push 0x510524
lea eax, [ebp - 0x10]
mov edx, 9
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x14]
mov edx, 0x510538
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp + 8]
mov edx, 0x510554
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x51000f
push 0x510568
push dword [ebp - 0xc]
push 0x5105a8
push dword [ebp - 0x1c]
push 0x5105cc
push dword [ebp - 0x20]
push 0x5105f4
lea eax, [ebp - 0x10]
mov edx, 7
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x14]
mov edx, 0x510624
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__PCharLen_qqrpc
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.00501920
mov dword [ebp - 0x24], 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 0x5100b2
push 0x510640
push dword [ebp - 0x28]
push 0x510650
push 0x510660
lea eax, [ebp - 0x48]
mov edx, 4
call sub.rtl260.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x44]
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x24]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x4c]
push 0x510670
lea eax, [ebp - 0x40]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x40]
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 - 0x18]
mov edx, 0x51040c
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x51029f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x510680
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5103dc
mov eax, dword [ebp - 0x30]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x5101bd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, 0x40
call sub.vcl260.bpl__Vcl_Controls_TControl_SetHeight_qqri
mov edx, 0x51075c
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x54]
push 0x510774
mov edx, 0x51078c
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x58]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x58]
push 0x5107ac
push dword [ebp - 0x14]
mov edx, 0x5107bc
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x5c]
lea eax, [ebp - 0x50]
mov edx, 6
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x428]
mov eax, dword [eax + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x5107dc
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5103dc
mov eax, dword [ebp - 0x30]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x30]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp + 8]
mov edx, 0x510554
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x510254
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x510848
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x5103dc
mov eax, dword [ebp - 0x30]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x30]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x30]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x30]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp + 8]
mov edx, 0x510554
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x51029f
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0050b248
push 0
push 0
push 0x5108c8
mov eax, dword [ebp - 0xc]
push eax
xor ecx, ecx
mov edx, 0x51040c
mov eax, dword [ebp - 4]
call fcn.005086c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5102f3
lea eax, [ebp - 0x5c]
mov edx, 5
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x48]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x44]
mov edx, 2
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x20]
mov edx, 7
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 8]
call sub.rtl260.bpl__System__UStrClr_qqrpv
ret