Function at 0x43b960
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x43b969
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], edx
mov esi, eax
mov eax, dword [ebp - 4]
call sub.RtlVcl160.bpl__System__UStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x43bd39
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x43bd50
mov eax, dword [ebp - 4]
call fcn.0040e084
test eax, eax
jg 0x43b9bf
mov eax, dword [ebp - 4]
mov edx, dword [esi + 0x390]
mov edx, dword [edx + 0x2c8]
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x43bcdf
mov byte [ebp - 0x15], 1
mov eax, 1
call fcn.00412788
mov ebx, eax
cmp dword [ebp + 0xc], 0
je 0x43bae6
mov byte [ebp - 0x15], 0
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
push 0x43bda4
lea eax, [ebp - 0x34]
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 - 0x34]
lea edx, [ebp - 0x30]
call sub.RtlVcl160.bpl__System_Sysutils_UpperCase_qqrx20System_UnicodeString
push dword [ebp - 0x30]
push 0x43bdf4
lea eax, [ebp - 0x2c]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
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, ebx
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
jne 0x43bae6
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_GetFieldCount_qqrv
dec eax
test eax, eax
jle 0x43bae6
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x40]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov eax, dword [ebp - 0x38]
push eax
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x43be08
call sub.RtlVcl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov ecx, dword [ebp - 0x48]
lea eax, [ebp - 0x44]
mov edx, 0x43be20
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x44]
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x40]
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x3c]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
mov edx, dword [ebp - 0x3c]
pop eax
call sub.RtlVcl160.bpl__System__UStrEqual_qqrv
jne 0x43bade
mov byte [ebp - 0x15], 1
jmp 0x43bae6
inc dword [ebp - 0x20]
dec dword [ebp - 0x24]
jne 0x43ba6d
cmp byte [ebp - 0x15], 0
je 0x43bcd8
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
push 0x43bda4
push dword [ebp - 4]
push 0x43bdf4
lea eax, [ebp - 0x58]
mov edx, 3
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
mov edx, dword [ebp - 0x58]
lea eax, [ebp - 0x54]
call sub.RtlVcl160.bpl__System__WStrFromUStr_qqrr17System_WideStringx20System_UnicodeString
mov edx, dword [ebp - 0x54]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x328]
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Open_qqrv
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_IsEmpty_qqrv
test al, al
jne 0x43bcd8
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_GetFieldCount_qqrv
dec eax
test eax, eax
jle 0x43bcd8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 1
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x418]
mov eax, esi
call fcn.0043b3c0
test al, al
je 0x43bccc
lea eax, [ebp - 0xc]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0
lea edx, [ebp - 0x50]
xor ecx, ecx
mov eax, 0x43be08
call sub.RtlVcl160.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x43be20
call sub.RtlVcl160.bpl__System__UStrCat3_qqrr20System_UnicodeStringx20System_UnicodeStringt2
mov edx, dword [ebp - 0x60]
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_FieldByName_qqrx20System_UnicodeString
lea edx, [ebp - 0x5c]
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, dword [ebp - 0x5c]
lea edx, [ebp - 8]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [esi + 0x418]
mov eax, esi
call fcn.0043b500
cmp dword [ebp - 0x10], 0
je 0x43bccc
cmp dword [ebp - 8], 0
je 0x43bccc
mov edx, 0x43be34
mov eax, dword [ebp - 0x10]
call fcn.0040eda4
mov edi, eax
test edi, edi
jle 0x43bc69
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
je 0x43bc1c
lea eax, [ebp - 0xc]
mov edx, 0x43be44
call sub.RtlVcl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push dword [ebp - 0xc]
push 0x43be54
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, 0x43be34
mov eax, dword [ebp - 0x10]
call fcn.0040eeb4
mov eax, dword [ebp - 0x6c]
mov ecx, 1
mov edx, 0x43be64
call fcn.0040eeb4
push dword [ebp - 0x68]
push 0x43be54
lea eax, [ebp - 0xc]
mov edx, 4
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
inc dword [ebp - 0x1c]
dec edi
jne 0x43bc09
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 0xc]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x70], 0
je 0x43bccc
lea edx, [ebp - 0x74]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call sub.RtlVcl160.bpl__System_Sysutils_Trim_qqrx20System_UnicodeString
cmp dword [ebp - 0x74], 0
je 0x43bc9d
mov eax, dword [ebp - 0x14]
mov edx, 0x43be74
call sub.RtlVcl160.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
push dword [eax]
push 0x43be8c
push dword [ebp - 4]
push 0x43be9c
push dword [ebp - 8]
push 0x43beac
push dword [ebp - 0xc]
push 0x43bec4
mov eax, dword [ebp - 0x14]
mov edx, 8
call sub.RtlVcl160.bpl__System__UStrCatN_qqrv
inc dword [ebp - 0x20]
dec dword [ebp - 0x24]
jne 0x43bb59
mov eax, ebx
call sub.PublicPkg160.bpl__Data_Db_TDataSet_Close_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bd40
lea eax, [ebp - 0x74]
mov edx, 8
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x54]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x48]
mov edx, 5
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x34]
call sub.RtlVcl160.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 0x30]
mov edx, 2
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x28]
call sub.RtlVcl160.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x10]
mov edx, 4
call sub.RtlVcl160.bpl__System__UStrArrayClr_qqrpvi
ret