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

Disassembly:
sub esp, 0x64
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
test esi, esi
push edi
mov dword [esp + 0x10], ecx
je 0x4f9251
mov eax, dword [esi]
mov ecx, esi
xor ebx, ebx
call dword [eax + 0x60]
mov ebp, dword [esp + 0x78]
test eax, eax
jle 0x4f8f92
mov edx, dword [esi]
push ebx
mov ecx, esi
call dword [edx + 0x64]
mov edi, eax
test edi, edi
je 0x4f8f86
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x17c]
test eax, eax
jne 0x4f8f77
mov ecx, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x14]
push edi
push ebp
call fcn.004f8f20
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
jne 0x4f8f86
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
mov eax, dword [esi]
mov ecx, esi
inc ebx
call dword [eax + 0x60]
cmp ebx, eax
jl 0x4f8f48
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xc]
test eax, eax
jne 0x4f9251
mov ecx, esi
call fcn.005774a0
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x4f9251
mov ecx, dword [edi + 0x18]
mov ebx, dword [edi + 0x28]
shr ecx, 0xa
and cl, 1
mov byte [esp + 0x7c], cl
je 0x4f9002
lea eax, [ebx + ebx*2]
shl eax, 2
push eax
call fcn.00672b70
add esp, 4
test eax, eax
je 0x4f8fe8
lea ecx, [ebx - 1]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x78], eax
jmp 0x4f8ff0
mov dword [esp + 0x78], 0
mov edx, dword [esp + 0x78]
mov ecx, esi
push edx
call fcn.005776a0
mov cl, byte [esp + 0x7c]
jmp 0x4f900c
mov eax, dword [edi + 0x30]
mov edx, dword [eax + 8]
mov dword [esp + 0x78], edx
test ebx, ebx
jle 0x4f9231
mov eax, dword [esp + 0x78]
lea edi, [eax + 4]
mov edx, dword [edi]
mov eax, dword [edi + 4]
fld dword [edi - 4]
test cl, cl
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jne 0x4f909c
mov edx, dword [esi]
mov ecx, esi
fstp st(0)
call dword [edx + 0x4c]
fld dword [esi + 0x24]
fmul dword [edi + 4]
fld dword [esi + 0x20]
fmul dword [edi]
faddp st(1)
fld dword [edi - 4]
fmul dword [esi + 0x1c]
faddp st(1)
fadd dword [esi + 0x28]
fld dword [esi + 0x34]
fmul dword [edi + 4]
fld dword [esi + 0x2c]
fmul dword [edi - 4]
faddp st(1)
fld dword [esi + 0x30]
fmul dword [edi]
faddp st(1)
fadd dword [esi + 0x38]
fstp dword [esp + 0x3c]
fld dword [esi + 0x44]
fmul dword [edi + 4]
fld dword [esi + 0x3c]
fmul dword [edi - 4]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
faddp st(1)
fld dword [esi + 0x40]
fmul dword [edi]
faddp st(1)
fadd dword [esi + 0x48]
fstp dword [esp + 0x40]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
mov cl, byte [esp + 0x7c]
mov eax, dword [esp + 0x80]
cmp byte [eax], 0
je 0x4f90c1
mov edx, dword [esp + 0x24]
fstp dword [ebp]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x28]
mov dword [ebp + 8], edx
mov byte [eax], 0
jmp 0x4f9223
fld dword [ebp]
fsub dword [ebp + 0xc]
fstp dword [esp + 0x14]
fld dword [ebp + 4]
fsub dword [ebp + 0x10]
fstp dword [esp + 0x18]
fld dword [ebp + 8]
fsub dword [ebp + 0x14]
fstp dword [esp + 0x1c]
fld dword [ebp]
fadd dword [ebp + 0xc]
fst dword [esp + 0x2c]
fld dword [ebp + 0x10]
fadd dword [ebp + 4]
fstp dword [esp + 0x30]
fld dword [ebp + 0x14]
fadd dword [ebp + 8]
fstp dword [esp + 0x34]
fld dword [esp + 0x14]
fcomp st(2)
fnstsw ax
test ah, 0x41
jne 0x4f9110
fld st(1)
fstp dword [esp + 0x14]
fld dword [esp + 0x18]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x4f9127
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
fld dword [esp + 0x1c]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 0x41
jne 0x4f913e
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], edx
fcomp st(1)
fnstsw ax
test ah, 1
je 0x4f914d
fstp dword [esp + 0x2c]
jmp 0x4f914f
fstp st(0)
fld dword [esp + 0x30]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x4f9166
mov eax, dword [esp + 0x24]
mov dword [esp + 0x30], eax
fld dword [esp + 0x34]
fcomp dword [esp + 0x28]
fnstsw ax
test ah, 1
je 0x4f917d
mov edx, dword [esp + 0x28]
mov dword [esp + 0x34], edx
fld dword [esp + 0x2c]
fadd dword [esp + 0x14]
fld dword [esp + 0x30]
fadd dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x34]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x4c]
fmul dword [0x7cd778]
fld dword [esp + 0x48]
fmul dword [0x7cd778]
fstp dword [esp + 0x54]
fld dword [esp + 0x4c]
fmul dword [0x7cd778]
mov eax, dword [esp + 0x54]
mov dword [ebp + 4], eax
fstp dword [esp + 0x58]
mov edx, dword [esp + 0x58]
fstp dword [ebp]
fld dword [esp + 0x2c]
fsub dword [esp + 0x14]
fld dword [esp + 0x30]
fsub dword [esp + 0x18]
mov dword [ebp + 8], edx
fstp dword [esp + 0x60]
fld dword [esp + 0x34]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x64]
fmul dword [0x7cd778]
fld dword [esp + 0x60]
fmul dword [0x7cd778]
fstp dword [esp + 0x6c]
fld dword [esp + 0x64]
fmul dword [0x7cd778]
mov eax, dword [esp + 0x6c]
mov dword [ebp + 0x10], eax
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
fstp dword [ebp + 0xc]
mov dword [ebp + 0x14], edx
add edi, 0xc
dec ebx
jne 0x4f901b
mov edi, dword [esp + 0x10]
test cl, cl
je 0x4f9242
mov eax, dword [esp + 0x78]
push eax
call fcn.00672c80
add esp, 4
mov eax, dword [edi + 4]
dec eax
mov dword [edi + 4], eax
jne 0x4f9251
mov edx, dword [edi]
mov ecx, edi
call dword [edx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret 0xc