Function at 0x50e190
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x50e199
push ecx
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__LStrAddRef_qqrpv
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x24]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x20]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x1c]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x18]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x14]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x10]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0xc]
call sub.rtl260.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x50e4fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x730f34]
mov eax, dword [eax]
mov eax, dword [eax + 0x11c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50e518
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x50e5e0
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x74]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50e604
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x50e664
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x6c]
fstp qword [ebp - 0x18]
wait
mov al, byte [0x50e670]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp + 0x10]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, 0x50e680
call sub.rtl260.bpl__System_Sysutils_StringReplace_qqrx20System_UnicodeStringt1t162System__Set_35System_Sysutils_System_Sysutils__8
mov edx, dword [ebp - 0x24]
lea eax, [ebp + 0x10]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50e698
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50e6d0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50e7d0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x20]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50e7ec
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov edx, 0x50e900
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
push dword [ebp + 0x34]
push dword [ebp + 0x30]
mov edx, 0x50e918
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
mov edx, 0x50e92c
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
mov edx, 0x50e940
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, 0x50e95c
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50e96c
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x2c]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50e984
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x30]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50e9a0
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp + 0x24]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x34]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50e9bc
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x38]
mov edx, dword [ebp + 0x18]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x38]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50e9d4
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x3c]
mov edx, dword [ebp + 0x14]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x3c]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, 1
mov eax, dword [ebp + 0x10]
call sub.rtl260.bpl__System__LStrCopy_qqrx27System__AnsiStringT_us_i0__ii
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov eax, dword [ebp - 0x40]
push eax
mov edx, 0x50e9f0
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50ea08
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
push eax
lea eax, [ebp - 0x48]
mov edx, dword [ebp + 0xc]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
mov edx, dword [ebp - 0x48]
pop eax
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50ea24
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, 0x50ea3c
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x20]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
mov eax, dword [ebp - 0x20]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50e502
lea eax, [ebp - 0x48]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x44]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x40]
mov edx, 8
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp + 0xc]
mov edx, 7
call sub.rtl260.bpl__System__LStrArrayClr_qqrpvi
ret