Function at 0x473ac0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x473ac9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
mov esi, eax
xor eax, eax
push ebp
push 0x473d64
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x473d34
cmp dword [ebp - 0x10], 0
je 0x473b10
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
xor edx, edx
call sub.rtl250.bpl__System_Sysutils_StrToIntDef_qqrx20System_UnicodeStringi
mov ebx, eax
jmp 0x473b15
mov ebx, 1
test ebx, ebx
jle 0x473d34
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x24]
xor ecx, ecx
mov eax, 0x473d80
call sub.rtl250.bpl__System_Sysutils_Format_qqrx20System_UnicodeStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.0041a720
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x473d2d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.0041bfc4
jmp 0x473d07
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.00423b5c
test al, al
je 0x473b78
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x473d34
lea ecx, [ebp - 0x28]
mov edx, 0x473e30
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov eax, dword [ebp - 0x28]
mov edx, 0x473e48
call sub.rtl250.bpl__System__UStrEqual_qqrv
je 0x473cff
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x2c]
mov edx, 0x473e58
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x18]
call sub.rtl250.bpl__System_Sysutils_TryStrToInt_qqrx20System_UnicodeStringri
lea eax, [ebp - 4]
mov edx, dword [sym.imp.rtl250.bpl__System_Sysutils_EmptyStr]
mov edx, dword [edx]
call sub.rtl250.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [0x41ca14]
call fcn.0041cda8
push 7
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.00424998
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x46fc74]
call fcn.004123d8
mov ebx, eax
mov byte [ebx + 0x41], 1
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 4]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 0x34]
mov edx, 0x473e6c
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov edx, dword [ebp - 0x34]
lea eax, [ebx + 0x18]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x28], eax
lea ecx, [ebp - 0x38]
mov edx, 0x473e30
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov eax, dword [ebp - 0x38]
mov edx, 0x473e84
call sub.rtl250.bpl__System__UStrEqual_qqrv
sete al
mov byte [ebx + 0x20], al
lea ecx, [ebp - 0x3c]
mov edx, 0x473e94
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov edx, dword [ebp - 0x3c]
lea eax, [ebx + 0x34]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 0x40]
mov edx, 0x473e58
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov edx, dword [ebp - 0x40]
lea eax, [ebx + 0x38]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 0x44]
mov edx, 0x473ea8
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x30]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea ecx, [ebp - 0x48]
mov edx, 0x473ec4
mov eax, dword [ebp - 0x14]
call fcn.0041b6e4
mov edx, dword [ebp - 0x48]
lea eax, [ebx + 0x3c]
call sub.rtl250.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov ecx, dword [ebp + 8]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x3c]
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x473ce4
call sub.rtl250.bpl__System__TryFinallyExit_qqrv
jmp 0x473d34
cmp byte [ebx + 0x20], 0
je 0x473cff
mov eax, dword [ebp + 0xc]
inc eax
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00473ac0
mov eax, dword [ebp - 0x14]
call fcn.0041bf84
mov eax, dword [ebp - 0x14]
call fcn.0041b6d0
test al, al
je 0x473b60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473d34
lea eax, [ebp - 0x14]
call sub.rtl250.bpl__System_Sysutils_FreeAndNil_qqrpv
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473d6b
lea eax, [ebp - 0x48]
mov edx, 9
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
lea eax, [ebp - 0x1c]
call sub.rtl250.bpl__System__UStrClr_qqrpv
lea eax, [ebp - 8]
mov edx, 2
call sub.rtl250.bpl__System__UStrArrayClr_qqrpvi
ret