Function at 0x41ab0c0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x41ab0c9
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 0x41ab532
push dword fs:[eax]
mov dword fs:[eax], esp
fld qword [ebp + 0x20]
fcomp dword [0x41ab548]
fnstsw ax
sahf
jne 0x41ab123
mov ecx, 0x41ab554
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 0x41ab17a
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, 0x41ab584
mov eax, dword [0x4199678]
call fcn.0419a108
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x41fb154]
mov eax, dword [0x4199678]
call fcn.04199f80
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
jmp 0x41ab1de
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, 0x41ab5bc
mov eax, dword [0x4199678]
call fcn.0419a108
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x41fb154]
mov eax, dword [0x4199678]
call fcn.04199f80
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test esi, esi
je 0x41ab1e4
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 [0x41fb19c]
push eax
push 0
push ebx
mov eax, dword [0x41fb15c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1a8]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov ebx, dword [ebp - 0x50]
mov dword [0x41fb180], ebx
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ab604
mov eax, dword [0x41fb15c]
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 0x41ab32d
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 0x41ab614
mov eax, dword [0x41fb15c]
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 0x41ab628
mov eax, dword [0x41fb15c]
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 0x41ab634
mov eax, dword [0x41fb15c]
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 [0x41fb15c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
jmp 0x41ab410
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 0x41ab614
mov eax, dword [0x41fb15c]
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 0x41ab628
mov eax, dword [0x41fb15c]
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 0x41ab648
mov eax, dword [0x41fb15c]
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 [0x41fb15c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, dword [0x41fb19c]
add eax, 0xfffffff8
sub eax, 2
jb 0x41ab4a5
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 0x41ab65c
mov eax, dword [0x41fb15c]
push eax
mov eax, dword [eax]
call dword [eax + 0x224]
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 0x41ab678
mov eax, dword [0x41fb15c]
push eax
mov eax, dword [eax]
call dword [eax + 0x224]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ab53c
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