Function at 0x41bb8ac
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x10
push 0
push 0
dec ecx
jne 0x41bb8b5
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 0x41bbbf5
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x41bbb95
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x758]
call sub.dbrtl60.bpl__Db_TDataSet_Close_qqrv
push 0
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x758]
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 0x41bba3f
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, 0x41bbc0c
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 + 0x758]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41bba24
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x76c]
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 + 0x770]
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 + 0x774]
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, 0x41bbc48
mov eax, dword [0x41997b8]
call fcn.04199ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x758]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x758]
cmp byte [eax + 0xa1], 0
je 0x41bb96a
jmp 0x41bbb75
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x758]
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41bbb5f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x76c]
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, 0x41bbcc0
mov eax, dword [0x41997b8]
call fcn.0419a254
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test eax, eax
jg 0x41bbb51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x76c]
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 + 0x770]
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 + 0x774]
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, 0x41bbd14
mov eax, dword [0x41997b8]
call fcn.04199ff0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x758]
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x758]
cmp byte [eax + 0xa1], 0
je 0x41bba52
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x398]
mov edx, 0x41bbd8c
mov eax, dword [ebp - 4]
call fcn.041baec8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41bbbb5
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41bbbfc
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