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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x628e07
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
fld dword [ebp + 0xc]
fcomp dword [ebp + 0x10]
push esi
xor esi, esi
push edi
mov dword [esp + 0x54], esi
fnstsw ax
test ah, 1
je 0x54fa20
fld dword [ebp + 0x14]
fcomp dword [ebp + 0x18]
fnstsw ax
test ah, 1
jne 0x54fa44
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x6e8734
mov ecx, esi
call fcn.00489840
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
fld dword [ebp + 0x1c]
fcom dword [0x65d578]
fnstsw ax
test ah, 0x41
jne 0x54fa6a
fsub dword [0x65d578]
fcom dword [0x65d578]
fnstsw ax
test ah, 0x41
je 0x54fa54
fst dword [ebp + 0x1c]
fcom dword [0x635e2c]
fnstsw ax
test ah, 1
je 0x54fa8d
fadd dword [0x65d578]
fcom dword [0x635e2c]
fnstsw ax
test ah, 1
jne 0x54fa77
fst dword [ebp + 0x1c]
fld dword [ebp + 0x20]
fcom dword [0x65d578]
fnstsw ax
test ah, 0x41
jne 0x54fab3
fsub dword [0x65d578]
fcom dword [0x65d578]
fnstsw ax
test ah, 0x41
je 0x54fa9d
fst dword [ebp + 0x20]
fcom dword [0x635e2c]
fnstsw ax
test ah, 1
je 0x54fad6
fadd dword [0x65d578]
fcom dword [0x635e2c]
fnstsw ax
test ah, 1
jne 0x54fac0
fst dword [ebp + 0x20]
fcom st(1)
fnstsw ax
test ah, 1
je 0x54faf2
fstp st(0)
fstp dword [esp + 0x48]
fld dword [ebp + 0x20]
fst dword [ebp + 0x1c]
fld dword [esp + 0x48]
fst dword [ebp + 0x20]
fsub st(1)
fcomp dword [0x65d574]
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x54fb27
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x6e8734
mov ecx, esi
call fcn.00489840
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
fld dword [ebp + 0xc]
fadd dword [ebp + 0x10]
lea ecx, [esp + 0x2c]
fmul dword [0x635e38]
fstp dword [esp + 0x20]
fld dword [ebp + 0x14]
fadd dword [ebp + 0x18]
fmul dword [0x635e38]
fstp dword [esp + 0x24]
fld dword [ebp + 0x10]
fsub dword [ebp + 0xc]
fabs
fmul dword [0x635e38]
fstp dword [esp + 0x14]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x14]
fabs
fmul dword [0x635e38]
fstp dword [esp + 0x10]
call fcn.004897f0
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 1
call fcn.004897f0
fld dword [ebp + 0x1c]
fcos
sub esp, 8
mov eax, dword [ebp + 0x1c]
sub esp, 8
lea ecx, [esp + 0x3c]
mov byte [esp + 0x70], 2
mov dword [esp + 0x4c], eax
fmul dword [esp + 0x24]
fst dword [esp + 0x5c]
fld dword [ebp + 0x1c]
fsin
fmul dword [esp + 0x20]
fst dword [esp + 0x60]
fld dword [ebp + 0x24]
fcos
fstp dword [esp + 0x1c]
fld dword [ebp + 0x24]
fsin
fstp dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(2)
fadd dword [esp + 0x30]
fld dword [esp + 0x18]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x18]
fmulp st(2)
fld dword [esp + 0x1c]
fmul st(1)
faddp st(2)
fxch st(1)
fadd dword [esp + 0x34]
fxch st(1)
fstp st(0)
fstp qword [esp + 8]
fld dword [esp + 0x50]
fstp qword [esp]
push 0x6e4cc4
push ecx
call fcn.0048a580
mov edi, 1
add esp, 0x18
mov dword [esp + 0x48], edi
fild dword [esp + 0x48]
fmul dword [0x65d570]
fld dword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x54fe53
fld dword [ebp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x54fc4e
mov edx, dword [ebp + 0x20]
mov esi, 1
fstp st(0)
mov dword [esp + 0x38], edx
jmp 0x54fc52
fstp dword [esp + 0x38]
fld dword [esp + 0x3c]
fcos
fmul dword [esp + 0x14]
fld dword [esp + 0x3c]
fsin
fmul dword [esp + 0x10]
fstp dword [esp + 0x40]
fld dword [esp + 0x38]
fcos
fmul dword [esp + 0x14]
fstp dword [esp + 0x1c]
fld dword [esp + 0x38]
fsin
fmul dword [esp + 0x10]
fstp dword [esp + 0x18]
fld st(0)
fmul dword [esp + 0x10]
fmul dword [esp + 0x10]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
fld dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x10]
fstp dword [esp + 0x34]
fld dword [esp + 0x18]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
fld dword [esp + 0x10]
fmul dword [esp + 0x10]
fmul dword [esp + 0x14]
fmul dword [esp + 0x14]
fchs
fstp dword [esp + 0x30]
fld st(0)
fmul st(3)
fld dword [esp + 0x34]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x30]
fmul st(2)
fld dword [esp + 0x30]
fmul st(2)
fsubp st(1)
fdiv dword [esp + 0x44]
fstp dword [esp + 0x48]
fstp st(0)
fstp st(0)
fld dword [esp + 0x30]
fmul dword [esp + 0x34]
fld dword [esp + 0x30]
fmul st(2)
fsubp st(1)
fdiv dword [esp + 0x44]
fstp dword [esp + 0x44]
fstp st(0)
fld dword [esp + 0x48]
fsub st(1)
fmul dword [0x65d56c]
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x44]
fsub dword [esp + 0x40]
fmul dword [0x65d56c]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x48]
fsub dword [esp + 0x1c]
fmul dword [0x65d56c]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x30]
fld dword [esp + 0x44]
fsub dword [esp + 0x18]
fmul dword [0x65d56c]
sub esp, 8
lea eax, [esp + 0x30]
sub esp, 8
fadd dword [esp + 0x28]
sub esp, 8
sub esp, 8
sub esp, 8
fstp dword [esp + 0x70]
fld dword [esp + 0x30]
fmul dword [esp + 0x5c]
fld dword [esp + 0x34]
fmul dword [esp + 0x68]
sub esp, 8
faddp st(1)
fadd dword [esp + 0x54]
fld dword [esp + 0x3c]
fmul dword [esp + 0x64]
fadd dword [esp + 0x50]
fld dword [esp + 0x38]
fmul dword [esp + 0x70]
fsubp st(1)
fstp dword [esp + 0x64]
fld dword [esp + 0x38]
fmul dword [esp + 0x60]
fld dword [esp + 0x3c]
fmul dword [esp + 0x78]
faddp st(1)
fadd dword [esp + 0x54]
fld dword [esp + 0x3c]
fmul dword [esp + 0x60]
fadd dword [esp + 0x50]
fld dword [esp + 0x38]
fmul dword [esp + 0x78]
fsubp st(1)
fstp dword [esp + 0x60]
fld dword [esp + 0x3c]
fmul dword [esp + 0x4c]
fadd dword [esp + 0x50]
fld dword [esp + 0x38]
fmul dword [esp + 0x48]
fsubp st(1)
fld dword [esp + 0x3c]
fmul dword [esp + 0x48]
fld dword [esp + 0x38]
fmul dword [esp + 0x4c]
faddp st(1)
fadd dword [esp + 0x54]
fstp qword [esp + 0x28]
fstp qword [esp + 0x20]
fstp qword [esp + 0x18]
fld dword [esp + 0x60]
fstp qword [esp + 0x10]
fstp qword [esp + 8]
fld dword [esp + 0x64]
fstp qword [esp]
push 0x6e4ca0
push eax
call fcn.0048a580
add esp, 0x38
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.00489e10
test esi, esi
jne 0x54fe63
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
jmp 0x54fe55
fstp st(0)
inc edi
cmp edi, 5
mov dword [esp + 0x48], edi
jl 0x54fc17
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x54fed1
fld dword [esp + 0x4c]
fld dword [esp + 0x50]
fld dword [esp + 0xc]
fmul st(2)
sub esp, 8
lea eax, [esp + 0x30]
sub esp, 8
fadd dword [esp + 0x30]
fld dword [esp + 0x18]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x50]
fld dword [esp + 0x18]
fmulp st(2)
fld dword [esp + 0x1c]
fmul st(1)
faddp st(2)
fxch st(1)
fadd dword [esp + 0x34]
fxch st(1)
fstp st(0)
fstp qword [esp + 8]
fld dword [esp + 0x50]
fstp qword [esp]
push 0x6e4cd4
push eax
call fcn.0048a580
add esp, 0x18
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.00489e10
mov esi, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.004898b0
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 1
mov byte [esp + 0x60], 1
call fcn.00489810
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 0
call fcn.00489810
mov ecx, dword [esp + 0x58]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret