Function at 0x41ad330
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x41ad339
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 0x41ad649
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 0x41ad529
mov eax, dword [esi + 0xc]
dec eax
je 0x41ad399
dec eax
je 0x41ad3a0
dec eax
je 0x41ad416
dec eax
je 0x41ad489
jmp 0x41ad4fa
xor edi, edi
jmp 0x41ad4fa
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, 0x41ad664
mov eax, dword [0x4198d5c]
call fcn.041993d8
mov ecx, dword [ebp - 0x20]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x4198d5c]
call fcn.041990c8
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
jmp 0x41ad4fa
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, 0x41ad664
mov eax, dword [0x4198d5c]
call fcn.041993d8
mov ecx, dword [ebp - 0x48]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x4198d5c]
call fcn.041990c8
lea eax, [ebp - 0x44]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
jmp 0x41ad4fa
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, 0x41ad664
mov eax, dword [0x4198d5c]
call fcn.041993d8
mov ecx, dword [ebp - 0x60]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x4198d5c]
call fcn.041990c8
lea eax, [ebp - 0x5c]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
mov edi, eax
test edi, edi
jne 0x41ad50d
lea eax, [ebp - 0xc]
mov edx, 0x41ad6b4
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
jmp 0x41ad536
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, 0x41ad6c0
call sub.rtl60.bpl__System__LStrCat3_qqrv
jmp 0x41ad536
lea eax, [ebp - 0xc]
mov edx, 0x41ad6b4
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, 0x41ad6d4
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 0x41ad5e3
mov edx, 0x41ad728
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 0x41ad5b2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ad650
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