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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
mov ebp, dword [esp + 0x7c]
push esi
mov esi, eax
mov eax, dword [esp + 0x7c]
mov ecx, dword [eax + 0x18]
mov ebx, dword [ecx + 0x34]
mov eax, dword [edx]
mov ecx, dword [esp + 0x84]
sub eax, dword [ecx]
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
mov eax, dword [esi]
imul eax, eax, 0x10dcd
add eax, 0x29
fmul dword [0x5bf014]
push edi
fstp dword [esp + 0x84]
fld dword [ebx + 0x128]
fld dword [ebx + 0x124]
mov dword [esi], eax
and eax, 0xffff
mov dword [esp + 0x88], eax
fild dword [esp + 0x88]
mov al, byte [ebx + 0x16c]
test al, 8
fmul dword [0x5beff0]
fmulp st(2)
fxch st(1)
fadd st(1)
fxch st(1)
fstp st(0)
je 0x4aed53
fld dword [esp + 0x84]
fsubr st(1)
fstp dword [esp + 0x84]
fld dword [esp + 0x84]
fmul dword [esp + 0x84]
fstp dword [esp + 0x88]
fld dword [esp + 0x84]
fdiv st(1)
fstp dword [esp + 0x10]
fcomp dword [esp + 0x84]
fnstsw ax
test ah, 5
jnp 0x4af312
fld dword [esp + 0x84]
fcomp dword [0x5bef98]
fnstsw ax
test ah, 5
jnp 0x4af312
mov edx, dword [ebx + 0x164]
mov dword [ebp + 0x1c], edx
lea eax, [ebx + 0x80]
lea edi, [ebx + 0x50]
lea ecx, [esp + 0x1c]
mov edx, esi
call fcn.004ae7d0
lea eax, [ebx + 0xd0]
lea edi, [ebx + 0xa0]
lea ecx, [esp + 0x4c]
mov edx, esi
call fcn.004ae7d0
lea eax, [ebx + 0x40]
lea edi, [ebx + 0x10]
lea ecx, [esp + 0x3c]
mov edx, esi
call fcn.004ae7d0
test byte [ebx + 0x16c], 0x10
je 0x4aeef9
lea eax, [esp + 0x6c]
lea edi, [esp + 0x5c]
lea ecx, [esp + 0x2c]
mov edx, esi
mov dword [esp + 0x5c], 0xbf800000
mov dword [esp + 0x60], 0xbf800000
mov dword [esp + 0x64], 0xbf800000
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0x40000000
mov dword [esp + 0x70], 0x40000000
mov dword [esp + 0x74], 0x40000000
mov dword [esp + 0x78], 0
call fcn.004ae7d0
fld dword [esp + 0x4c]
fmul dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x50]
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x54]
fmul dword [esp + 0x34]
fstp dword [esp + 0x34]
call fcn.004186d0
fld dword [esp + 0x2c]
fmul dword [ebx + 0x90]
fld dword [ebx + 0x94]
fmul dword [esp + 0x30]
fld dword [ebx + 0x98]
fmul dword [esp + 0x34]
fstp dword [esp + 0x64]
fld dword [esp + 0x1c]
fadd st(2)
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fadd st(1)
fstp st(2)
fstp st(0)
fld dword [esp + 0x24]
fadd dword [esp + 0x64]
fstp dword [esp + 0x24]
fld dword [esp + 0x4c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x50]
fmul dword [esp + 0x30]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul dword [esp + 0x34]
fstp dword [esp + 0x54]
fld dword [esp + 0x3c]
fmul dword [esp + 0x2c]
fstp dword [esp + 0x3c]
fld dword [esp + 0x40]
fmul dword [esp + 0x30]
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fmul dword [esp + 0x34]
fstp dword [esp + 0x44]
jmp 0x4aef01
fld dword [esp + 0x20]
fld dword [esp + 0x4c]
fmul dword [esp + 0x84]
sub esp, 0x10
fld dword [esp + 0x60]
mov eax, esp
fmul dword [esp + 0x94]
fld dword [esp + 0x64]
fmul dword [esp + 0x94]
fstp dword [esp + 0x64]
fld dword [esp + 0x4c]
fmul dword [esp + 0x98]
fstp dword [esp + 0x4c]
fld dword [esp + 0x50]
fmul dword [esp + 0x98]
fstp dword [esp + 0x50]
fld dword [esp + 0x54]
fmul dword [esp + 0x98]
fstp dword [esp + 0x54]
fld dword [esp + 0x2c]
fadd st(2)
fstp dword [esp + 0x2c]
faddp st(2)
fstp st(0)
fld dword [esp + 0x34]
fadd dword [esp + 0x64]
fld dword [esp + 0x4c]
fadd dword [esp + 0x2c]
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
fld dword [esp + 0x50]
mov dword [eax], ecx
fadd st(2)
fstp dword [esp + 0x30]
mov edx, dword [esp + 0x30]
fld dword [esp + 0x54]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x38]
fadd st(1)
fstp dword [esp + 0x34]
mov ecx, dword [esp + 0x34]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x9c]
fstp st(0)
mov dword [eax + 0xc], edx
fstp st(0)
lea eax, [esp + 0x7c]
call fcn.00460320
mov ecx, dword [eax]
mov dword [ebp], ecx
fld dword [eax + 4]
fstp dword [ebp + 4]
fld dword [eax + 8]
fstp dword [ebp + 8]
fld dword [eax + 0xc]
fstp dword [ebp + 0xc]
test byte [ebx + 0x16c], 1
je 0x4af0b9
mov eax, dword [esi]
fld dword [ebx + 0x138]
fld dword [ebx + 0x134]
imul eax, eax, 0x10dcd
add eax, 0x29
mov dword [esi], eax
mov edx, eax
imul eax, eax, 0x10dcd
and edx, 0xffff
mov dword [esp + 0x8c], edx
add eax, 0x29
mov ecx, eax
fild dword [esp + 0x8c]
and ecx, 0xffff
mov dword [esp + 0x8c], ecx
fmul dword [0x5beff0]
fld dword [ebx + 0x140]
fld dword [ebx + 0x13c]
mov dword [esi], eax
imul eax, eax, 0x10dcd
fild dword [esp + 0x8c]
mov edx, dword [ebx + 0x14c]
mov ecx, dword [ebx + 0x148]
add eax, 0x29
mov dword [esi], eax
and eax, 0xffff
mov dword [esp + 0x8c], eax
mov dword [esp + 0x14], edx
fmul dword [0x5beff0]
mov dword [esp + 0x18], ecx
fild dword [esp + 0x8c]
fmul dword [0x5beff0]
fst dword [esp + 0x8c]
fmul dword [esp + 0x14]
fadd dword [esp + 0x18]
fmul dword [esp + 0x88]
fxch st(1)
fmul st(3)
fadd st(2)
fmul dword [esp + 0x84]
faddp st(1)
fxch st(3)
fmul st(5)
fadd st(4)
faddp st(3)
fxch st(2)
fstp dword [ebp + 0x14]
fstp st(1)
fstp st(0)
fstp st(0)
fstp st(0)
jmp 0x4af0c0
mov dword [ebp + 0x14], 0
mov eax, dword [esi]
fld dword [ebx + 0xf4]
fld dword [ebx + 0xf0]
imul eax, eax, 0x10dcd
add eax, 0x29
mov dword [esi], eax
mov edx, eax
imul eax, eax, 0x10dcd
and edx, 0xffff
mov dword [esp + 0x8c], edx
add eax, 0x29
mov ecx, eax
fild dword [esp + 0x8c]
and ecx, 0xffff
mov dword [esp + 0x8c], ecx
fmul dword [0x5beff0]
mov edi, dword [esp + 0x80]
fld dword [ebx + 0xfc]
fld dword [ebx + 0xf8]
mov dword [esi], eax
imul eax, eax, 0x10dcd
fild dword [esp + 0x8c]
mov edx, dword [ebx + 0x104]
mov ecx, dword [ebx + 0x100]
add eax, 0x29
mov dword [esi], eax
and eax, 0xffff
mov dword [esp + 0x8c], eax
mov dword [esp + 0x18], edx
fmul dword [0x5beff0]
mov dword [esp + 0x14], ecx
fild dword [esp + 0x8c]
fmul dword [0x5beff0]
fst dword [esp + 0x8c]
fmul dword [esp + 0x18]
fadd dword [esp + 0x14]
fmul dword [esp + 0x88]
fxch st(1)
fmul st(3)
fadd st(2)
fmul dword [esp + 0x84]
faddp st(1)
fxch st(3)
fmul st(5)
fadd st(4)
faddp st(3)
fxch st(2)
fmul dword [0x5a5880]
fstp dword [ebp + 0x18]
mov edx, dword [edi + 0x18]
mov eax, dword [edx + 0x10]
fstp st(1)
mov dword [ebp + 0x10], eax
mov eax, dword [edi + 0x18]
fstp st(0)
mov esi, dword [eax + 0x4c]
fstp st(0)
test esi, esi
fstp st(0)
je 0x4af26e
mov ecx, dword [esp + 0x84]
push ecx
call fcn.004b1010
mov eax, dword [edi + 0x18]
mov esi, dword [eax + 0x10]
mov edx, esi
shr edx, 0x10
and edx, 0xff
mov dword [esp + 0x80], edx
fild dword [esp + 0x80]
fmul st(1)
call fcn.00581d24
mov dword [esp + 0x88], eax
mov eax, esi
shr eax, 8
and eax, 0xff
mov dword [esp + 0x80], eax
fild dword [esp + 0x80]
fmul st(1)
call fcn.00581d24
xor ecx, ecx
mov ch, byte [esp + 0x88]
and esi, 0xff
mov dword [esp + 0x80], esi
fild dword [esp + 0x80]
fmul st(1)
mov cl, al
shl ecx, 8
mov dword [esp + 0x80], ecx
call fcn.00581d24
fstp st(0)
mov ecx, eax
mov eax, dword [esp + 0x80]
and ecx, 0xff
or eax, ecx
mov dword [ebp + 0x10], eax
mov edx, dword [edi + 0x18]
mov ecx, dword [edx + 0x10]
and ecx, 0xff000000
or ecx, eax
mov dword [ebp + 0x10], ecx
mov edi, dword [edi + 0x18]
movzx edx, byte [edi + 0x13]
mov esi, dword [edi + 0x48]
test esi, esi
mov dword [esp + 0x80], edx
je 0x4af2a3
mov eax, dword [esp + 0x84]
push eax
call fcn.004b1010
fimul dword [esp + 0x80]
call fcn.00581d24
mov dword [esp + 0x80], eax
fld dword [esp + 0x10]
fcomp dword [ebx + 0xe8]
fld dword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x4af2c0
fdiv dword [ebx + 0xe8]
jmp 0x4af2eb
fcomp dword [ebx + 0xec]
fnstsw ax
test ah, 0x41
jne 0x4af306
fld dword [esp + 0x10]
fsub dword [ebx + 0xec]
fld dword [0x5bef9c]
fsub dword [ebx + 0xec]
fdivp st(1)
fsubr dword [0x5bef9c]
fimul dword [esp + 0x80]
mov byte [ebp + 0x13], 0
call fcn.00581d24
mov ecx, dword [ebp + 0x10]
shl eax, 0x18
or ecx, eax
mov dword [ebp + 0x10], ecx
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 0x10
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x6c
ret 0x10