Function at 0x41e3c58
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x41e3c61
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov byte [ebp - 1], cl
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41e3ff5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 0x3d4]
xor ecx, ecx
mov edx, ebx
call fcn.0419fa44
push 0
push 0
mov eax, esi
call fcn.041e4a34
mov byte [esi + 0x530], 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x41e400c
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov eax, dword [esi + 0x50c]
call fcn.0419f9f8
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarToInt_qqrrx14System_Variant
cmp eax, 8
sete al
and al, byte [ebp - 1]
je 0x41e3d49
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x20]
xor ecx, ecx
mov eax, 0x41e408c
call sub.rtl60.bpl__Sysutils_Format_qqrx17System_AnsiStringpx14System_TVarRecxi
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov eax, dword [esi + 0x50c]
call fcn.0419f9f8
lea eax, [ebp - 0x30]
call sub.rtl60.bpl__System__VarToReal_qqrrx14System_Variant
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x38]
mov eax, dword [esi + 0x3dc]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.041e4a50
fld qword [esi + 0x528]
fcomp dword [0x41e4108]
fnstsw ax
sahf
je 0x41e3fad
cmp byte [esi + 0x530], 0
je 0x41e3d67
xor edx, edx
mov eax, dword [esi + 0x3cc]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
jmp 0x41e3fad
mov eax, dword [esi + 0x338]
call sub.dbrtl60.bpl__Db_TDataSet_DisableControls_qqrv
mov eax, dword [esi + 0x338]
mov al, byte [eax + 0x9d]
add al, 0xfe
sub al, 2
jae 0x41e3fa2
mov al, byte [0x41e410c]
push eax
lea eax, [ebp - 0x48]
xor edx, edx
mov cl, 1
call sub.rtl60.bpl__System__VarFromInt_qqrr14System_Variantxixi
lea ecx, [ebp - 0x48]
mov edx, 0x41e4118
mov eax, dword [esi + 0x338]
mov edi, dword [eax]
call dword [edi + 0x240]
test al, al
je 0x41e3fa2
mov eax, dword [esi + 0x338]
call sub.dbrtl60.bpl__Db_TDataSet_Edit_qqrv
mov edx, ebx
mov eax, dword [esi + 0x33c]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
lea edx, [ebp - 0x4c]
mov eax, dword [esi + 0x3d8]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi + 0x3cc]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
lea edx, [ebp - 0x50]
mov eax, dword [esi + 0x3dc]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x50]
mov eax, dword [esi + 0x340]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
mov eax, dword [esi + 0x3e8]
mov edx, dword [eax]
call dword [edx + 0x54]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x420]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [esi + 0x3f4]
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [esi + 0x4f0]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
lea edx, [ebp - 0x54]
mov eax, dword [esi + 0x3f0]
mov ecx, dword [eax]
call dword [ecx + 0x60]
mov edx, dword [ebp - 0x54]
mov eax, dword [esi + 0x4f4]
mov ecx, dword [eax]
call dword [ecx + 0xb0]
fld qword [esi + 0x528]
fcomp dword [0x41e4108]
fnstsw ax
sahf
seta al
and al, byte [ebp - 1]
je 0x41e3ed0
push dword [esi + 0x52c]
push dword [esi + 0x528]
mov eax, dword [esi + 0x3bc]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [esi + 0x3e8]
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [esi + 0x3bc]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x378]
mov edx, dword [eax]
call dword [edx + 0xa4]
jmp 0x41e3f17
push 0x3ff00000
push 0
mov eax, dword [esi + 0x3bc]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [esi + 0x3e8]
mov edx, dword [eax]
call dword [edx + 0x54]
fstp qword [ebp - 0x20]
wait
mov eax, dword [esi + 0x3bc]
mov edx, dword [eax]
call dword [edx + 0x54]
fmul qword [ebp - 0x20]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x378]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [esi + 0x3f4]
mov edx, dword [eax]
call dword [edx + 0x58]
add eax, 0x64
mov dword [ebp - 0x58], eax
fild dword [ebp - 0x58]
fdivr dword [0x41e411c]
fstp xword [ebp - 0x64]
wait
mov eax, dword [esi + 0x3e8]
mov edx, dword [eax]
call dword [edx + 0x54]
fld xword [ebp - 0x64]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, dword [esi + 0x4ec]
mov edx, dword [eax]
call dword [edx + 0xa4]
mov eax, dword [esi + 0x3ec]
mov edx, dword [eax]
call dword [edx + 0x58]
mov edx, eax
mov eax, dword [esi + 0x41c]
mov ecx, dword [eax]
call dword [ecx + 0xa8]
mov eax, dword [esi + 0x378]
mov edx, dword [eax]
call dword [edx + 0x54]
fadd qword [esi + 0x538]
add esp, 0xfffffff8
fstp qword [esp]
wait
mov eax, esi
call fcn.041e4abc
mov eax, dword [esi + 0x338]
mov edx, dword [eax]
call dword [edx + 0x248]
mov eax, dword [esi + 0x338]
call sub.dbrtl60.bpl__Db_TDataSet_EnableControls_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e3ffc
lea eax, [ebp - 0x54]
mov edx, 3
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x48]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x38]
mov edx, 2
call sub.rtl60.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 0x30]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
lea eax, [ebp - 0x18]
call sub.rtl60.bpl__System__LStrClr_qqrpv
lea eax, [ebp - 0x14]
call sub.rtl60.bpl__System__VarClr_qqrr14System_Variant
ret