Function at 0x41a7110
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x41a7118
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41a735c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x32c]
mov edx, dword [eax]
call dword [edx + 0xc0]
cmp dword [ebp - 0xc], 0
je 0x41a7160
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.041a6dd0
jmp 0x41a7162
xor eax, eax
test eax, eax
jle 0x41a7172
push ebp
call fcn.041a6f28
pop ecx
jmp 0x41a72e7
lea edx, [ebp - 0x14]
mov eax, dword [0x41aaf30]
call sub.rtl60.bpl__Comobj_CreateComObject_qqrrx5_GUID
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
mov ecx, 0x41a7368
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 - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x20]
xor edx, edx
mov eax, dword [ebp - 0x10]
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 - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
mov ebx, dword [eax + 0x30c]
mov eax, dword [ebx + 0x2cc]
push eax
lea eax, [ebp - 0x34]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp - 0xc]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0xb
lea eax, [ebp - 0x30]
push eax
push 0
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebx + 0x2c8]
mov edx, 0x41a7380
mov eax, dword [0x419a8d8]
call fcn.0419ab84
mov ecx, dword [ebp - 0x28]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x419a8d8]
call fcn.0419a9fc
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov ebx, eax
test ebx, ebx
jle 0x41a7235
push ebp
mov eax, ebx
call fcn.041a6f28
pop ecx
test ebx, ebx
jne 0x41a72e7
lea eax, [ebp - 0x40]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp - 0xc]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, 0x41a73c0
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x3c]
lea eax, [ebp - 0x38]
call sub.rtl60.bpl__System__WStrFromLStr_qqrr17System_WideStringx17System_AnsiString
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov edx, 0xfffffffd
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
cmp dword [ebp - 0x44], 1
jne 0x41a72b7
push ebp
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, dword [ebp - 0x44]
call fcn.041a6f28
pop ecx
jmp 0x41a72e7
lea eax, [ebp - 0x48]
mov ecx, 0x41a73d4
mov edx, dword [ebp - 0xc]
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x48]
mov edx, 0x40
call sub.vegalib60.bpl__Strtools_Mess_qqr17System_AnsiStringi
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x334]
mov eax, dword [0x419a8d8]
call fcn.0419a948
mov eax, dword [ebp - 8]
call fcn.041a79dc
test al, al
je 0x41a7301
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x334]
call sub.dbrtl60.bpl__Db_TDataSet_Append_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a7363
lea eax, [ebp - 0x48]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x40]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x38]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x28]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x24]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0x10]
call sub.rtl60.bpl__System__IntfClear_qqrr45System__DelphiInterface_t17System_IInterface_
lea eax, [ebp - 0xc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret