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

Disassembly:
sub esp, 0x6c
fld dword [esp + 0x78]
mov eax, dword [esp + 0x70]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x84]
fmul dword [edi]
mov ecx, dword [eax]
fld dword [esp + 0x88]
mov edx, dword [eax + 4]
fmul dword [edi + 4]
mov dword [esp + 0x14], ecx
fld dword [esp + 0x88]
mov ecx, dword [eax + 8]
fmul dword [edi + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
xor esi, esi
fstp dword [esp + 0x4c]
fxch st(1)
fadd dword [eax]
mov dword [esp + 0x5c], 0x81c7a8
mov word [esp + 0x60], si
fstp dword [esp + 0x20]
mov word [esp + 0x62], 0x200
fadd dword [eax + 4]
fstp dword [esp + 0x24]
fld dword [esp + 0x4c]
fadd dword [eax + 8]
fstp dword [esp + 0x28]
fld dword [esp + 0x20]
fadd dword [esp + 0x14]
fld dword [esp + 0x24]
fadd dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x28]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x4c]
fmul dword [0x5303bc]
fld dword [esp + 0x48]
fmul dword [0x5303bc]
fld dword [esp + 0x4c]
fmul dword [0x5303bc]
fstp dword [esp + 0x4c]
fxch st(1)
mov edx, dword [esp + 0x4c]
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x34], edx
fstp dword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fld dword [esp + 0x14]
mov dword [esp + 0x64], eax
fsub dword [esp + 0x20]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x6c], edx
fabs
fmul dword [0x5303bc]
fstp dword [esp + 0x70]
fld dword [esp + 0x18]
fsub dword [esp + 0x24]
fabs
fmul dword [0x5303bc]
fstp dword [esp + 0x74]
fld dword [esp + 0x1c]
mov ecx, dword [esp + 0x64]
fsub dword [esp + 0x28]
mov ebx, dword [esp + 0x8c]
lea eax, [esp + 0x5c]
push eax
fabs
push 0x407d30
fmul dword [0x5303bc]
sub esp, 0x18
mov eax, esp
fstp dword [esp + 0x98]
mov dword [eax], ecx
mov edx, dword [esp + 0x88]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x90]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x94]
mov dword [eax + 0x10], ecx
mov edx, dword [esp + 0x98]
mov ecx, ebx
mov dword [eax + 0x14], edx
call fcn.0040a1b0
mov cx, word [esp + 0x60]
xor eax, eax
cmp cx, si
je 0x4081f0
mov dword [esp + 0x84], esi
mov dword [esp + 0x10], eax
jbe 0x4081e9
mov ebp, dword [esp + 0x94]
add ebp, 0x1c
jmp 0x408000
mov esi, dword [eax*4 + 0x81c7a8]
movzx eax, word [esi]
mov ecx, dword [ebx + 0xc]
lea eax, [eax + eax*2]
mov edx, dword [ecx + eax*4 + 4]
lea eax, [ecx + eax*4]
mov dword [esp + 0x3c], edx
fld dword [eax]
mov eax, dword [eax + 8]
fld dword [esp + 0x3c]
mov dword [esp + 0x40], eax
fmul dword [esi + 0x10]
fld st(1)
fmul dword [esi + 0xc]
faddp st(1)
fld dword [esp + 0x40]
fmul dword [esi + 0x14]
faddp st(1)
fld dword [esp + 0x18]
fmul dword [esi + 0x10]
fld dword [esp + 0x14]
fmul dword [esi + 0xc]
faddp st(1)
fld dword [esp + 0x1c]
fmul dword [esi + 0x14]
faddp st(1)
fsub st(1)
fst dword [esp + 0x80]
fcomp dword [0x5303b8]
fnstsw ax
test ah, 1
jne 0x4081cf
fld dword [esp + 0x24]
fmul dword [esi + 0x10]
fld dword [esp + 0x20]
fmul dword [esi + 0xc]
faddp st(1)
fld dword [esp + 0x28]
fmul dword [esi + 0x14]
faddp st(1)
fsubrp st(1)
fcom dword [0x5303b8]
fnstsw ax
test ah, 0x41
jp 0x4081cf
fsubr dword [esp + 0x80]
mov ecx, dword [esi + 0xc]
sub esp, 0xc
mov eax, esp
fdivr dword [esp + 0x8c]
sub esp, 0xc
fmul dword [esp + 0xa0]
fld st(0)
fmul dword [edi]
fstp dword [esp + 0x44]
fld st(0)
fmul dword [edi + 4]
fstp dword [esp + 0x48]
fmul dword [edi + 8]
mov dword [eax], ecx
mov edx, dword [esi + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esi + 0x14]
mov dword [eax + 8], ecx
movzx eax, word [esi + 4]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0xc]
lea eax, [eax + edx*4]
mov edx, dword [eax]
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
movzx eax, word [esi + 2]
mov edx, dword [ebx + 0xc]
lea ecx, [eax + eax*2]
fstp dword [esp + 0x4c]
lea eax, [edx + ecx*4]
mov edx, dword [eax]
fld dword [esp + 0x44]
fadd dword [esp + 0x2c]
sub esp, 0xc
fld dword [esp + 0x54]
mov ecx, esp
fadd dword [esp + 0x3c]
mov dword [ecx], edx
mov edx, dword [eax + 4]
fld dword [esp + 0x58]
fadd dword [esp + 0x40]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
fst dword [esp + 0x7c]
mov edx, dword [esp + 0x64]
fld st(2)
fstp dword [esp + 0x68]
mov dword [ecx + 8], eax
mov ecx, dword [esp + 0x60]
fld st(1)
fstp dword [esp + 0x6c]
sub esp, 0xc
mov eax, esp
fstp dword [esp + 0x7c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x88]
fxch st(2)
fstp dword [eax]
mov dword [eax + 8], edx
sub esp, 0xc
mov eax, esp
fstp dword [eax]
fstp dword [eax + 4]
mov dword [eax + 8], ecx
call fcn.00404780
add esp, 0x3c
test eax, eax
je 0x4081d3
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
lea edx, [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov edx, dword [esi + 0xc]
mov ecx, ebp
mov dword [ecx], edx
mov eax, dword [esi + 0x10]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x14]
mov dword [ecx + 8], edx
mov ecx, dword [esp + 0x84]
mov dword [ebp + 0xc], 0
mov eax, dword [esi + 8]
inc ecx
mov dword [ebp - 0x10], eax
mov dword [esp + 0x84], ecx
add ebp, 0x2c
jmp 0x4081d3
fstp st(0)
fstp st(0)
mov eax, dword [esp + 0x10]
movzx ecx, word [esp + 0x60]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jb 0x408000
mov eax, dword [esp + 0x84]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret