Function at 0x41c11a0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x41c11a9
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov esi, eax
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0x1c]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 8]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41c17ec
push dword fs:[eax]
mov dword fs:[eax], esp
xor edi, edi
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 - 0x44]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x41c1808
lea edx, [ebp - 0x50]
mov eax, dword [ebp + 0x38]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x50]
push 0x41c1844
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 0xc]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
push dword [ebp - 0x54]
lea eax, [ebp - 0x4c]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x4c]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x48]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea edx, [ebp - 0x44]
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
test bl, bl
jne 0x41c12a4
cmp byte [ebp + 0xc], 0
jne 0x41c12a4
push ebp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov eax, 0xd
call fcn.041c0fe4
pop ecx
mov edi, eax
jmp 0x41c12e4
test bl, bl
je 0x41c12c7
cmp byte [ebp + 0xc], 0
jne 0x41c12c7
push ebp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov eax, 0xc
call fcn.041c0fe4
pop ecx
mov edi, eax
jmp 0x41c12e4
cmp byte [ebp + 0xc], 0
je 0x41c12e4
push ebp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov edx, dword [ebp - 8]
mov eax, 0xb
call fcn.041c0fe4
pop ecx
mov edi, eax
fld qword [ebp + 0x24]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c1494
cmp dword [ebp + 0x2c], 0
jne 0x41c1352
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
mov eax, dword [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x58]
call fcn.04192398
mov eax, dword [ebp - 0x58]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
mov eax, 1
call fcn.041a3cf8
cmp byte [ebp + 0xc], 0
jne 0x41c1343
fld qword [ebp - 0x18]
fadd qword [ebp + 0x24]
fstp qword [ebp - 0x18]
wait
jmp 0x41c1494
fld qword [ebp - 0x30]
fadd qword [ebp + 0x24]
fstp qword [ebp - 0x30]
wait
jmp 0x41c1494
cmp dword [ebp + 0x2c], 2
jne 0x41c1452
push 0
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
mov eax, dword [esi + 0x6c0]
mov edx, dword [eax]
call dword [edx + 0x58]
push eax
push 0
lea eax, [ebp - 0x5c]
call fcn.04192398
mov eax, dword [ebp - 0x5c]
push eax
or ecx, 0xffffffff
or edx, 0xffffffff
mov eax, 0xa
call fcn.041a3cf8
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x70]
push eax
lea edx, [ebp - 0x78]
mov eax, dword [ebp + 0x30]
call sub.rtl60.bpl__Sysutils_IntToStr_qqri
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x41c1860
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x74]
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov eax, dword [0x41997b8]
call fcn.0419aa5c
mov ecx, dword [ebp - 0x70]
mov edx, dword [sym.imp.VEDatasets.bpl__Vedataset_defConnection]
mov edx, dword [edx]
mov eax, dword [0x41997b8]
call fcn.0419a2ec
lea edx, [ebp - 0x6c]
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__VarToLStr_qqrr17System_AnsiStringrx14System_Variant
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x34]
mov edx, 0x41c189c
call sub.rtl60.bpl__System__LStrCat3_qqrv
mov edx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
call sub.rtl60.bpl__System__VarFromLStr_qqrr14System_Variantx17System_AnsiString
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push 0x41c18b0
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
fld qword [ebp - 0x28]
fadd qword [ebp + 0x24]
fstp qword [ebp - 0x28]
wait
jmp 0x41c1494
cmp dword [ebp + 0x2c], 1
jne 0x41c1494
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push 0x3ff00000
push 0
lea eax, [ebp - 0x90]
call fcn.04192398
mov eax, dword [ebp - 0x90]
push eax
xor ecx, ecx
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp - 8]
call fcn.041a52d4
fld qword [ebp - 0x20]
fadd qword [ebp + 0x24]
fstp qword [ebp - 0x20]
wait
call fcn.041a58fc
test bl, bl
jne 0x41c1642
fld qword [ebp - 0x18]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c1507
fld qword [ebp - 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0x98]
mov eax, 0x41c18cc
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0x98]
push 0x41c18dc
lea eax, [ebp - 0x9c]
call fcn.04192398
push dword [ebp - 0x9c]
push 0x41c18e8
lea eax, [ebp - 0x94]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0x94]
mov eax, esi
call fcn.041c6080
fld qword [ebp - 0x20]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c156d
fld qword [ebp - 0x20]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xa4]
mov eax, 0x41c18cc
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0xa4]
push 0x41c18dc
lea eax, [ebp - 0xa8]
call fcn.04192398
push dword [ebp - 0xa8]
push 0x41c1904
lea eax, [ebp - 0xa0]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0xa0]
mov eax, esi
call fcn.041c6080
fld qword [ebp - 0x28]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c15d3
fld qword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xb0]
mov eax, 0x41c18cc
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0xb0]
push 0x41c18dc
lea eax, [ebp - 0xb4]
call fcn.04192398
push dword [ebp - 0xb4]
push 0x41c1920
lea eax, [ebp - 0xac]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0xac]
mov eax, esi
call fcn.041c6080
fld qword [ebp - 0x30]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c1774
fld qword [ebp - 0x30]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xbc]
mov eax, 0x41c18cc
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0xbc]
push 0x41c18dc
lea eax, [ebp - 0xc0]
call fcn.04192398
push dword [ebp - 0xc0]
push 0x41c1940
lea eax, [ebp - 0xb8]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0xb8]
mov eax, esi
call fcn.041c6080
jmp 0x41c1774
fld qword [ebp - 0x18]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c16a8
fld qword [ebp - 0x18]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xc8]
mov eax, 0x41c18cc
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0xc8]
push 0x41c18dc
lea eax, [ebp - 0xcc]
call fcn.04192398
push dword [ebp - 0xcc]
push 0x41c1964
lea eax, [ebp - 0xc4]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0xc4]
mov eax, esi
call fcn.041c6080
fld qword [ebp - 0x20]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c170e
fld qword [ebp - 0x20]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xd4]
mov eax, 0x41c18cc
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0xd4]
push 0x41c18dc
lea eax, [ebp - 0xd8]
call fcn.04192398
push dword [ebp - 0xd8]
push 0x41c1988
lea eax, [ebp - 0xd0]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0xd0]
mov eax, esi
call fcn.041c6080
fld qword [ebp - 0x28]
fcomp dword [0x41c1854]
fnstsw ax
sahf
jbe 0x41c1774
fld qword [ebp - 0x28]
add esp, 0xfffffff4
fstp xword [esp]
wait
lea edx, [ebp - 0xe0]
mov eax, 0x41c18cc
call sub.rtl60.bpl__Sysutils_FormatFloat_qqrx17System_AnsiStringg
push dword [ebp - 0xe0]
push 0x41c18dc
lea eax, [ebp - 0xe4]
call fcn.04192398
push dword [ebp - 0xe4]
push 0x41c19a8
lea eax, [ebp - 0xdc]
mov edx, 4
call sub.rtl60.bpl__System__LStrCatN_qqrv
mov edx, dword [ebp - 0xdc]
mov eax, esi
call fcn.041c6080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c17f3
lea eax, [ebp - 0xe4]
mov edx, 0x17
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x88]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x78]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x6c]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x5c]
mov edx, 6
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 - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp + 8]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp + 0x1c]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
ret