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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x1c]
mov ecx, edi
call fcn.00508920
mov ecx, edi
mov ebx, eax
call fcn.00508900
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov ecx, edi
fstp dword [esp + 0x28]
call fcn.00508910
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov ecx, edi
fstp dword [esp + 0x3c]
call fcn.00508930
mov ecx, ebx
mov edi, eax
call fcn.004fd3c0
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
mov ecx, ebx
fld1
fdivrp st(1)
fstp dword [esp + 0x38]
call fcn.00413e00
mov dword [esp + 0x24], eax
fild dword [esp + 0x24]
fld1
fdivrp st(1)
fstp dword [esp + 0x24]
fild dword [edi]
fld dword [esp + 0x38]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x38]
fild dword [edi + 4]
fld dword [esp + 0x24]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x30]
fild dword [edi + 8]
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x24]
fimul dword [edi + 0xc]
fstp dword [esp + 0x18]
fld dword [esi + 0x14]
fld qword [0x5fe2b8]
fsub st(1), st(0)
fxch st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x44]
fstp dword [esp + 0x48]
fld dword [esi + 0x18]
fsub st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fst dword [esp + 0x4c]
fldz
fst dword [esp + 0x50]
fld dword [esp + 0x38]
fstp dword [esp + 0x10]
fld dword [esp + 0x30]
mov eax, dword [esp + 0x10]
fst dword [esp + 0x14]
mov dword [esp + 0x58], eax
fld1
mov ecx, dword [esp + 0x14]
fcom dword [esi + 4]
mov dword [esp + 0x5c], ecx
fnstsw ax
fld qword [0x5fe2c0]
test ah, 0x41
jp 0x4f8b06
mov edi, 0xff
jmp 0x4f8b41
fxch st(3)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x4f8b16
xor edi, edi
jmp 0x4f8b3f
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(4)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edi, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x4f8b54
mov edx, 0xff
jmp 0x4f8b8f
fxch st(3)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x4f8b64
xor edx, edx
jmp 0x4f8b8d
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov edx, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x4f8ba0
mov ecx, 0xff
jmp 0x4f8bdb
fxch st(3)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x4f8bb0
xor ecx, ecx
jmp 0x4f8bd9
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov ecx, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x4f8bec
mov eax, 0xff
jmp 0x4f8c27
fxch st(3)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x4f8bfc
xor eax, eax
jmp 0x4f8c25
fld dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x30], eax
fadd st(6)
fldcw word [esp + 0x30]
fistp qword [esp + 0x30]
mov eax, dword [esp + 0x30]
fldcw word [esp + 0x10]
fxch st(3)
fld dword [esi + 0x14]
shl eax, 8
fadd dword [esp + 0x28]
or eax, edi
shl eax, 8
or eax, edx
fsub st(6)
shl eax, 8
or eax, ecx
mov dword [esp + 0x54], eax
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fst dword [esp + 0x60]
fxch st(5)
fstp dword [esp + 0x64]
fxch st(3)
fst dword [esp + 0x68]
fld dword [esp + 0x24]
fstp dword [esp + 0x28]
mov edx, dword [esp + 0x28]
fxch st(2)
mov dword [esp + 0x70], edx
fstp dword [esp + 0x2c]
mov eax, dword [esp + 0x2c]
fxch st(2)
mov dword [esp + 0x74], eax
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x4f8c8c
mov edi, 0xff
jmp 0x4f8cc7
fxch st(1)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x4f8c9c
xor edi, edi
jmp 0x4f8cc5
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x28], eax
fadd st(5)
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edi, dword [esp + 0x28]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x4f8cd8
mov edx, 0xff
jmp 0x4f8d13
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x4f8ce8
xor edx, edx
jmp 0x4f8d11
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x28], eax
fadd st(5)
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov edx, dword [esp + 0x28]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x4f8d24
mov ecx, 0xff
jmp 0x4f8d5f
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x4f8d34
xor ecx, ecx
jmp 0x4f8d5d
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x28], eax
fadd st(5)
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov ecx, dword [esp + 0x28]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x4f8d70
mov eax, 0xff
jmp 0x4f8dab
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x4f8d80
xor eax, eax
jmp 0x4f8da9
fld dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(3)
or eax, 0xc00
mov dword [esp + 0x28], eax
fadd st(5)
fldcw word [esp + 0x28]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
fldcw word [esp + 0x10]
fxch st(1)
fld dword [esp + 0x44]
shl eax, 8
fstp dword [esp + 0x78]
or eax, edi
fld dword [esi + 0x18]
shl eax, 8
fadd dword [esp + 0x3c]
or eax, edx
shl eax, 8
or eax, ecx
fsub st(5)
mov dword [esp + 0x6c], eax
fstp dword [esp + 0x3c]
fld dword [esp + 0x3c]
fst dword [esp + 0x7c]
fxch st(2)
fst dword [esp + 0x80]
fld dword [esp + 0x38]
fstp dword [esp + 0x3c]
mov ecx, dword [esp + 0x3c]
fld dword [esp + 0x18]
mov dword [esp + 0x88], ecx
fst dword [esp + 0x40]
mov edx, dword [esp + 0x40]
fxch st(2)
mov dword [esp + 0x8c], edx
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x4f8e1d
mov edi, 0xff
jmp 0x4f8e58
fxch st(1)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x4f8e2d
xor edi, edi
jmp 0x4f8e56
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x4f8e69
mov edx, 0xff
jmp 0x4f8ea4
fxch st(1)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x4f8e79
xor edx, edx
jmp 0x4f8ea2
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x4f8eb5
mov ecx, 0xff
jmp 0x4f8ef0
fxch st(1)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x4f8ec5
xor ecx, ecx
jmp 0x4f8eee
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x4f8f01
mov eax, 0xff
jmp 0x4f8f3c
fxch st(1)
fcom dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x4f8f11
xor eax, eax
jmp 0x4f8f3a
fld dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(5)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(7)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(1)
shl eax, 8
fxch st(5)
fstp dword [esp + 0x90]
or eax, edi
fxch st(2)
shl eax, 8
fstp dword [esp + 0x94]
or eax, edx
fxch st(1)
shl eax, 8
fst dword [esp + 0x98]
or eax, ecx
fld dword [esp + 0x24]
mov dword [esp + 0x84], eax
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fxch st(1)
mov dword [esp + 0xa0], eax
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
fxch st(2)
mov dword [esp + 0xa4], ecx
fcom dword [esi + 4]
fnstsw ax
test ah, 0x41
jp 0x4f8fa4
mov edi, 0xff
jmp 0x4f8fdf
fxch st(2)
fcom dword [esi + 4]
fnstsw ax
test ah, 1
jne 0x4f8fb4
xor edi, edi
jmp 0x4f8fdd
fld dword [esi + 4]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(4)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(2)
fcom dword [esi + 8]
fnstsw ax
test ah, 0x41
jp 0x4f8ff0
mov edx, 0xff
jmp 0x4f902b
fxch st(2)
fcom dword [esi + 8]
fnstsw ax
test ah, 1
jne 0x4f9000
xor edx, edx
jmp 0x4f9029
fld dword [esi + 8]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(4)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(2)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 0x41
jp 0x4f903c
mov ecx, 0xff
jmp 0x4f9077
fxch st(2)
fcom dword [esi + 0xc]
fnstsw ax
test ah, 1
jne 0x4f904c
xor ecx, ecx
jmp 0x4f9075
fld dword [esi + 0xc]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
fmul st(2)
or eax, 0xc00
mov dword [esp + 0x18], eax
fadd st(4)
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov ecx, dword [esp + 0x18]
fldcw word [esp + 0x10]
fxch st(2)
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 0x41
jp 0x4f908e
fstp st(2)
mov eax, 0xff
fstp st(0)
fstp st(0)
jmp 0x4f90c9
fxch st(1)
fcomp dword [esi + 0x10]
fnstsw ax
test ah, 1
jne 0x4f90a2
fstp st(1)
xor eax, eax
fstp st(0)
jmp 0x4f90c9
fmul dword [esi + 0x10]
fnstcw word [esp + 0x10]
movzx eax, word [esp + 0x10]
or eax, 0xc00
faddp st(1)
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov eax, dword [esp + 0x18]
fldcw word [esp + 0x10]
shl eax, 8
or eax, edi
shl eax, 8
or eax, edx
shl eax, 8
lea edx, [esp + 0x48]
or eax, ecx
push 4
push edx
mov dword [esp + 0xa4], eax
call fcn.004f0030
add esp, 8
test al, al
je 0x4f9147
push 5
call fcn.004efdb0
mov esi, dword [0x67ace0]
add esp, 4
mov ecx, ebx
call fcn.00429920
push eax
push 0
mov ecx, esi
call fcn.004ea9d0
mov ecx, dword [0x67ace0]
push 0
push 1
call fcn.004ea9d0
mov ecx, dword [0x67ace0]
push 0x142
call fcn.004eaa60
mov ecx, dword [0x67ace0]
push 2
push 0
push 4
push 0
push 4
call fcn.004eacb0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret