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

Disassembly:
push ebx
push esi
mov ebx, ecx
push edi
push ebp
sub esp, 0x88
fld dword [ebx + 0x20]
fld dword [ebx + 0x1c]
fld st(1)
fcomp dword [0x5fbc94]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x4ffd10
fld st(1)
fchs
jmp 0x4ffd12
fld st(1)
fstp st(2)
fcom dword [0x5fbc94]
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x4ffd26
fchs
fld st(0)
fadd st(2)
fmul dword [0x5fcff4]
push eax
mov ecx, 0x6facf8
fstp st(2)
fld dword [0x5fbcd8]
fmulp st(2)
fld st(1)
fstp dword [esp]
fcompp
lea eax, [ebx + 8]
push eax
call fcn.0043d3b0
test al, al
je 0x5000ae
call fcn.0051c590
mov al, byte [ebx + 0x56]
and eax, 0xff
fld dword [ebx + 0x28]
mov dword [esp + 0x28], eax
fild dword [esp + 0x28]
push 0
push 8
fmul st(1)
fnstcw word [esp + 0x2c]
mov eax, dword [esp + 0x2c]
or byte [esp + 0x2d], 0xc
fldcw word [esp + 0x2c]
mov dword [esp + 0x2c], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fldcw word [esp + 0x2c]
mov dword [esp + 0x14], eax
mov al, byte [ebx + 0x57]
and eax, 0xff
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul st(1)
fnstcw word [esp + 0x2c]
mov eax, dword [esp + 0x2c]
or byte [esp + 0x2d], 0xc
fldcw word [esp + 0x2c]
mov dword [esp + 0x2c], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fldcw word [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov al, byte [ebx + 0x58]
and eax, 0xff
mov dword [esp + 0x30], eax
fild dword [esp + 0x30]
fmul st(1)
fnstcw word [esp + 0x2c]
mov eax, dword [esp + 0x2c]
or byte [esp + 0x2d], 0xc
fldcw word [esp + 0x2c]
mov dword [esp + 0x2c], eax
fistp dword [esp + 0x30]
mov eax, dword [esp + 0x30]
fldcw word [esp + 0x2c]
mov dword [esp + 0x20], eax
movzx eax, byte [esp + 0x14]
fstp st(0)
cmp eax, 0x80000000
mov dword [esp + 0x10], eax
movzx eax, byte [esp + 0x1c]
sbb dword [esp + 0x10], 0xffffffff
sar dword [esp + 0x10], 1
cmp eax, 0x80000000
mov dword [esp + 0x18], eax
movzx eax, byte [esp + 0x20]
sbb dword [esp + 0x18], 0xffffffff
sar dword [esp + 0x18], 1
cmp eax, 0x80000000
mov dword [esp + 0x24], eax
sbb dword [esp + 0x24], 0xffffffff
sar dword [esp + 0x24], 1
call fcn.005a43c0
pop ecx
pop ecx
push 1
push 0xc
call fcn.005a43c0
pop ecx
pop ecx
push 2
push 0xa
call fcn.005a43c0
pop ecx
pop ecx
push 2
push 0xb
call fcn.005a43c0
pop ecx
pop ecx
push 2
push 9
call fcn.005a43c0
mov edi, dword [0x5faf44]
pop ecx
mov eax, dword [edi]
pop ecx
push eax
push 1
call fcn.005a43c0
pop ecx
pop ecx
push 1
push 6
call fcn.005a43c0
mov ebp, 1
pop ecx
pop ecx
mov dword [esp + 4], ebp
mov dword [esp], 0
mov eax, dword [esp + 4]
and eax, 0x1f
je 0x50008d
movzx eax, byte [ebx + ebp + 0x2c]
mov edx, 1
mov ecx, dword [esp]
shl edx, cl
and eax, edx
je 0x4fff97
mov dword [esp + 0x28], ebp
mov eax, dword [esp]
fild dword [esp + 0x28]
lea edi, [esp + 0x30]
push 1
fmul dword [ebx + 0x1c]
fadd dword [ebx + 8]
mov dword [esp + 0x2c], ebp
fstp dword [esp + 0x74]
fild dword [esp + 0x2c]
lea esi, [esp + 0x74]
fmul dword [ebx + 0x20]
fadd dword [ebx + 0xc]
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x78]
fild dword [esp + 0x2c]
fmul dword [ebx + 0x24]
fadd dword [ebx + 0x10]
fstp dword [esp + 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x4c]
lea esi, [esp + 0x50]
lea edx, [esp + 0x40]
push esi
push eax
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.0051c3a0
add esp, 0x14
test al, al
fldz
fldz
je 0x5000c0
fld dword [esp + 0x44]
fstp st(1)
fld dword [0x5fbcf0]
fdiv st(1)
push 0xff
push eax
fstp dword [esp]
fld dword [ebx + 0x5c]
mov al, byte [esp + 0x20]
mov cl, byte [esp + 0x1c]
push 0xff
push eax
mov al, byte [esp + 0x1c]
fstp st(2)
fld dword [esp + 0x5c]
push ecx
push eax
push eax
fmul st(2)
fstp dword [esp]
push eax
fld dword [esp + 0x68]
fmul st(2)
fstp dword [esp]
push eax
fst dword [esp]
push dword [esp + 0x64]
push dword [esp + 0x64]
jmp 0x500083
movzx eax, byte [ebx + ebp + 0x2b]
and eax, edx
je 0x50008d
mov dword [esp + 0x28], ebp
mov eax, dword [esp]
fild dword [esp + 0x28]
lea edi, [esp + 0x50]
push 1
fmul dword [ebx + 0x1c]
fadd dword [ebx + 8]
mov dword [esp + 0x2c], ebp
fstp dword [esp + 0x80]
fild dword [esp + 0x2c]
lea esi, [esp + 0x80]
fmul dword [ebx + 0x20]
fadd dword [ebx + 0xc]
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x84]
fild dword [esp + 0x2c]
fmul dword [ebx + 0x24]
fadd dword [ebx + 0x10]
fstp dword [esp + 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x6c]
lea edi, [esp + 0x70]
lea esi, [esp + 0x60]
push edi
push eax
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.0051c3a0
add esp, 0x14
test al, al
fldz
fldz
je 0x5000c4
fld dword [esp + 0x64]
fstp st(1)
fld dword [0x5fbcf0]
fdiv st(1)
push 0xff
push eax
fstp dword [esp]
fld dword [ebx + 0x5c]
fstp st(2)
fld dword [esp + 0x74]
fmul st(2)
fmul dword [0x5fbd10]
mov al, byte [esp + 0x24]
mov dl, byte [esp + 0x18]
push 0xff
push eax
mov al, byte [esp + 0x18]
push edx
push eax
push eax
fstp dword [esp]
fld dword [esp + 0x84]
fmul st(2)
fmul dword [0x5fbd10]
push eax
fstp dword [esp]
push eax
fst dword [esp]
push dword [esp + 0x84]
push dword [esp + 0x84]
fcompp
call fcn.0051c5d0
add esp, 0x2c
inc dword [esp]
add dword [esp + 4], 5
cmp dword [esp], 5
jl 0x4ffeb0
inc ebp
cmp ebp, 0x28
jl 0x4ffea5
call fcn.0051c520
add esp, 0x88
pop ebp
pop edi
pop esi
pop ebx
ret
fcompp
jmp 0x50008d
fcompp
jmp 0x50008d