Function at 0x41ad458
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x41ad461
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41ad771
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
mov eax, dword [ebx + 0x12cc]
call sub.cxEditorsVCLD6.bpl__Cxcheckbox_TcxCustomCheckBox_GetChecked_qqrv
test al, al
je 0x41ad651
mov eax, dword [esi + 0xc]
dec eax
je 0x41ad4c1
dec eax
je 0x41ad4c8
dec eax
je 0x41ad53e
dec eax
je 0x41ad5b1
jmp 0x41ad622
xor edi, edi
jmp 0x41ad622
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x34]
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 - 0x34]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41ad78c
mov eax, dword [0x4198e74]
call fcn.041994f0
mov ecx, dword [ebp - 0x20]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x4198e74]
call fcn.041991e0
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
jmp 0x41ad622
lea eax, [ebp - 0x44]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x4c]
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 - 0x4c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41ad78c
mov eax, dword [0x4198e74]
call fcn.041994f0
mov ecx, dword [ebp - 0x48]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x4198e74]
call fcn.041991e0
lea eax, [ebp - 0x44]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
jmp 0x41ad622
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
lea eax, [ebp - 0x64]
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 - 0x64]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea eax, [ebp - 0x30]
push eax
push 1
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41ad78c
mov eax, dword [0x4198e74]
call fcn.041994f0
mov ecx, dword [ebp - 0x60]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x4198e74]
call fcn.041991e0
lea eax, [ebp - 0x5c]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
test edi, edi
jne 0x41ad635
lea eax, [ebp - 0xc]
mov edx, 0x41ad7dc
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
jmp 0x41ad65e
lea edx, [ebp - 0x68]
mov eax, edi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x68]
lea eax, [ebp - 0xc]
mov edx, 0x41ad7e8
call sub.rtl60.bpl__System__LStrCat3_qqrv
jmp 0x41ad65e
lea eax, [ebp - 0xc]
mov edx, 0x41ad7dc
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBox_GetProperties_qqrv
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBoxProperties_GetItems_qqrv
mov edx, dword [eax]
call dword [edx + 0x44]
mov ecx, ebx
mov dl, 1
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_TVEDataset_]
call sub.VEDatasets.bpl__Vedataset_TVEDataset__bctr_qqrp18Classes_TComponent
mov ebx, eax
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x268]
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0xb
lea edx, [ebp - 0x30]
mov ecx, 1
mov eax, 0x41ad7fc
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x2b4]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, ebx
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
jmp 0x41ad70b
mov edx, 0x41ad850
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
lea edx, [ebp - 0x70]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x70]
push eax
mov eax, esi
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBox_GetProperties_qqrv
call sub.cxEditorsVCLD6.bpl__Cxdropdownedit_TcxCustomComboBoxProperties_GetItems_qqrv
pop edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
cmp byte [ebx + 0xa1], 0
je 0x41ad6da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ad778
lea eax, [ebp - 0x70]
mov edx, 5
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x5c]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x4c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x44]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x20]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xc]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret