Function at 0x41bb450
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xe
push 0
push 0
dec ecx
jne 0x41bb459
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41bb74f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x41bb6f2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
xor ecx, ecx
mov dl, 1
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x5c0]
call sub.cxEditorsVCLD6.bpl__Cxcheckbox_TcxCustomCheckBox_GetChecked_qqrv
test al, al
je 0x41bb5b7
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x41bb768
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov ecx, dword [ebp - 0xc]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a178
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41bb59c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x40]
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 - 0x40]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x34]
push eax
push 3
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x41bb7a4
mov eax, dword [0x41997b8]
call fcn.04199ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
cmp byte [eax + 0xa1], 0
je 0x41bb50e
jmp 0x41bb6d2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41bb6bc
lea eax, [ebp - 0x64]
push eax
lea edx, [ebp - 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x68]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x5c], 0xb
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x54], 0
lea eax, [ebp - 0x60]
push eax
push 1
lea eax, [ebp - 0x50]
push eax
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x41bb810
mov eax, dword [0x41997b8]
call fcn.0419a254
lea eax, [ebp - 0x50]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test eax, eax
jg 0x41bb6ae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
lea eax, [ebp - 0x6c]
push eax
lea edx, [ebp - 0x70]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x468]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x70]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x74]
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 - 0x74]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x34]
push eax
push 3
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x41bb7a4
mov eax, dword [0x41997b8]
call fcn.04199ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x328]
cmp byte [eax + 0xa1], 0
je 0x41bb5ca
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x398]
mov edx, 0x41bb864
mov eax, dword [ebp - 4]
call fcn.041baec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41bb712
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bb756
lea eax, [ebp - 0x74]
mov edx, 5
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x50]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x40]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret