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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0xac
and esp, 0xfffffff8
mov ebx, dword [ebp + 8]
mov dword [esp + 0x4c], ecx
mov eax, ecx
mov eax, dword [eax + 0x80]
cmp eax, 4
jge 0x47f405
mov eax, ecx
fld qword [eax + 0x70]
fadd qword [eax + 0x78]
fmul qword [eax + 0x40]
fmul qword [0x4cd820]
fnstcw word [esp + 0x54]
mov eax, dword [esp + 0x54]
or byte [esp + 0x55], 0xc
fldcw word [esp + 0x54]
fistp dword [esp + 0xa0]
mov dword [esp + 0x54], eax
fldcw word [esp + 0x54]
mov eax, dword [esp + 0xa0]
cmp eax, 4
jge 0x47f405
mov eax, 4
cmp eax, 0x400
jle 0x47f411
mov eax, 0x400
add eax, 3
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x40], eax
mov dword [esp + 0x50], eax
shl dword [esp + 0x50], 2
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], eax
add dword [esp + 0x3c], 4
mov eax, dword [esp + 0x3c]
cmp eax, dword [ebx + 0xc]
je 0x47f4ed
mov eax, dword [esp + 0x48]
add eax, 4
push eax
push 0x10
push 0
push 0x47f030
shl eax, 4
add eax, 8
push eax
call fcn.00494600
pop ecx
push eax
call fcn.00494640
add esp, 0x14
mov dword [esp + 0x44], eax
mov esi, dword [ebx + 4]
test esi, esi
je 0x47f4df
mov edx, esi
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x3c]
jb 0x47f495
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
shl dword [esp + 0x18], 4
add dword [esp + 0x18], esi
cmp esi, dword [esp + 0x18]
jae 0x47f4ce
mov ecx, edx
add edx, 0x10
mov eax, dword [esp + 0x28]
add dword [esp + 0x28], 0x10
mov edi, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [eax], edi
mov dword [eax + 4], esi
mov edi, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
cmp edx, dword [esp + 0x18]
jb 0x47f4a4
mov eax, dword [ebx + 4]
test eax, eax
je 0x47f4df
add eax, 0xfffffff8
push eax
call fcn.00494620
pop ecx
mov eax, dword [esp + 0x44]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0xc], eax
fldz
fldz
mov eax, dword [esp + 0x48]
mov dword [esp + 0xa0], eax
fild dword [esp + 0xa0]
fdivr qword [0x4cd828]
fstp qword [esp + 0x58]
mov eax, dword [esp + 0x4c]
fld qword [eax + 0x70]
fstp st(2)
fld qword [0x4cd808]
fmul st(2)
fstp qword [esp + 0x60]
mov eax, dword [esp + 0x4c]
fld qword [eax + 0x78]
fstp st(1)
fld qword [0x4cd808]
fmul st(1)
fstp qword [esp + 0x68]
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x4c]
fld qword [eax + 0x60]
fsub st(2)
fmul qword [0x4cd808]
fstp qword [esp + 0x70]
mov eax, dword [esp + 0x4c]
fld qword [eax + 0x68]
fsub st(1)
fmul qword [0x4cd808]
fstp qword [esp + 0x78]
mov ecx, dword [0x4cd818]
mov eax, dword [0x4cd81c]
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], eax
cmp dword [esp + 0x40], 0
jle 0x47fa10
xor esi, esi
fcompp
lea eax, [eax]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp eax, dword [ebx + 8]
jb 0x47f5a1
inc eax
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x60]
fadd qword [esp + 0x70]
fstp qword [edi]
mov eax, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jb 0x47f5d6
mov eax, dword [esp + 0x14]
inc eax
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x68]
fadd qword [esp + 0x78]
fstp qword [edi + 8]
fld qword [esp + 0x80]
fadd qword [esp + 0x58]
fstp qword [esp + 0x80]
add esi, 0x10
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x40]
jl 0x47f590
mov esi, dword [esp + 0x14]
cmp esi, dword [ebx + 8]
jb 0x47f631
mov eax, esi
inc eax
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], eax
shl dword [esp + 0x2c], 4
mov edi, dword [ebx + 4]
add edi, dword [esp + 0x2c]
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x60]
fadd qword [esp + 0x70]
fstp qword [edi]
cmp esi, dword [ebx + 8]
jb 0x47f671
mov eax, dword [esp + 0x14]
inc eax
mov dword [ebx + 8], eax
mov esi, dword [ebx + 4]
add esi, dword [esp + 0x2c]
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x68]
fadd qword [esp + 0x78]
fstp qword [esi + 8]
fld qword [esp + 0x70]
fchs
fstp qword [esp + 0x90]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
shl dword [esp + 0x24], 1
jmp 0x47f752
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
inc dword [esp + 4]
mov eax, dword [esp + 4]
cmp eax, dword [ebx + 8]
jb 0x47f6d5
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [ebx + 8], eax
mov esi, dword [esp + 0x14]
inc esi
shl esi, 4
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x60]
fadd qword [esp + 0x90]
fstp qword [edi]
mov eax, dword [esp + 4]
cmp eax, dword [ebx + 8]
jb 0x47f717
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x68]
fadd qword [esp + 0x78]
fstp qword [edi + 8]
fld qword [esp + 0x80]
fadd qword [esp + 0x58]
fstp qword [esp + 0x80]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x24]
jl 0x47f6b6
mov edi, eax
inc edi
cmp edi, dword [ebx + 8]
jb 0x47f76e
add eax, 2
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x30], eax
inc dword [esp + 0x30]
shl dword [esp + 0x30], 4
mov esi, dword [ebx + 4]
add esi, dword [esp + 0x30]
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x60]
fadd qword [esp + 0x90]
fstp qword [esi]
cmp edi, dword [ebx + 8]
jb 0x47f7b7
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, dword [esp + 0x30]
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x68]
fadd qword [esp + 0x78]
fstp qword [edi + 8]
fld qword [esp + 0x78]
fchs
fstp qword [esp + 0x98]
mov edx, dword [esp + 0x40]
mov ecx, edx
lea eax, [ecx + edx*2]
mov dword [esp + 0x40], eax
jmp 0x47f8a2
mov eax, dword [esp + 0x14]
mov dword [esp + 8], eax
add dword [esp + 8], 2
mov eax, dword [esp + 8]
cmp eax, dword [ebx + 8]
jb 0x47f820
mov eax, dword [esp + 0x14]
add eax, 3
mov dword [ebx + 8], eax
mov esi, dword [esp + 0x14]
add esi, 2
shl esi, 4
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x60]
fadd qword [esp + 0x90]
fstp qword [edi]
mov eax, dword [esp + 8]
cmp eax, dword [ebx + 8]
jb 0x47f864
mov eax, dword [esp + 0x14]
add eax, 3
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x68]
fadd qword [esp + 0x98]
fstp qword [edi + 8]
fld qword [esp + 0x80]
fadd qword [esp + 0x58]
fstp qword [esp + 0x80]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x40]
jl 0x47f800
lea edi, [eax + 2]
cmp edi, dword [ebx + 8]
jb 0x47f8be
add eax, 3
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], eax
add dword [esp + 0x34], 2
shl dword [esp + 0x34], 4
mov esi, dword [ebx + 4]
add esi, dword [esp + 0x34]
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x60]
fadd qword [esp + 0x90]
fstp qword [esi]
cmp edi, dword [ebx + 8]
jb 0x47f908
mov eax, dword [esp + 0x14]
add eax, 3
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, dword [esp + 0x34]
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x68]
fadd qword [esp + 0x98]
fstp qword [edi + 8]
fld qword [esp + 0x90]
fchs
fstp qword [esp + 0x88]
jmp 0x47f9e9
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], eax
add dword [esp + 0xc], 3
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx + 8]
jb 0x47f967
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [ebx + 8], eax
mov esi, dword [esp + 0x14]
add esi, 3
shl esi, 4
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4fd0
pop ecx
pop ecx
fmul qword [esp + 0x60]
fadd qword [esp + 0x88]
fstp qword [edi]
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx + 8]
jb 0x47f9ab
mov eax, dword [esp + 0x14]
add eax, 4
mov dword [ebx + 8], eax
mov edi, dword [ebx + 4]
add edi, esi
push dword [esp + 0x84]
push dword [esp + 0x84]
call fcn.004a4ff0
pop ecx
pop ecx
fmul qword [esp + 0x68]
fadd qword [esp + 0x98]
fstp qword [edi + 8]
fld qword [esp + 0x80]
fadd qword [esp + 0x58]
fstp qword [esp + 0x80]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x50]
jle 0x47f947
push ebx
mov ecx, dword [esp + 0x50]
call fcn.0047f040
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 4
fcompp
jmp 0x47f622