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

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x48
mov ebx, dword [esp + 0x74]
fld dword [esp + 0x70]
fld dword [esp + 0x6c]
fld dword [esp + 0x68]
fldz
fld dword [esp + 0x60]
fsub st(3)
fst st(1)
fmul st(0)
fld dword [esp + 0x5c]
fsub st(3)
fstp st(2)
mov edx, dword [esp + 0x78]
fld st(1)
fmul st(0)
faddp st(1)
fld dword [esp + 0x64]
fsub st(5)
fstp st(2)
fld st(1)
fmul st(0)
faddp st(1)
fsqrt
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp st(1)
fmul dword [0x5fdd80]
fadd dword [0x5fdd84]
fld dword [0x5fdd88]
fcomp st(1)
fnstsw ax
and ah, 5
cmp ah, 1
jne 0x50a425
fld dword [0x5fdd88]
fstp st(1)
fld st(0)
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
mov dword [esp + 0x30], eax
mov edi, ebx
fistp dword [esp + 0x40]
fldcw word [esp + 0x30]
mov esi, ebx
mov eax, dword [esp + 0x40]
shr esi, 0x10
shr edi, 0x18
mov dword [esp + 0x2c], edx
and edi, 0xff
and dword [esp + 0x2c], 0xff
and esi, 0xff
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ebx
shr dword [esp + 0x28], 8
shr dword [esp + 0x10], 8
and dword [esp + 0x28], 0xff
and dword [esp + 0x10], 0xff
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], ebx
shr dword [esp + 0x24], 0x10
and dword [esp + 0x14], 0xff
and dword [esp + 0x24], 0xff
mov dword [esp + 0x20], edx
shr dword [esp + 0x20], 0x18
and dword [esp + 0x20], 0xff
test ax, ax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
jle 0x50a7f0
fld st(1)
fsub dword [esp + 0x5c]
fstp dword [esp + 0x34]
fld st(2)
fsub dword [esp + 0x60]
fstp dword [esp + 0x38]
fld st(3)
fsub dword [esp + 0x64]
fstp dword [esp + 0x3c]
fcompp
nop
movsx eax, word [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub ebp, edi
sub edx, esi
mov dword [esp + 0x40], eax
movsx eax, word [esp + 0x18]
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
movsx eax, word [esp + 0x1c]
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
movsx eax, word [esp + 0x18]
fdivrp st(1)
fstp st(2)
inc eax
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
fild dword [esp + 0x40]
mov dword [esp + 0x40], ebp
fdivrp st(1)
fstp st(1)
fild dword [esp + 0x40]
mov dword [esp + 0x40], edi
fmul st(2)
fiadd dword [esp + 0x40]
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
mov dword [esp + 0x30], eax
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
movzx ecx, al
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
sub eax, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [esp + 4], eax
fldcw word [esp + 0x30]
fild dword [esp + 0x40]
mov eax, dword [esp + 0x14]
shl ecx, 0x10
mov dword [esp + 0x40], eax
fmul st(2)
fiadd dword [esp + 0x40]
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
mov dword [esp + 0x30], eax
fistp qword [esp + 0x40]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x40], edx
fldcw word [esp + 0x30]
fild dword [esp + 0x40]
mov dword [esp + 0x40], esi
movzx eax, bl
fmul st(2)
fiadd dword [esp + 0x40]
shl eax, 0x18
or ecx, eax
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
fistp qword [esp + 0x40]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
movzx eax, bl
mov ebx, dword [esp + 0x28]
sub ebx, dword [esp + 0x10]
mov dword [esp + 0x40], ebx
shl eax, 8
fldcw word [esp + 0x30]
fild dword [esp + 0x40]
or ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
fmul st(2)
fiadd dword [esp + 0x40]
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
mov dword [esp + 0x30], eax
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], ebp
fldcw word [esp + 0x30]
fild dword [esp + 0x40]
mov dword [esp + 0x40], edi
movzx eax, al
fmul st(1)
fiadd dword [esp + 0x40]
or ecx, eax
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [0x664450], ecx
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
movzx ecx, al
mov eax, dword [esp + 4]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
fldcw word [esp + 0x30]
fild dword [esp + 0x40]
mov dword [esp + 0x40], eax
shl ecx, 0x10
fmul st(1)
fiadd dword [esp + 0x40]
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
mov dword [esp + 0x30], eax
fistp qword [esp + 0x40]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], edx
fldcw word [esp + 0x30]
fild dword [esp + 0x40]
mov dword [esp + 0x40], esi
movzx eax, al
fmul st(1)
fiadd dword [esp + 0x40]
shl eax, 0x18
or ecx, eax
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
fistp qword [esp + 0x40]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
movzx eax, dl
mov dword [esp + 0x40], ebx
fldcw word [esp + 0x30]
fild dword [esp + 0x40]
shl eax, 8
or ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], eax
fmul st(1)
fiadd dword [esp + 0x40]
fnstcw word [esp + 0x30]
mov eax, dword [esp + 0x30]
or byte [esp + 0x31], 0xc
fldcw word [esp + 0x30]
mov dword [esp + 0x30], eax
fistp qword [esp + 0x40]
fldcw word [esp + 0x30]
fld st(1)
fmul dword [esp + 0x34]
mov edx, dword [esp + 0x40]
movzx eax, dl
fadd dword [esp + 0x5c]
or ecx, eax
mov dword [0x664474], ecx
fstp dword [0x664438]
fld st(1)
fmul dword [esp + 0x38]
fadd dword [esp + 0x60]
fstp dword [0x66443c]
fld st(1)
fmul dword [esp + 0x3c]
fadd dword [esp + 0x64]
fstp dword [0x664440]
fld st(0)
fmul dword [esp + 0x34]
fadd dword [esp + 0x5c]
fstp dword [0x66445c]
fld st(0)
fmul dword [esp + 0x38]
fadd dword [esp + 0x60]
fstp dword [0x664460]
fld st(0)
fmul dword [esp + 0x3c]
fadd dword [esp + 0x64]
fstp dword [0x664464]
fcompp
call fcn.00494420
push 0
push 0
push 2
push 0x664438
call fcn.005b6720
add esp, 0x10
test eax, eax
je 0x50a7cd
push 1
push 0
call fcn.005b6980
pop ecx
pop ecx
call fcn.005b67f0
inc dword [esp + 0x18]
mov ax, word [esp + 0x18]
cmp ax, word [esp + 0x1c]
jl 0x50a7e5
add esp, 0x48
pop ebp
pop edi
pop esi
pop ebx
ret
fldz
fldz
jmp 0x50a4f0
fcompp
fcompp
jmp 0x50a7dd