Function at 0x50c068
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x50c071
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__UStrAddRef_qqrpv
mov eax, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 0xc]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
lea eax, [ebp - 0x50]
mov edx, dword [0x4f1cf8]
call sub.rtl260.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x50c5a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3dc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50c5c0
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50c674
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x50c700
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x54]
mov eax, 0x50c718
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x54]
push eax
mov edx, 0x50c73c
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x40]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x50c555
mov edx, 0x50c754
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x50c76c
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 [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50c780
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50c850
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x50c700
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x48]
call sub.rtl260.bpl__System_Sysutils_Now_qqrv
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x58]
mov eax, 0x50c718
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x58]
push eax
mov edx, 0x50c73c
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov edx, 0x50c76c
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x50c754
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x50c908
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x50c91c
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x50c930
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x30]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x50c944
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 eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x2c]
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x50c316
mov eax, dword [ebp - 0x40]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x40]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x50c95c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x50c908
mov eax, dword [ebp - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov edx, 0x50c76c
mov eax, dword [ebp - 0x40]
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 - 0x40]
call sub.odac260.bpl__Ora_TOraDataSet_ExecSQL_qqrv
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x38]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x50c350
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0050b248
mov eax, dword [ebp - 8]
push eax
push 0
push 0x50c9c4
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.005086c4
jmp 0x50c555
lea ecx, [ebp - 0x50]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0050ce1c
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0050b248
push 0x50c9e0
push dword [ebp - 0x1c]
push 0x50ca20
push 0x50ca34
mov eax, dword [0x730d84]
push dword [eax]
push 0x50ca20
push 0x50ca60
push dword [ebp - 0x20]
push 0x50ca20
push 0x50cad4
push 0x50cb1c
push 0x50cb64
push 0x50cbac
push 0x50cbf4
push 0x50cc3c
mov eax, dword [ebp - 4]
push dword [eax + 0x4ac]
push 0x50ca20
push 0x50cc64
mov eax, dword [ebp - 4]
push dword [eax + 0x4b0]
push 0x50ca20
push 0x50cc88
push dword [ebp - 0x48]
push 0x50ca20
push 0x50ccb4
push dword [ebp - 0x44]
push 0x50ca20
push 0x50ccdc
push dword [ebp - 0x50]
push 0x50ca20
push 0x50cd04
push dword [ebp - 0x4c]
push 0x50ca20
push 0x50cd28
push dword [ebp - 0x24]
push 0x50ca20
push 0x50cd58
push 0x50cd8c
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0050b8e0
push dword [ebp - 0x5c]
push 0x50cdc0
lea eax, [ebp - 0x28]
mov edx, 0x27
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x3c]
call sub.rtl260.bpl__System__PCharLen_qqrpc
mov ecx, eax
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00501a30
mov edx, eax
lea eax, [ebp - 0x10]
call sub.rtl260.bpl__System__UStrFromPChar_qqrr20System_UnicodeStringpc
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 0x50c4dd
push 0x50cdd4
push dword [ebp - 0x3c]
push 0x50cde4
push 0x50cdf4
lea eax, [ebp - 0x68]
mov edx, 4
call sub.rtl260.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x64]
push dword [ebp - 0x10]
push 0x50ce04
lea eax, [ebp - 0x60]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x60]
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, 0x50ce14
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x50c505
mov eax, dword [ebp - 0x14]
call sub.rtl260.bpl__System_Sysutils_StrToInt_qqrx20System_UnicodeString
push eax
push 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004ffcf4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0050b248
mov eax, dword [ebp - 8]
push eax
push 0
push 0x50c9c4
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.005086c4
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0050b248
mov eax, dword [ebp - 8]
push eax
push 0
push 0x50c9c4
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.005086c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c5aa
lea eax, [ebp - 0x68]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x64]
mov edx, 5
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x50]
mov edx, dword [0x4f1cf8]
call sub.rtl260.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x3c]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x38]
mov edx, 0xd
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 0xc]
call sub.rtl260.bpl__System__UStrClr_qqrpv
ret