Function at 0x4be580
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 0x1c]
push ebx
push esi
xor esi, esi
xor edx, edx
cmp eax, esi
push edi
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jle 0x4be61c
mov ebx, dword [ebp + 0x14]
jmp 0x4be5d1
xor esi, esi
mov ecx, dword [ebp + 0xc]
lea eax, [edx*8]
mov edi, dword [ecx + 8]
mov dword [edi + eax], esi
mov dword [edi + eax + 4], esi
mov edi, dword [ecx + 4]
mov dword [edi + eax], esi
mov dword [edi + eax + 4], esi
mov edi, eax
add edi, dword [ecx]
mov ecx, dword [ebp + 8]
inc edx
mov dword [edi], esi
mov dword [edi + 4], esi
mov dword [eax + ecx], esi
mov dword [eax + ecx + 4], esi
mov eax, dword [ebp + 0x1c]
mov edi, ebx
mov ecx, 6
lea esi, [esp + 0x20]
add ebx, 0x18
cmp edx, eax
rep movsd dword es:[edi], dword [esi]
jl 0x4be5cf
xor esi, esi
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp ecx, esi
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x38], eax
jle 0x4be889
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebp + 0x20]
mov dword [esp + 0x14], ecx
jmp 0x4be657
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
xor esi, esi
cmp eax, esi
je 0x4be675
mov edx, dword [ebp + 0x18]
dec edx
cmp eax, edx
je 0x4be675
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x3ff00000
jmp 0x4be685
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0x40590000
lea eax, [esp + 0x98]
lea edx, [esp + 0x78]
push eax
mov eax, dword [ebp + 0x28]
push edx
mov edx, dword [ebp + 0x24]
push eax
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
push eax
push ecx
call fcn.004b6970
add esp, 0x18
cmp eax, 0xffffffff
je 0x4be8fc
mov esi, dword [esp + 0x10]
mov ecx, 6
lea edi, [esp + 0x20]
lea ebx, [eax*8]
fld qword [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea edi, [eax + eax*2]
lea esi, [esp + 0x80]
mov ecx, 4
mov dword [esp + 0x18], esi
shl edi, 3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], edi
fld qword [esi - 8]
fld st(0)
fabs
fld dword [0x57150c]
fcompp
fnstsw ax
test ah, 1
je 0x4be810
fld st(1)
fabs
fld dword [0x57150c]
fcompp
fnstsw ax
test ah, 1
je 0x4be833
mov eax, dword [ebp + 8]
fld qword [ebx + eax]
fld st(1)
fmul st(3)
fst qword [esp + 0x70]
fmul st(2)
fadd st(1)
fst qword [esp + 0x48]
fstp qword [ebx + eax]
fld qword [esp + 0x48]
fcomp qword [0x550f20]
fnstsw ax
test ah, 0x40
jne 0x4be908
fdiv qword [esp + 0x48]
cmp ecx, 2
fld qword [esp + 0x70]
fdiv qword [esp + 0x48]
fld st(1)
fmulp st(4)
jl 0x4be78f
mov edx, dword [ebp + 0xc]
mov eax, esi
lea esi, [ecx - 1]
mov ecx, dword [edx]
add edx, 4
add ecx, ebx
add eax, 8
dec esi
fld qword [ecx]
fld qword [eax - 8]
fld st(0)
fmul st(3)
fld st(2)
fmul st(5)
faddp st(1)
fstp qword [ecx]
fxch st(1)
fmul st(4)
fsubr st(1)
fstp qword [eax - 8]
fstp st(0)
jne 0x4be766
mov edx, dword [ebp + 0x14]
mov ecx, 6
lea eax, [edi + edx]
lea edi, [esp + 0x58]
mov esi, eax
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x58]
fmul st(2)
fld st(1)
fmul qword [esp + 0x20]
faddp st(1)
fstp qword [eax]
fld qword [esp + 0x60]
fmul st(2)
fld st(1)
fmul qword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x18]
faddp st(1)
fstp qword [eax + 8]
fld qword [esp + 0x68]
fmul st(2)
fxch st(1)
fmul qword [esp + 0x30]
faddp st(1)
fstp qword [eax + 0x10]
fstp st(0)
fld qword [esp + 0x58]
fmul st(1)
fsubr qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [esp + 0x60]
fmul st(1)
fsubr qword [esp + 0x28]
fstp qword [esp + 0x28]
fld qword [esp + 0x68]
fmul st(1)
fsubr qword [esp + 0x30]
fstp qword [esp + 0x30]
fstp st(0)
jmp 0x4be812
fstp st(0)
add edi, 0x18
dec ecx
add ebx, 8
add esi, 8
cmp ecx, 1
mov dword [esp + 0x3c], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
jge 0x4be6ea
jmp 0x4be835
fstp st(0)
fld qword [esp + 0x20]
fmul qword [esp + 0x20]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0x18]
faddp st(1)
fld qword [esp + 0x30]
fmul qword [esp + 0x30]
inc eax
add esi, 8
add edx, 0x18
cmp eax, ecx
faddp st(1)
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
fmul st(1)
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
fstp st(0)
jl 0x4be64d
xor esi, esi
fild dword [ebp + 0x18]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 0x1c]
mov ebx, 1
fdivr qword [esp + 0x50]
mov dword [esp + 0x10], ebx
fsqrt
fstp qword [eax]
lea eax, [ecx - 2]
cmp eax, esi
mov dword [esp + 0x14], eax
jl 0x4be991
mov ecx, dword [ebp + 0x14]
lea edx, [eax + eax*2]
lea edx, [ecx + edx*8]
mov dword [esp + 0x1c], edx
cmp ebx, 4
jge 0x4be8c9
inc ebx
mov dword [esp + 0x10], ebx
mov ecx, 6
mov esi, edx
lea edi, [esp + 0x20]
cmp ebx, 2
rep movsd dword es:[edi], dword [esi]
jl 0x4be970
mov ecx, dword [esp + 0x10]
mov ebx, dword [ebp + 0xc]
fld qword [esp + 0x30]
fld qword [esp + 0x28]
fld qword [esp + 0x20]
add edx, 0x18
dec ecx
mov dword [esp + 0x18], ecx
jmp 0x4be91c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
fstp st(0)
fstp st(0)
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
mov ecx, 6
mov esi, edx
lea edi, [esp + 0x58]
add edx, 0x18
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x58]
mov ecx, dword [ebx]
add ebx, 4
fmul qword [ecx + eax*8]
lea eax, [ecx + eax*8]
fsubp st(1)
fld qword [esp + 0x60]
fmul qword [eax]
fsubp st(2)
fld qword [esp + 0x68]
fmul qword [eax]
mov eax, dword [esp + 0x18]
dec eax
fsubp st(3)
mov dword [esp + 0x18], eax
jne 0x4be918
fstp qword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
fstp qword [esp + 0x28]
mov ebx, dword [esp + 0x10]
fstp qword [esp + 0x30]
mov edi, edx
dec eax
mov ecx, 6
lea esi, [esp + 0x20]
sub edx, 0x18
mov dword [esp + 0x14], eax
test eax, eax
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], edx
jge 0x4be8bf
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret