Function at 0x41c973c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x2a
push 0
push 0
dec ecx
jne 0x41c9745
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x1c]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41ca00a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x268]
mov eax, esi
call sub.adortl60.bpl__Adodb_TCustomADODataSet_GetParameters_qqrv
xor edx, edx
call sub.adortl60.bpl__Adodb_TParameters_GetItem_qqri
push eax
lea eax, [ebp - 0x44]
mov edx, ebx
call sub.rtl60.bpl__System__VarFromBool_qqrr14System_Variantxo
lea edx, [ebp - 0x44]
pop eax
call sub.adortl60.bpl__Adodb_TParameter_SetValue_qqrrx14System_Variant
mov eax, esi
call sub.adortl60.bpl__Adodb_TCustomADODataSet_GetParameters_qqrv
mov edx, 1
call sub.adortl60.bpl__Adodb_TParameters_GetItem_qqri
push eax
lea eax, [ebp - 0x54]
mov edx, edi
mov cl, 0xfc
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea edx, [ebp - 0x54]
pop eax
call sub.adortl60.bpl__Adodb_TParameter_SetValue_qqrrx14System_Variant
mov eax, esi
call sub.adortl60.bpl__Adodb_TCustomADODataSet_GetParameters_qqrv
mov edx, 2
call sub.adortl60.bpl__Adodb_TParameters_GetItem_qqri
push eax
lea eax, [ebp - 0x64]
mov edx, dword [ebp + 0xc]
mov cl, 0xfc
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea edx, [ebp - 0x64]
pop eax
call sub.adortl60.bpl__Adodb_TParameter_SetValue_qqrrx14System_Variant
mov eax, esi
call sub.adortl60.bpl__Adodb_TCustomADODataSet_GetParameters_qqrv
mov edx, 3
call sub.adortl60.bpl__Adodb_TParameters_GetItem_qqri
push eax
lea eax, [ebp - 0x74]
mov edx, ebx
call sub.rtl60.bpl__System__VarFromBool_qqrr14System_Variantxo
lea edx, [ebp - 0x74]
pop eax
call sub.adortl60.bpl__Adodb_TParameter_SetValue_qqrrx14System_Variant
mov eax, esi
call sub.adortl60.bpl__Adodb_TCustomADODataSet_GetParameters_qqrv
mov edx, 4
call sub.adortl60.bpl__Adodb_TParameters_GetItem_qqri
push eax
lea eax, [ebp - 0x84]
mov edx, edi
mov cl, 0xfc
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea edx, [ebp - 0x84]
pop eax
call sub.adortl60.bpl__Adodb_TParameter_SetValue_qqrrx14System_Variant
mov eax, esi
call sub.adortl60.bpl__Adodb_TCustomADODataSet_GetParameters_qqrv
mov edx, 5
call sub.adortl60.bpl__Adodb_TParameters_GetItem_qqri
push eax
lea eax, [ebp - 0x94]
mov edx, dword [ebp + 0xc]
mov cl, 0xfc
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea edx, [ebp - 0x94]
pop eax
call sub.adortl60.bpl__Adodb_TParameter_SetValue_qqrrx14System_Variant
mov eax, esi
call sub.adortl60.bpl__Adodb_TCustomADODataSet_GetParameters_qqrv
mov edx, 6
call sub.adortl60.bpl__Adodb_TParameters_GetItem_qqri
push eax
fld qword [ebp + 0x10]
lea eax, [ebp - 0xa4]
call sub.rtl60.bpl__System__VarFromTDateTime_qqrv
lea edx, [ebp - 0xa4]
pop eax
call sub.adortl60.bpl__Adodb_TParameter_SetValue_qqrrx14System_Variant
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, esi
call sub.VEDatasets.bpl__Vedataset_TVEDataset_ParseSqlString_qqroiii
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xb4]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xb8]
push eax
push 0x41ca028
lea edx, [ebp - 0xc0]
mov eax, dword [ebp + 0xc]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0xc0]
push 0x41ca064
lea edx, [ebp - 0xc4]
mov eax, edi
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0xc4]
lea eax, [ebp - 0xbc]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0xbc]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0xb8]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea edx, [ebp - 0xb4]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
test bl, bl
jne 0x41c999a
cmp byte [ebp + 8], 0
jne 0x41c999a
push ebp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, 0xd
call fcn.041c95cc
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x41c99dc
test bl, bl
je 0x41c99be
cmp byte [ebp + 8], 0
jne 0x41c99be
push ebp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, 0xc
call fcn.041c95cc
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x41c99dc
cmp byte [ebp + 8], 0
je 0x41c99dc
push ebp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, dword [ebp - 0xc]
mov eax, 0xb
call fcn.041c95cc
pop ecx
mov dword [ebp - 0x10], eax
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_First_qqrv
jmp 0x41c9c8f
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9c88
mov edx, 0x41ca090
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
test eax, eax
jne 0x41c9aab
push 0
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0xc8]
call fcn.04192398
mov eax, dword [ebp - 0xc8]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
mov eax, 1
call fcn.041a3cf8
cmp byte [ebp + 8], 0
jne 0x41c9a8e
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
fadd qword [ebp - 0x18]
fstp qword [ebp - 0x18]
wait
jmp 0x41c9c88
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
fadd qword [ebp - 0x30]
fstp qword [ebp - 0x30]
wait
jmp 0x41c9c88
mov edx, 0x41ca090
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
cmp eax, 2
jne 0x41c9c08
push 0
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0xcc]
call fcn.04192398
mov eax, dword [ebp - 0xcc]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
mov eax, 0xa
call fcn.041a3cf8
lea eax, [ebp - 0xdc]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0xe0]
push eax
mov edx, 0x41ca0a4
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
lea edx, [ebp - 0xe8]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0xe8]
lea eax, [ebp - 0xe4]
mov edx, 0x41ca0b8
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0xe4]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0xe0]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea edx, [ebp - 0xdc]
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
lea eax, [ebp - 0xfc]
mov ecx, dword [ebp - 0x34]
mov edx, 0x41ca0f4
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0xfc]
lea eax, [ebp - 0xf8]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
push dword [ebp - 0xec]
push dword [ebp - 0xf0]
push dword [ebp - 0xf4]
push dword [ebp - 0xf8]
push 0x41ca108
mov eax, dword [0x41cfea4]
mov eax, dword [eax]
push eax
mov eax, dword [eax]
call dword [eax + 0x188]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x28]
wait
jmp 0x41c9c88
mov edx, 0x41ca090
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
dec eax
jne 0x41c9c88
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0x3ff00000
push 0
lea eax, [ebp - 0x100]
call fcn.04192398
mov eax, dword [ebp - 0x100]
push eax
mov edx, 0x41ca124
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
xor ecx, ecx
mov eax, dword [ebp - 0xc]
call fcn.041a52d4
mov edx, 0x41ca07c
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_FieldByName_qqrx17System_AnsiString
mov edx, dword [eax]
call dword [edx + 0x54]
fadd qword [ebp - 0x20]
fstp qword [ebp - 0x20]
wait
mov eax, esi
call sub.dbrtl60.bpl__Db_TDataSet_Next_qqrv
cmp byte [esi + 0xa1], 0
je 0x41c99e8
call fcn.041a58fc
test bl, bl
jne 0x41c9e4e
fld qword [ebp - 0x18]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9d10
fld qword [ebp - 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x108]
mov eax, 0x41ca138
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x108]
push 0x41ca148
lea eax, [ebp - 0x10c]
call fcn.04192398
push dword [ebp - 0x10c]
push 0x41ca154
lea eax, [ebp - 0x104]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x104]
mov eax, dword [ebp - 8]
call fcn.041c6080
fld qword [ebp - 0x20]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9d77
fld qword [ebp - 0x20]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x114]
mov eax, 0x41ca138
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x114]
push 0x41ca148
lea eax, [ebp - 0x118]
call fcn.04192398
push dword [ebp - 0x118]
push 0x41ca170
lea eax, [ebp - 0x110]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 8]
call fcn.041c6080
fld qword [ebp - 0x28]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9dde
fld qword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x120]
mov eax, 0x41ca138
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x120]
push 0x41ca148
lea eax, [ebp - 0x124]
call fcn.04192398
push dword [ebp - 0x124]
push 0x41ca18c
lea eax, [ebp - 0x11c]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 8]
call fcn.041c6080
fld qword [ebp - 0x30]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9f83
fld qword [ebp - 0x30]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x12c]
mov eax, 0x41ca138
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x12c]
push 0x41ca148
lea eax, [ebp - 0x130]
call fcn.04192398
push dword [ebp - 0x130]
push 0x41ca1b0
lea eax, [ebp - 0x128]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x128]
mov eax, dword [ebp - 8]
call fcn.041c6080
jmp 0x41c9f83
fld qword [ebp - 0x18]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9eb5
fld qword [ebp - 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x138]
mov eax, 0x41ca138
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x138]
push 0x41ca148
lea eax, [ebp - 0x13c]
call fcn.04192398
push dword [ebp - 0x13c]
push 0x41ca1d4
lea eax, [ebp - 0x134]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 8]
call fcn.041c6080
fld qword [ebp - 0x20]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9f1c
fld qword [ebp - 0x20]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x144]
mov eax, 0x41ca138
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x144]
push 0x41ca148
lea eax, [ebp - 0x148]
call fcn.04192398
push dword [ebp - 0x148]
push 0x41ca1f8
lea eax, [ebp - 0x140]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 8]
call fcn.041c6080
fld qword [ebp - 0x28]
fcomp dword [0x41ca084]
fnstsw ax
sahf
jbe 0x41c9f83
fld qword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x150]
mov eax, 0x41ca138
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x150]
push 0x41ca148
lea eax, [ebp - 0x154]
call fcn.04192398
push dword [ebp - 0x154]
push 0x41ca218
lea eax, [ebp - 0x14c]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x14c]
mov eax, dword [ebp - 8]
call fcn.041c6080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ca014
lea eax, [ebp - 0x154]
mov edx, 0x17
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xf8]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xe8]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xdc]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0xcc]
mov edx, 6
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0xb4]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 8
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp + 0x1c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret