Function at 0x41d1ad0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x1d
push 0
push 0
dec ecx
jne 0x41d1ad8
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41d1f85
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call sub.rtl60.bpl__System__LStrLAsg_qqrpvpxv
cmp dword [ebp - 4], 0
je 0x41d1b82
mov eax, dword [esi + 0x318]
call sub.cxGridVCLD6.bpl__Cxgridtableview_TcxGridTableView_GetController_qqrv
call sub.cxGridVCLD6.bpl__Cxgridtableview_TcxGridTableController_GetFocusedColumn_qqrv
mov eax, dword [eax + 8]
mov edx, 0x41d1fa0
call sub.rtl60.bpl__System__LStrCmp_qqrv
jne 0x41d1b82
push 1
push 1
lea eax, [ebp - 0x34]
push eax
or ecx, 0xffffffff
mov dl, 0x27
mov eax, dword [ebp - 4]
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
mov edx, 0x41d1fb8
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov eax, dword [eax]
mov edx, 0xfffffffd
call fcn.041d06fc
lea edx, [ebp - 0x2c]
mov eax, 0x41f71b0
mov ecx, dword [0x419a738]
call sub.rtl60.bpl__System__CopyRecord_qqrv
jmp 0x41d1c53
cmp dword [ebp - 4], 0
je 0x41d1c18
mov eax, dword [esi + 0x318]
call sub.cxGridVCLD6.bpl__Cxgridtableview_TcxGridTableView_GetController_qqrv
call sub.cxGridVCLD6.bpl__Cxgridtableview_TcxGridTableController_GetFocusedColumn_qqrv
mov eax, dword [eax + 8]
mov edx, 0x41d1fcc
call sub.rtl60.bpl__System__LStrCmp_qqrv
jne 0x41d1c18
push 1
push 1
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
mov ecx, 0x41d1fe4
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x68]
or ecx, 0xffffffff
mov dl, 0x27
call sub.vegalib60.bpl__Strtools_QS_qqr17System_AnsiStringci
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x60]
mov edx, 0x41d1ff0
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov eax, dword [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov eax, dword [eax]
mov edx, 0xfffffffd
call fcn.041d06fc
lea edx, [ebp - 0x5c]
mov eax, 0x41f71b0
mov ecx, dword [0x419a738]
call sub.rtl60.bpl__System__CopyRecord_qqrv
jmp 0x41d1c53
push 1
push 1
push 0
lea eax, [ebp - 0x90]
push eax
mov eax, dword [sym.imp.vcl60.bpl__Forms_Application]
mov eax, dword [eax]
mov ecx, dword [eax + 0x30]
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov eax, dword [eax]
xor edx, edx
call fcn.041d06fc
lea edx, [ebp - 0x90]
mov eax, 0x41f71b0
mov ecx, dword [0x419a738]
call sub.rtl60.bpl__System__CopyRecord_qqrv
cmp dword [0x41f71b4], 0x64
jl 0x41d1ed6
mov eax, dword [esi + 0x328]
call sub.dbrtl60.bpl__Db_TDataSet_Edit_qqrv
mov edx, dword [0x41f71b4]
mov eax, dword [esi + 0x3bc]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
fild dword [0x41f71b8]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x404]
mov edx, dword [eax]
call dword [edx + 0xa4]
lea eax, [ebp - 0x94]
mov edx, dword [0x41f71bc]
call sub.rtl60.bpl__System__LStrFromWStr_qqrr17System_AnsiStringx17System_WideString
mov edx, dword [ebp - 0x94]
mov eax, dword [esi + 0x3c0]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
lea eax, [ebp - 0x98]
mov edx, dword [0x41f71c0]
call sub.rtl60.bpl__System__LStrFromWStr_qqrr17System_AnsiStringx17System_WideString
mov edx, dword [ebp - 0x98]
mov eax, dword [esi + 0x3c4]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov edx, dword [0x41f71c4]
mov eax, dword [esi + 0x408]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
push 0x3ff00000
push 0
mov eax, dword [esi + 0x3c8]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [0x41f71b4]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0
mov eax, dword [0x41f71c4]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0
lea eax, [ebp - 0xbc]
push eax
push 1
lea eax, [ebp - 0xac]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xc0]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41d200c
mov eax, dword [0x41993a8]
call fcn.04199e58
mov ecx, dword [ebp - 0xc0]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41993a8]
call fcn.04199918
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x9c]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
mov edx, dword [ebp - 0x9c]
mov eax, dword [esi + 0x3cc]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [0x41f71b4]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0
mov eax, dword [0x41f71c4]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0
lea eax, [ebp - 0xbc]
push eax
push 1
lea eax, [ebp - 0xd0]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xd4]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41d205c
mov eax, dword [0x41993a8]
call fcn.04199e58
mov ecx, dword [ebp - 0xd4]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41993a8]
call fcn.04199918
lea eax, [ebp - 0xd0]
call sub.rtl60.bpl__System__VarToReal_qqrrx14System_Variant
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x3d4]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [0x41f71b4]
mov dword [ebp - 0xbc], eax
mov byte [ebp - 0xb8], 0
mov eax, dword [0x41f71c4]
mov dword [ebp - 0xb4], eax
mov byte [ebp - 0xb0], 0
lea eax, [ebp - 0xbc]
push eax
push 1
lea eax, [ebp - 0xe4]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xe8]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41d20b0
mov eax, dword [0x41993a8]
call fcn.04199e58
mov ecx, dword [ebp - 0xe8]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41993a8]
call fcn.04199918
lea eax, [ebp - 0xe4]
call sub.rtl60.bpl__System__VarToReal_qqrrx14System_Variant
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x3d0]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [esi + 0x328]
mov edx, dword [eax]
call dword [edx + 0x248]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d1f8f
lea eax, [ebp - 0xe8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xe4]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xd4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xd0]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xc0]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0xac]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x9c]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x90]
mov edx, dword [0x419a738]
call sub.rtl60.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x68]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x5c]
mov edx, dword [0x419a738]
call sub.rtl60.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 0x34]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x2c]
mov edx, dword [0x419a738]
call sub.rtl60.bpl__System__FinalizeRecord_qqrpvt1
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret