Function at 0x419d6e8
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x419d6f0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x419d895
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x340]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
lea eax, [ebp - 0x28]
mov edx, 0x419d8ac
call sub.rtl60.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x28]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0xb
lea edx, [ebp - 0x34]
mov eax, dword [ebx + 0x340]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebx + 0x348]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov edx, dword [ebp - 0x38]
pop eax
call sub.rtl60.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x30]
call sub.rtl60.bpl__System__LStrLen_qqrx17System_AnsiString
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
call sub.VEDatasets.bpl__Vedataset_Connection_qqrv
mov edx, eax
mov ecx, 0x419d8b8
mov eax, dword [0x4198f70]
call fcn.04199648
lea edx, [ebp - 0x10]
mov eax, esi
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
cmp dword [esi], 0
je 0x419d7e4
lea ecx, [ebp - 0x40]
mov eax, dword [esi]
mov edx, 1
call fcn.0419ae60
mov edx, dword [ebp - 0x40]
mov eax, esi
call sub.rtl60.bpl__System__LStrAsg_qqrpvpxv
jmp 0x419d825
lea edx, [ebp - 0x48]
mov eax, dword [ebx + 0x348]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov eax, dword [ebp - 0x44]
push eax
lea edx, [ebp - 0x50]
mov eax, dword [ebx + 0x340]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
mov eax, dword [ebp - 0x50]
lea edx, [ebp - 0x4c]
call sub.rtl60.bpl__Sysutils_Trim_qqrx17System_AnsiString
mov edx, dword [ebp - 0x4c]
mov eax, esi
pop ecx
call sub.rtl60.bpl__System__LStrCat3_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419d89c
lea eax, [ebp - 0x50]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x4c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x48]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x44]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x3c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x38]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x30]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x2c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x28]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
ret