Function at 0x41bc828
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x41bc831
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 0x41bcb71
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x41bcb11
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x75c]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x75c]
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 0x41bc9bb
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, 0x41bcb88
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 + 0x75c]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41bc9a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x760]
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x40]
push eax
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x764]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x44]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x768]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x4c]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x50]
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 - 0x50]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x3c]
push eax
push 4
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x41bcbc0
mov eax, dword [0x41997b8]
call fcn.04199ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x75c]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x75c]
cmp byte [eax + 0xa1], 0
je 0x41bc8e6
jmp 0x41bcaf1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x75c]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41bcadb
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x760]
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x70], eax
mov byte [ebp - 0x6c], 0
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x64], 0
lea eax, [ebp - 0x70]
push eax
push 1
lea eax, [ebp - 0x60]
push eax
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x41bcc30
mov eax, dword [0x41997b8]
call fcn.0419a254
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test eax, eax
jg 0x41bcacd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x760]
mov edx, dword [eax]
call dword [edx + 0x58]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
lea eax, [ebp - 0x74]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x764]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x78]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea eax, [ebp - 0x7c]
push eax
lea edx, [ebp - 0x80]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x768]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x80]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x84]
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 - 0x84]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea eax, [ebp - 0x3c]
push eax
push 4
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov ecx, 0x41bcc7c
mov eax, dword [0x41997b8]
call fcn.04199ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x75c]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x75c]
cmp byte [eax + 0xa1], 0
je 0x41bc9ce
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x398]
mov edx, 0x41bccec
mov eax, dword [ebp - 4]
call fcn.041baec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41bcb31
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bcb78
lea eax, [ebp - 0x84]
mov edx, 5
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x50]
mov edx, 5
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret