Function at 0x5524a4
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x14
push 0
push 0
dec ecx
jne 0x5524ad
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 + 0xc]
call sub.rtl260.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x552d95
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x552d11
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, 0x552db4
mov ecx, dword [eax]
call dword [ecx + 0x3c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, 0x552e70
mov eax, dword [ebp - 0x34]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [eax]
call dword [edx + 0x78]
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
jg 0x552564
cmp dword [ebp - 0xc], 0
je 0x552cff
mov edx, 0x552e84
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]
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0055862c
mov eax, dword [ebp - 0x24]
mov edx, 0x552ea8
call sub.rtl260.bpl__System__UStrEqual_qqrv
je 0x55259f
cmp dword [ebp - 0x24], 0
jne 0x5525c5
xor ecx, ecx
mov edx, 0x552ec4
mov eax, 0x552edc
call fcn.006ecc58
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x20]
mov eax, dword [0x730e20]
mov eax, dword [eax]
mov edx, dword [ebp - 0x30]
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [ebp - 0xc], 0
je 0x5525d8
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
call sub.rtl260.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x5525f0
mov edx, 0x552ef4
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]
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, 0x552f0c
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, 0x552ef4
mov eax, dword [ebp - 0x34]
call sub.odac260.bpl__Ora_TOraDataSet_ParamByName_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x10]
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 - 0x40]
mov eax, 0x55303c
call sub.rtl260.bpl__System_Sysutils_FormatDateTime_qqrx20System_UnicodeString16System_TDateTime
mov eax, dword [ebp - 0x40]
push eax
mov edx, 0x553060
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 0x552cff
mov edx, 0x553078
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x88]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00559364
mov eax, dword [ebp - 0x34]
call sub.dbrtl260.bpl__Data_Db_TDataSet_Close_qqrv
mov eax, dword [ebp - 8]
mov edx, 0x55308c
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x552791
push 0x55309c
push dword [ebp - 0x18]
push 0x5530d8
push dword [ebp - 0x1c]
push 0x55310c
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0xfde9
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005549e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x55275b
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x48]
push 0x553134
lea eax, [ebp - 0x4c]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp dword [ebp - 0x2c], 0
jne 0x552791
fld qword [ebp + 0x10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x50]
call sub.rtl260.bpl__System_Sysutils_FloatToStr_qqrg
mov eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x553144
mov eax, dword [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00558ad4
mov eax, dword [ebp - 8]
mov edx, 0x553160
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x552880
push 0x55309c
push dword [ebp - 0x18]
push 0x5530d8
push dword [ebp - 0x1c]
push 0x553170
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0xfde9
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005549e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x55284a
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x58]
push 0x553134
lea eax, [ebp - 0x5c]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x5c]
lea eax, [ebp - 0x54]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp dword [ebp - 0x2c], 0
jne 0x552880
fld qword [ebp + 0x10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x60]
call sub.rtl260.bpl__System_Sysutils_FloatToStr_qqrg
mov eax, dword [ebp - 0x60]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x553198
mov eax, dword [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00558ad4
mov eax, dword [ebp - 8]
mov edx, 0x5531b4
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x55296f
push 0x55309c
push dword [ebp - 0x18]
push 0x5530d8
push dword [ebp - 0x1c]
push 0x5531c4
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0xfde9
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005549e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x552939
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x68]
push 0x553134
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x6c]
lea eax, [ebp - 0x64]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp dword [ebp - 0x2c], 0
jne 0x55296f
fld qword [ebp + 0x10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x70]
call sub.rtl260.bpl__System_Sysutils_FloatToStr_qqrg
mov eax, dword [ebp - 0x70]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x5531ec
mov eax, dword [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00558ad4
mov eax, dword [ebp - 8]
mov edx, 0x553208
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x552b40
push 0x55309c
push dword [ebp - 0x18]
push 0x5530d8
push dword [ebp - 0x1c]
push 0x553218
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0xfde9
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005549e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x552a28
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x78]
push 0x553134
lea eax, [ebp - 0x7c]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x7c]
lea eax, [ebp - 0x74]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x74]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp dword [ebp - 0x2c], 0
jne 0x552b40
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0055862c
push 0x553240
push dword [ebp - 0x18]
push 0x55327c
push 0x552ea8
push 0x5532ac
push dword [ebp - 0x24]
push 0x5532d8
push dword [ebp - 0x1c]
push 0x553308
lea eax, [ebp - 0x14]
mov edx, 9
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0xfde9
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005549e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x552b04
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x84]
push 0x553134
lea eax, [ebp - 0x88]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x88]
lea eax, [ebp - 0x80]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x400]
mov eax, dword [eax + 0x304]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
cmp dword [ebp - 0x2c], 0
jne 0x552b40
fld qword [ebp + 0x10]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea eax, [ebp - 0x8c]
call sub.rtl260.bpl__System_Sysutils_FloatToStr_qqrg
mov eax, dword [ebp - 0x8c]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0x55331c
mov eax, dword [ebp - 0x18]
push eax
xor ecx, ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00558ad4
mov eax, dword [ebp - 8]
mov edx, 0x553338
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x552c16
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
call sub.rtl260.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x55334c
push dword [ebp - 0x18]
push 0x5530d8
push dword [ebp - 0x1c]
push 0x553308
lea eax, [ebp - 0x14]
mov edx, 5
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0xfde9
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005549e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x552c16
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0x94]
push 0x553134
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0x98]
lea eax, [ebp - 0x90]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x90]
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 - 8]
mov edx, 0x553388
call sub.rtl260.bpl__System__UStrEqual_qqrv
jne 0x552cff
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.0055862c
push 0x553240
push dword [ebp - 0x18]
push 0x55327c
push dword [ebp - 0x24]
push 0x55339c
push dword [ebp + 0xc]
push 0x5530d8
push dword [ebp - 0x1c]
push 0x553308
lea eax, [ebp - 0x14]
mov edx, 9
call sub.rtl260.bpl__System__UStrCatN_qqrv
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, 0xfde9
call sub.rtl260.bpl__System__LStrFromUStr_qqrr27System__AnsiStringT_us_i0__x20System_UnicodeStringus
mov eax, dword [ebp - 0x28]
call sub.rtl260.bpl__System__LStrLen_qqrx31System__AnsiStringT_us_i65535__
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005549e8
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x424]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3f4]
cmp eax, dword [edx + 0x5c]
jge 0x552cff
lea edx, [ebp - 0xa0]
mov eax, dword [ebp - 0x2c]
call sub.rtl260.bpl__System_Sysutils_IntToStr_qqri
push dword [ebp - 0xa0]
push 0x553134
lea eax, [ebp - 0xa4]
mov edx, dword [ebp - 0x28]
call sub.rtl260.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
push dword [ebp - 0xa4]
lea eax, [ebp - 0x9c]
mov edx, 3
call sub.rtl260.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x9c]
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
jmp 0x552d5a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x552d9c
lea eax, [ebp - 0xa8]
mov edx, 0x1c
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.rtl260.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x24]
mov edx, 8
call sub.rtl260.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 0xc]
call sub.rtl260.bpl__System__UStrClr_qqrpv
ret