Function at 0x419ed6c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x419ed74
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x419ef89
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x419edac
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0419eb04
jmp 0x419edae
xor eax, eax
test eax, eax
jle 0x419edbe
push ebp
call fcn.0419ec5c
pop ecx
jmp 0x419ef2e
lea edx, [ebp - 0x10]
mov eax, dword [0x41a1dd8]
call sub.rtl60.bpl__Comobj_CreateComObject_qqrrx5_GUID
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov ecx, 0x419ef98
call sub.rtl60.bpl__System__IntfCast_qqrr45System__DelphiInterface_t17System_IInterface_x45System__DelphiInterface_t17System_IInter
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x20]
xor edx, edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x378]
mov eax, dword [ebx + 0x2cc]
push eax
lea eax, [ebp - 0x30]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp - 8]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebx + 0x2c8]
mov edx, 0x419efb0
mov eax, dword [0x4199b8c]
call fcn.04199f7c
mov ecx, dword [ebp - 0x24]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x4199b8c]
call fcn.04199cb4
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov ebx, eax
test ebx, ebx
jle 0x419ee81
push ebp
mov eax, ebx
call fcn.0419ec5c
pop ecx
test ebx, ebx
jne 0x419ef2e
lea eax, [ebp - 0x3c]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp - 8]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
mov edx, 0x419eff0
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__WStrFromLStr_qqrr17System_WideStringx17System_AnsiString
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0xfffffffd
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
cmp dword [ebp - 0x40], 1
jne 0x419ef03
push ebp
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, dword [ebp - 0x40]
call fcn.0419ec5c
pop ecx
jmp 0x419ef2e
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3b0]
call sub.vcl60.bpl__Controls_TControl_GetText_qqrv
lea eax, [ebp - 0x44]
mov edx, 0x419f004
call sub.rtl60.bpl__System__LStrCat_qqrv
mov eax, dword [ebp - 0x44]
mov edx, 0x40
call sub.vegalib60.bpl__Strtools_Mess_qqr17System_AnsiStringi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419ef90
lea eax, [ebp - 0x44]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x3c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x30]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret