Function at 0x46b920
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x15
push 0
push 0
dec ecx
jne 0x46b929
xchg dword [ebp - 4], ecx
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp - 8]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x46c011
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x46c030
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bade
lea edx, [ebp - 0x20]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x20], 0
je 0x46b996
mov eax, dword [ebp - 8]
mov edx, 0x46c040
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46b9be
lea edx, [ebp - 0x24]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x24], 0
je 0x46ba6e
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46ba6e
xor eax, eax
call fcn.00414c90
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
push ebp
push 0x46ba67
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x30]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_QuotedStr_qqrx20System_UnicodeString
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x46c060
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x10]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x10]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
je 0x46ba51
mov eax, dword [ebp - 0x10]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
lea ecx, [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c0b0
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x34]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ba6e
mov eax, dword [ebp - 0x10]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x38], 0
jne 0x46ba8e
mov eax, dword [ebp - 8]
mov edx, 0x46c0cc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46bab6
lea edx, [ebp - 0x3c]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x3c], 0
jne 0x46bf84
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bf84
lea ecx, [ebp - 0x40]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c0dc
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x40]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
jmp 0x46bf84
mov eax, dword [ebp - 4]
mov edx, 0x46c040
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bc59
lea edx, [ebp - 0x44]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x44], 0
je 0x46bb11
mov eax, dword [ebp - 8]
mov edx, 0x46c040
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46bb39
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x48], 0
je 0x46bbe9
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bbe9
xor eax, eax
call fcn.00414c90
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
push ebp
push 0x46bbe2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x54]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_QuotedStr_qqrx20System_UnicodeString
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x46c0f8
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x4c]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x14]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x14]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
je 0x46bbcc
mov eax, dword [ebp - 0x14]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
lea ecx, [ebp - 0x58]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c148
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x58]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bbe9
mov eax, dword [ebp - 0x14]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret
lea edx, [ebp - 0x5c]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x5c], 0
jne 0x46bc09
mov eax, dword [ebp - 8]
mov edx, 0x46c0cc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46bc31
lea edx, [ebp - 0x60]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x60], 0
jne 0x46bf84
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bf84
lea ecx, [ebp - 0x64]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c0dc
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x64]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
jmp 0x46bf84
mov eax, dword [ebp - 4]
mov edx, 0x46c0cc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bde0
lea edx, [ebp - 0x68]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x68], 0
je 0x46bc8c
mov eax, dword [ebp - 8]
mov edx, 0x46c040
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46bcb4
lea edx, [ebp - 0x6c]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x6c], 0
je 0x46bd64
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bd64
xor eax, eax
call fcn.00414c90
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
push ebp
push 0x46bd5d
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x78]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_QuotedStr_qqrx20System_UnicodeString
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x46c164
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x18]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x18]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
je 0x46bd47
mov eax, dword [ebp - 0x18]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
lea ecx, [ebp - 0x7c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c1b4
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x7c]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bd64
mov eax, dword [ebp - 0x18]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret
lea edx, [ebp - 0x80]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x80], 0
jne 0x46bd84
mov eax, dword [ebp - 8]
mov edx, 0x46c0cc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46bdb2
lea edx, [ebp - 0x84]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x84], 0
jne 0x46bf84
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bf84
lea ecx, [ebp - 0x88]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c0dc
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x88]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
jmp 0x46bf84
mov eax, dword [ebp - 4]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bf84
lea edx, [ebp - 0x8c]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x8c], 0
je 0x46be19
mov eax, dword [ebp - 8]
mov edx, 0x46c040
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46be47
lea edx, [ebp - 0x90]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x90], 0
je 0x46bf0f
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bf0f
xor eax, eax
call fcn.00414c90
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
push ebp
push 0x46bf08
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x9c]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_QuotedStr_qqrx20System_UnicodeString
mov ecx, dword [ebp - 0x9c]
lea eax, [ebp - 0x98]
mov edx, 0x46c1d0
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x98]
lea eax, [ebp - 0x94]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
je 0x46bef2
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
lea ecx, [ebp - 0xa0]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c220
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0xa0]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bf0f
mov eax, dword [ebp - 0x1c]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
ret
lea edx, [ebp - 0xa4]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0xa4], 0
jne 0x46bf35
mov eax, dword [ebp - 8]
mov edx, 0x46c0cc
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
je 0x46bf5b
lea edx, [ebp - 0xa8]
mov eax, dword [ebp + 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0xa8], 0
jne 0x46bf84
mov eax, dword [ebp - 8]
mov edx, 0x46c050
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x46bf84
lea ecx, [ebp - 0xac]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x80]
mov edx, 0x46c0dc
call sub.PublicPkg160.bpl__Suputransdatamod_TSpCustomTransDataMod_TMsg_qqrx20System_UnicodeString
mov eax, dword [ebp - 0xac]
call fcn.00410258
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c01b
lea eax, [ebp - 0xac]
mov edx, 6
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x94]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x90]
mov edx, 8
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x70]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x6c]
mov edx, 8
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x4c]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x48]
mov edx, 8
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x24]
mov edx, 2
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 8]
mov edx, 2
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp + 8]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
ret