Function at 0x41ae368
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x1c
push 0
push 0
dec ecx
jne 0x41ae371
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 0x41ae7da
push dword fs:[eax]
mov dword fs:[eax], esp
fld qword [ebp + 0x20]
fcomp dword [0x41ae7f0]
fnstsw ax
sahf
jne 0x41ae3cb
mov ecx, 0x41ae7fc
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 0x41ae422
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, 0x41ae82c
mov eax, dword [0x419a734]
call fcn.0419b348
mov ecx, dword [ebp - 0x1c]
mov edx, dword [0x4204158]
mov eax, dword [0x419a734]
call fcn.0419b038
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
jmp 0x41ae486
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, 0x41ae864
mov eax, dword [0x419a734]
call fcn.0419b348
mov ecx, dword [ebp - 0x38]
mov edx, dword [0x4204158]
mov eax, dword [0x419a734]
call fcn.0419b038
lea eax, [ebp - 0x34]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
test esi, esi
je 0x41ae48c
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 [0x42041a0]
push eax
push 0
push ebx
mov eax, dword [0x4204160]
push eax
mov eax, dword [eax]
call dword [eax + 0x1a8]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov ebx, dword [ebp - 0x50]
mov dword [0x4204184], ebx
lea eax, [ebp - 0x60]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
push eax
push 0x41ae8ac
mov eax, dword [0x4204160]
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 0x41ae5d5
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 0x41ae8bc
mov eax, dword [0x4204160]
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 0x41ae8d0
mov eax, dword [0x4204160]
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 0x41ae8dc
mov eax, dword [0x4204160]
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 [0x4204160]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
jmp 0x41ae6b8
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 0x41ae8bc
mov eax, dword [0x4204160]
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 0x41ae8d0
mov eax, dword [0x4204160]
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 0x41ae8f0
mov eax, dword [0x4204160]
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 [0x4204160]
push eax
mov eax, dword [eax]
call dword [eax + 0x1b0]
call sub.rtl60.bpl__System__CheckAutoResult_qqrl
mov eax, dword [0x42041a0]
add eax, 0xfffffff8
sub eax, 2
jb 0x41ae74d
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 0x41ae904
mov eax, dword [0x4204160]
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 0x41ae920
mov eax, dword [0x4204160]
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 0x41ae7e4
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