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

Disassembly:
push ebp
push edi
push esi
mov esi, ecx
push ebx
mov ebx, edx
add edx, 4
mov ecx, ebx
sub esp, 0x7c
mov dword [esp + 0x1c], eax
fld dword [esp + 0x98]
xor eax, eax
mov ebp, dword [esp + 0x90]
mov dword [edx - 4], 0
mov dword [edx + 0xa8], 0
mov edi, edx
and edi, 0xfffffffc
sub ecx, edi
add ecx, 0xb0
shr ecx, 2
rep stosd dword es:[edi], eax
fld dword [esi + 0x34]
fld dword [esi + 0x2c]
fmul st(1)
fld dword [esi + 0x30]
fmul st(2)
fld dword [esi + 0x28]
fmul st(3)
fstp dword [ebx + 0x60]
fxch st(1)
fstp dword [ebx + 0x64]
fstp dword [ebx + 0x68]
fstp dword [ebx + 0x6c]
fld dword [esi + 0x44]
fld dword [esi + 0x3c]
fmul st(1)
fld dword [esi + 0x40]
fmul st(2)
fld dword [esi + 0x38]
fmul st(3)
fstp dword [ebx + 0x70]
fxch st(1)
fstp dword [ebx + 0x74]
fstp dword [ebx + 0x78]
fstp dword [ebx + 0x7c]
fld dword [ebp + 0x18]
fld dword [0x5a3fb0]
fcomi st(1)
fstp st(1)
ja 0x40a750
fld dword [ebp + 0x1c]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x40a940
jmp 0x40a752
fstp st(0)
and edx, 0xfffffffc
mov ecx, ebx
xor eax, eax
mov dword [ebx], 0
sub ecx, edx
fld1
mov edi, edx
mov dword [ebx + 0x2c], 0
add ecx, 0x30
shr ecx, 2
rep stosd dword es:[edi], eax
fst dword [ebx + 0x80]
fst dword [ebx + 0x84]
fst dword [ebx + 0x88]
fstp dword [ebx + 0x8c]
fld dword [0x5a3fb4]
fld dword [esp + 0x94]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
fmul st(1)
fxch st(1)
mov dword [ebx + 0x90], eax
mov dword [ebx + 0x94], ecx
mov eax, dword [esi + 0x48]
fmul st(2)
faddp st(1)
fdivrp st(1)
fstp dword [ebx + 0xa0]
fld dword [esp + 0x9c]
fstp dword [ebx + 0xa4]
test eax, eax
je 0x40aa00
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 0x24]
test edx, edx
jle 0x40a875
mov ebp, dword [edi + 0x18]
xor edi, edi
jmp 0x40a7fa
add edi, 1
add ebp, 0x18
cmp edi, edx
je 0x40a875
cmp eax, dword [ebp]
jne 0x40a7f0
test byte [ebp + 0x14], 8
jne 0x40a880
lea eax, [esp + 0x28]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.004212c0
cmp dword [ebp + 0x10], 2
mov dword [ebx + 0xac], 1
je 0x40a92c
mov dword [ebx + 0xa8], 2
fld dword [esp + 0x28]
mov dword [ebx + 0x58], 0x3f800000
fstp dword [ebx + 0x30]
fld dword [esp + 0x2c]
fstp dword [ebx + 0x34]
fldz
fst dword [ebx + 0x38]
fst dword [ebx + 0x3c]
fld dword [esp + 0x30]
fstp dword [ebx + 0x40]
fld dword [esp + 0x34]
fstp dword [ebx + 0x44]
fst dword [ebx + 0x48]
fst dword [ebx + 0x4c]
fld dword [esp + 0x38]
fstp dword [ebx + 0x50]
fld dword [esp + 0x3c]
fstp dword [ebx + 0x54]
fstp dword [ebx + 0x5c]
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x1c], ecx
fld dword [esp + 0x1c]
lea edi, [esp + 0x40]
fmul dword [0x5a3fb4]
mov dword [esp + 4], 0
mov dword [esp], edi
fstp dword [esp + 8]
call fcn.00420ff0
mov dword [esp + 4], esi
lea esi, [esp + 0x58]
mov dword [esp], edi
call fcn.00421110
mov dword [esp + 8], 0xbf800000
mov dword [esp + 4], 0x3f800000
mov dword [esp], esi
call fcn.00421020
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00421110
fld dword [ebx + 0x94]
mov dword [esp + 4], 0
mov dword [esp], edi
fchs
fmul dword [0x5a3fb4]
fstp dword [esp + 8]
call fcn.00420ff0
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00421110
lea eax, [esp + 0x28]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004212c0
cmp dword [ebp + 0x10], 2
mov dword [ebx + 0xac], 1
jne 0x40a829
xor eax, eax
test byte [ebp + 0x14], 0x10
sete al
mov dword [ebx + 0xa8], eax
jmp 0x40a833
lea eax, [esp + 0x28]
mov dword [esp + 4], ebp
mov dword [esp], eax
fstp dword [esp + 0x98]
call fcn.004212c0
fld dword [esp + 0x28]
mov dword [ebx + 0x28], 0x3f800000
fstp dword [ebx]
fld dword [esp + 0x2c]
fstp dword [ebx + 4]
fldz
fst dword [ebx + 8]
fst dword [ebx + 0xc]
fld dword [esp + 0x30]
fstp dword [ebx + 0x10]
fld dword [esp + 0x34]
fstp dword [ebx + 0x14]
fst dword [ebx + 0x18]
fst dword [ebx + 0x1c]
fld dword [esp + 0x38]
fstp dword [ebx + 0x20]
fld dword [esp + 0x3c]
fstp dword [ebx + 0x24]
fst dword [ebx + 0x2c]
fld dword [ebp + 0x18]
fstp dword [ebx + 0x80]
fld dword [ebp + 0x1c]
fstp dword [ebx + 0x84]
fld dword [ebp + 8]
fld dword [ebp]
fmul st(0)
fxch st(1)
fmul st(0)
faddp st(1)
fxch st(1)
fucompi st(1)
fld dword [esp + 0x98]
ja 0x40aa4d
fxch st(1)
fsqrt
fdiv st(1)
fstp dword [ebx + 0x88]
fld dword [ebp + 0xc]
fld dword [ebp + 4]
fmul st(0)
fxch st(1)
fmul st(0)
faddp st(1)
fldz
fucompi st(1)
ja 0x40aa31
fsqrt
fdiv st(1)
fstp dword [ebx + 0x8c]
jmp 0x40a78c
fld dword [esi + 0x20]
lea eax, [esp + 0x28]
mov dword [ebx + 0xac], 0
fstp dword [ebx + 0x98]
fld dword [esi + 0x24]
mov dword [esp + 4], esi
mov dword [esp], eax
fstp dword [ebx + 0x9c]
call fcn.004212c0
jmp 0x40a833
fxch st(1)
fstp dword [esp + 0x98]
fstp dword [esp]
call fcn.004a1dc0
fld dword [esp + 0x98]
fxch st(1)
jmp 0x40a9eb
fstp dword [esp + 0x98]
fstp dword [esp]
call fcn.004a1dc0
fld dword [esp + 0x98]
fxch st(1)
jmp 0x40a9cd