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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x164
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
movzx ecx, word [eax + 0xc4]
mov dword [esp + 0xc], ecx
push ebx
push esi
fild dword [esp + 0x14]
push edi
fmul dword [0x894c14]
fst dword [esp + 0x14]
fcomp dword [0x89096c]
fnstsw ax
test ah, 0x41
jne 0x470c65
fld dword [esp + 0x14]
fld dword [0x890d44]
fcomp dword [esp + 0x14]
fnstsw ax
test ah, 5
jp 0x470c6b
fstp st(0)
mov dword [esp + 0x18], 0x3fc00000
jmp 0x470c6f
fld dword [0x89096c]
fstp dword [esp + 0x18]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
fld dword [esi]
fsub dword [ebx]
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fld dword [esi + 4]
mov dword [esp + 0x60], edx
fsub dword [ebx + 4]
fstp dword [esp + 0x24]
mov eax, dword [esp + 0x24]
fld dword [esi + 8]
mov dword [esp + 0x64], eax
fsub dword [ebx + 8]
fst dword [esp + 0x68]
fld st(0)
fmul st(1)
fld dword [esp + 0x24]
fmul dword [esp + 0x24]
faddp st(1)
fld dword [esp + 0x20]
fmul dword [esp + 0x20]
faddp st(1)
fsqrt
fst dword [esp + 0x14]
fcomp dword [0x890d60]
fnstsw ax
test ah, 5
jp 0x470cd9
fstp st(0)
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
fld dword [0x89096c]
lea edx, [esp + 0x30]
fdiv dword [esp + 0x14]
push edx
lea eax, [esp + 0xb4]
push eax
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0x3f800000
fld dword [esp + 0x28]
fmul st(1)
fld dword [esp + 0x2c]
fmul st(2)
fxch st(3)
fmul st(2)
fstp dword [esp + 0x80]
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x40], ecx
fstp dword [esp + 0x38]
lea ecx, [esp + 0x78]
fxch st(1)
push ecx
fstp dword [esp + 0x40]
fstp st(0)
call fcn.0045f7c0
fld dword [esp + 0x24]
lea eax, [esp + 0x7c]
fmul dword [esp + 0x20]
lea ecx, [esp + 0x6c]
fmul dword [0x894c10]
fstp dword [esp + 0x24]
mov edx, dword [esp + 0x24]
push edx
push eax
push ecx
lea edx, [esp + 0x108]
push edx
call fcn.0045f640
fld dword [esp + 0x34]
add esp, 0x18
fchs
fstp dword [esp]
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x10c]
push edx
call fcn.0045f640
add esp, 0x10
mov dword [esp + 0x14], 0
lea edi, [esp + 0xf0]
mov dword [esp + 0x18], 2
jmp 0x470dc0
mov ebx, dword [ebp + 0x10]
lea esp, [esp]
lea eax, [esp + 0xa0]
push edi
push eax
call fcn.0045f490
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc8], ecx
push 0xbf666666
lea ecx, [esp + 0xcc]
push ecx
mov dword [esp + 0xd4], edx
lea edx, [esp + 0x90]
push ebx
push edx
mov dword [esp + 0xe0], eax
call fcn.0045f640
fld dword [esi + 4]
mov eax, dword [esi + 8]
fchs
mov ecx, dword [esi]
fstp dword [esp + 0xe8]
fld dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov dword [esp + 0xec], eax
fchs
mov eax, dword [esp + 0x98]
fstp dword [esp + 0xf8]
mov dword [esp + 0xf0], ecx
add esp, 0x18
lea ecx, [esp + 0x118]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], eax
call fcn.004048c0
push 2
lea ecx, [esp + 0x11c]
push ecx
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 3
call fcn.007854b0
test eax, eax
setne bl
test bl, bl
je 0x470f56
fld dword [esp + 0x118]
mov eax, dword [esp + 0x120]
fchs
mov ecx, dword [esp + 0x11c]
fstp dword [esp + 0x94]
lea edx, [esp + 0x80]
fld dword [esp + 0x128]
push edx
fchs
push esi
fld dword [esp + 0x134]
mov dword [esp + 0x98], eax
fmul dword [esp + 0x40]
mov dword [esp + 0xa0], ecx
fxch st(1)
fmul dword [esp + 0x3c]
faddp st(1)
fld dword [esp + 0x138]
fmul dword [esp + 0x38]
faddp st(1)
fstp dword [esp + 0x24]
call fcn.0045f340
lea eax, [esp + 0x98]
fstp dword [esp + 0x50]
push eax
push esi
call fcn.0045f340
fsubr dword [esp + 0x58]
fld dword [esp + 0x2c]
add esp, 0x10
fabs
fst dword [esp + 0x1c]
fsubr dword [0x89096c]
fmul dword [0x8945fc]
fadd dword [0x89096c]
fmulp st(1)
fcom dword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x470f54
fstp dword [esp + 0x14]
jmp 0x470f56
fstp st(0)
mov eax, dword [esp + 0x18]
add edi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x470db6
mov eax, dword [esp + 0x4c]
fld dword [esp + 0x14]
fadd dword [eax + 0x64]
fmul dword [0x894594]
fld dword [esp + 0x14]
fsub st(1)
fadd dword [eax + 0x64]
fstp dword [eax + 0x64]
fcom dword [0x890968]
fnstsw ax
test ah, 0x41
jne 0x470fac
fld dword [esp + 0x30]
fmul st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x34]
fmul st(1)
fstp dword [esp + 0x54]
fmul dword [esp + 0x38]
jmp 0x470fb2
fstp st(0)
fld dword [esp + 0x58]
mov eax, dword [ebp + 0x14]
fld dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
fstp dword [eax]
pop edi
fstp dword [eax + 8]
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x10