Function at 0x41aacd0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x41aacd9
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
mov eax, dword [ebp + 0xc]
call sub.rtl60.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x41ab142
push dword fs:[eax]
mov dword fs:[eax], esp
fld qword [ebp + 0x20]
fcomp dword [0x41ab158]
fnstsw ax
sahf
jne 0x41aad33
mov ecx, 0x41ab164
mov dl, 1
mov eax, dword [sym.imp.rtl60.bpl__Sysutils_Exception_]
call sub.rtl60.bpl__Sysutils_Exception__bctr_qqrx17System_AnsiString
call sub.rtl60.bpl__System__RaiseExcept_qqrv
cmp dword [ebp + 0xc], 0
jne 0x41aad8a
lea eax, [ebp - 0x18]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x24], ebx
mov byte [ebp - 0x20], 0
lea eax, [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41ab194
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a670
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
jmp 0x41aadee
lea eax, [ebp - 0x34]
push eax
mov eax, dword [sym.imp.VEDatasets.bpl__Vedataset_defDonemNo]
mov eax, dword [eax]
push eax
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], 0
lea edx, [ebp - 0x4c]
mov eax, dword [ebp + 0xc]
call sub.rtl60.bpl__Sysutils_QuotedStr_qqrx17System_AnsiString
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x3c], 0xb
lea eax, [ebp - 0x48]
push eax
push 1
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [sym.imp.VEDatasets.bpl__Vedataset_defFirmaNo]
mov ecx, dword [ecx]
mov edx, 0x41ab1cc
mov eax, dword [0x4199d68]
call fcn.0419a7f8
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x41fa150]
mov eax, dword [0x4199d68]
call fcn.0419a670
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test esi, esi
je 0x41aadf4
mov eax, esi
lea edx, [ebp - 0x50]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
mov eax, dword [0x41fa198]
push eax
push 0
push ebx
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1a8]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov ebx, dword [ebp - 0x50]
mov dword [0x41fa17c], ebx
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab214
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c4]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarToBool_qqrrx14System_Variant
test al, al
je 0x41aaf3d
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x64]
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__WStrFromLStr_qqrr17System_WideStringx17System_AnsiString
mov eax, dword [ebp - 0x64]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x74]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab224
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0x74]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
lea eax, [ebp - 0x84]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab238
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0x84]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
lea eax, [ebp - 0x94]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab244
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0x94]
call sub.rtl60.bpl__System__VarToReal_qqrrx14System_Variant
add esp, 0xfffffff8
fstp qword [esp]
wait
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
jmp 0x41ab020
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x98]
mov edx, dword [ebp - 4]
call sub.rtl60.bpl__System__WStrFromLStr_qqrr17System_WideStringx17System_AnsiString
mov eax, dword [ebp - 0x98]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xa8]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab224
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0xa8]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
lea eax, [ebp - 0xb8]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab238
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0xb8]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
push eax
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 0xc8]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab258
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0xc8]
call sub.rtl60.bpl__System__VarToReal_qqrrx14System_Variant
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, dword [0x41fa198]
add eax, 0xfffffff8
sub eax, 2
jb 0x41ab0b5
lea eax, [ebp - 0xd8]
mov edx, 1
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
push dword [ebp - 0xcc]
push dword [ebp - 0xd0]
push dword [ebp - 0xd4]
push dword [ebp - 0xd8]
push 0x41ab26c
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x210]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
lea eax, [ebp - 0xe8]
mov edx, 1
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
push dword [ebp - 0xe4]
push dword [ebp - 0xe8]
push 0x41ab288
mov eax, dword [0x41fa158]
push eax
mov eax, dword [eax]
call dword [eax + 0x210]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ab14c
lea eax, [ebp - 0xe8]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 5
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x98]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x94]
mov edx, dword [sym.imp.rtl60.bpl___xp_14System_Variant]
mov ecx, 3
call sub.rtl60.bpl__System__FinalizeArray_qqrpvt1ui
lea eax, [ebp - 0x64]
call sub.rtl60.bpl__System__WStrClr_qqrpv
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x4c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x38]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x1c]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 4]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp + 0xc]
call sub.rtl60.bpl__System__LStrClr_qqrpv
ret