Function at 0x5086c4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x5086cd
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
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 + 0x14]
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
lea eax, [ebp - 0x4c]
mov edx, dword [0x4f1cf8]
call sub.rtl260.bpl__System__InitializeRecord_qqrpvt1
xor eax, eax
push ebp
push 0x508b86
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x508adb
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005080fc
mov eax, dword [ebp - 0x24]
mov edx, 0x508ba4
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x508770
mov eax, dword [ebp - 8]
mov edx, 0x508bc0
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x508770
cmp dword [ebp - 8], 0
jne 0x508798
xor ecx, ecx
mov edx, 0x508bd0
mov eax, 0x508be8
call fcn.006ecc58
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x1c]
mov eax, dword [0x730e20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
jmp 0x5087a3
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 0x4c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.0050ce1c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x438]
mov eax, dword [eax + 0x2d8]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3f8]
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, 0x508c00
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x34]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x508d24
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x34]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x508d94
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x34]
call sub.dac260.bpl__Dbaccess_TCustomDADataSet_GetSQL_qqrv
mov edx, 0x508e6c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x508ee8
mov eax, dword [ebp - 0x34]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x1c]
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 - 0x50]
mov eax, 0x508f00
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x50]
push eax
mov edx, 0x508f24
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
lea eax, [ebp - 0x2c]
call sub.rtl260.bpl__System__UStrClr_qqrpv
jmp 0x508908
cmp dword [ebp - 0x10], 0
je 0x50889b
lea eax, [ebp - 0x2c]
mov edx, 0x508f3c
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov edx, 0x508f4c
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
push dword [ebp - 0x2c]
push 0x508f60
push dword [ebp - 0x10]
push 0x508fa4
push 0x508fb8
push 0x508ffc
push 0x509040
push 0x509084
push 0x5090c8
lea eax, [ebp - 0x54]
mov edx, 9
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x438]
mov eax, dword [eax + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0xad], 0
je 0x508888
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
cmp dword [ebp - 0x10], 0
jne 0x508948
cmp dword [ebp - 0xc], 0
je 0x50896b
push 0x509110
push dword [ebp - 0xc]
push 0x509110
lea eax, [ebp - 0x10]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
jmp 0x50896b
cmp dword [ebp - 0xc], 0
je 0x50896b
push dword [ebp - 0x10]
push 0x509120
push dword [ebp - 0xc]
push 0x509110
lea eax, [ebp - 0x10]
mov edx, 4
call sub.rtl260.bpl__System__UStrCatN_qqrv
cmp dword [ebp - 0x10], 0
jne 0x50897e
lea eax, [ebp - 0x10]
mov edx, 0x509134
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.0050b248
push 0x509148
push dword [ebp - 0x14]
push 0x508fa4
push 0x509188
mov eax, dword [0x730d84]
push dword [eax]
push 0x508fa4
push 0x5091b4
mov eax, dword [ebp - 4]
push dword [eax + 0x4ac]
push 0x508fa4
push 0x5091dc
mov eax, dword [ebp - 4]
push dword [eax + 0x4b0]
push 0x508fa4
push 0x509200
push dword [ebp - 0x44]
push 0x508fa4
push 0x50922c
push dword [ebp - 0x40]
push 0x508fa4
push 0x509254
push dword [ebp - 0x4c]
push 0x508fa4
push 0x50927c
push dword [ebp - 0x48]
push 0x508fa4
push 0x5092a0
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x438]
mov eax, dword [eax + 0x2d8]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
push dword [ebp - 0x58]
push 0x5092d8
lea eax, [ebp - 0x18]
mov edx, 0x1b
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, 0
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x20]
call sub.rtl260.bpl__System__PCharLen_qqrpc
mov ecx, eax
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00501a30
mov edx, eax
lea eax, [ebp - 0x28]
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 0x508ad1
push 0x5092ec
push dword [ebp - 0x20]
push 0x5092fc
push 0x50930c
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]
push dword [ebp - 0x28]
push 0x50931c
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]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x508b1e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x508b8d
lea eax, [ebp - 0x68]
call sub.rtl260.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x64]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x60]
mov edx, 5
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x4c]
mov edx, dword [0x4f1cf8]
call sub.rtl260.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x2c]
mov edx, 3
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x20]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x1c]
mov edx, 6
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 8]
mov edx, 4
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
ret