Function at 0x465f90
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x465f98
push ecx
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x466171
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x464]
call sub.PublicPkg160.bpl__Jhlookupedit_TJhLookupEdit_GetMyText_qqrv
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 8], 0
je 0x46611c
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x464]
call sub.PublicPkg160.bpl__Jhlookupedit_TJhLookupEdit_GetMyText_qqrv
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
xor eax, eax
call fcn.004132c4
mov esi, eax
mov eax, esi
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
push 0x46618c
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x20]
mov eax, 0x4661dc
call fcn.0040eca4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push dword [ebp - 0x1c]
push 0x4661ec
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x28]
mov eax, 0x4661dc
call fcn.0040eca4
inc eax
push eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrLen_qqrx20System_UnicodeString
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
push dword [ebp - 0x24]
push 0x466214
lea eax, [ebp - 0x18]
mov edx, 5
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x14]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, esi
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, esi
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
je 0x4660e7
mov eax, esi
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
lea ecx, [ebp - 0x2c]
mov edx, 0x466228
mov eax, dword [ebx + 0x394]
call sub.PublicPkg160.bpl__Suputrans_TSpCustomTrans_TMsg_qqrx20System_UnicodeString
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x2c]
call fcn.0040f11c
mov eax, dword [ebx + 0x464]
mov edx, dword [eax]
call dword [edx + 0xf4]
call sub.RtlVcl160.bpl__System_Sysutils_Abort_qqrv
mov eax, esi
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x464]
call sub.PublicPkg160.bpl__Jhlookupedit_TJhLookupEdit_GetMyText_qqrv
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x30]
lea eax, [ebx + 0x4cc]
call sub.RtlVcl160.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, ebx
call fcn.004668e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466178
lea eax, [ebp - 0x34]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x24]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x20]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x1c]
mov edx, 2
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x14]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x10]
mov edx, 4
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
ret