Function at 0x45f28c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x45f295
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 - 0xc]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x45f699
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x45f6ac
mov eax, dword [ebp - 0xc]
call fcn.0040eca4
test eax, eax
jg 0x45f2ed
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x390]
mov edx, dword [edx + 0x2c8]
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x45f62c
mov byte [ebp - 0xd], 1
mov eax, 1
call fcn.004132c4
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0xc], 0
je 0x45f41b
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
push 0x45f700
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 8]
mov ecx, 5
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCopy_qqrx20System_UnicodeStringii
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call sub.RtlVcl160.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
push dword [ebp - 0x40]
push 0x45f750
lea eax, [ebp - 0x3c]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
jne 0x45f41b
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_GetFieldCount_qqrv
dec eax
test eax, eax
jle 0x45f41b
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 1
lea edx, [ebp - 0x48]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x48]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x45f764
call sub.RtlVcl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
mov edx, 0x45f77c
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x50]
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x4c]
pop eax
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x45f413
mov byte [ebp - 0xd], 1
jmp 0x45f41b
inc dword [ebp - 0x18]
dec dword [ebp - 0x2c]
jne 0x45f3a1
cmp byte [ebp - 0xd], 0
je 0x45f624
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
push 0x45f700
push dword [ebp - 0xc]
push 0x45f750
lea eax, [ebp - 0x68]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x64]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
jne 0x45f624
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_GetFieldCount_qqrv
dec eax
test eax, eax
jle 0x45f624
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x418]
mov eax, dword [ebp - 4]
call fcn.0045ec8c
test al, al
je 0x45f618
lea eax, [ebp - 0x20]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x74]
push eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0
lea edx, [ebp - 0x60]
xor ecx, ecx
mov eax, 0x45f764
call sub.RtlVcl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov ecx, dword [ebp - 0x74]
lea eax, [ebp - 0x70]
mov edx, 0x45f77c
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x1c]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x418]
mov eax, dword [ebp - 4]
call fcn.0045eddc
cmp dword [ebp - 0x24], 0
je 0x45f618
cmp dword [ebp - 0x1c], 0
je 0x45f618
mov edx, 0x45f790
mov eax, dword [ebp - 0x24]
call fcn.0040f868
test eax, eax
jle 0x45f5af
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x20], 0
je 0x45f560
lea eax, [ebp - 0x20]
mov edx, 0x45f7a0
call sub.RtlVcl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push dword [ebp - 0x20]
push 0x45f7b0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, 0x45f790
mov eax, dword [ebp - 0x24]
call fcn.0040f978
mov eax, dword [ebp - 0x7c]
mov ecx, 1
mov edx, 0x45f7c0
call fcn.0040f978
push dword [ebp - 0x78]
push 0x45f7b0
lea eax, [ebp - 0x20]
mov edx, 4
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
inc dword [ebp - 0x14]
dec dword [ebp - 0x30]
jne 0x45f54d
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 0x20]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x80], 0
je 0x45f618
lea edx, [ebp - 0x84]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x84], 0
je 0x45f5e9
mov eax, dword [ebp - 8]
mov edx, 0x45f7d0
call sub.RtlVcl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 8]
mov eax, dword [ebp - 8]
push dword [eax]
push 0x45f7e8
push dword [ebp - 0xc]
push 0x45f7f8
push dword [ebp - 0x1c]
push 0x45f808
push dword [ebp - 0x20]
push 0x45f820
mov eax, dword [ebp - 8]
mov edx, 8
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
inc dword [ebp - 0x18]
dec dword [ebp - 0x2c]
jne 0x45f493
mov eax, dword [ebp - 0x28]
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f6a0
lea eax, [ebp - 0x84]
mov edx, 8
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x64]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x58]
mov edx, 5
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x44]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x40]
mov edx, 2
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x38]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x34]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x24]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
ret