Function at 0x4ff3a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x4ff3a9
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 - 0x64]
mov edx, dword [0x4f1cf8]
call sub.rtl260.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x4ff706
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3ec]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 0x34]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 0x34]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x4ff720
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x4ff86c
mov eax, dword [ebp - 0x34]
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 - 0x68]
mov eax, 0x4ff884
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x68]
push eax
mov edx, 0x4ff8a8
mov eax, dword [ebp - 0x34]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x34]
mov edx, dword [eax]
call dword [edx + 0x194]
test eax, eax
jle 0x4ff6ab
mov edx, 0x4ff8c0
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4ff8d4
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x2c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4ff8e8
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x24]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4ff8fc
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, 0x4ff910
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x88]
lea ecx, [ebp - 0x64]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0050ce1c
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0050b248
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
cmp dword [ebp - 0x2c], 0
jne 0x4ff533
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x64]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x4ff6ab
mov eax, dword [ebp - 8]
mov edx, 0x4ff928
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x4ff6ab
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x64]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x4ff93c
push dword [ebp - 0x14]
push 0x4ff97c
push 0x4ff990
mov eax, dword [0x730d84]
push dword [eax]
push 0x4ff97c
push 0x4ff9bc
push dword [ebp - 0x24]
push 0x4ff97c
push 0x4ff9ec
push 0x4ffa14
push dword [ebp - 0x18]
push 0x4ff97c
push 0x4ffa54
push 0x4ffa98
push 0x4ffadc
push 0x4ffb20
push 0x4ffb64
push 0x4ffba8
mov eax, dword [ebp - 4]
push dword [eax + 0x4ac]
push 0x4ff97c
push 0x4ffbd0
mov eax, dword [ebp - 4]
push dword [eax + 0x4b0]
push 0x4ff97c
push 0x4ffbf4
push dword [ebp - 0x5c]
push 0x4ff97c
push 0x4ffc1c
push dword [ebp - 0x58]
push 0x4ff97c
push 0x4ffc40
push dword [ebp - 0x64]
push 0x4ff97c
push 0x4ffc68
push dword [ebp - 0x60]
push 0x4ff97c
push 0x4ffc8c
lea edx, [ebp - 0x6c]
mov eax, dword [ebp - 4]
call fcn.0050b8e0
push dword [ebp - 0x6c]
push 0x4ffcd0
push 0x4ffce0
lea eax, [ebp - 0x10]
mov edx, 0x28
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x30]
call sub.rtl260.bpl__System__PCharLen_qqrpc
mov ecx, eax
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00501a30
mov edx, eax
lea eax, [ebp - 0x1c]
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 0x4ff6ab
push dword [ebp - 0x1c]
push 0x4ffcf0
lea eax, [ebp - 0x74]
mov edx, dword [ebp - 0x30]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x70]
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 - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff70d
lea eax, [ebp - 0x74]
mov edx, 4
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x64]
mov edx, dword [0x4f1cf8]
call sub.rtl260.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x44]
mov edx, 4
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x30]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x2c]
mov edx, 0xa
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 0xc]
call sub.rtl260.bpl__System__UStrClr_qqrpv
ret