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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x628ca7
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 0x54f600
fld dword [ebp + 0x14]
fcomp dword [ebp + 0x18]
fnstsw ax
test ah, 1
jne 0x54f624
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x6edc4c
mov ecx, esi
call fcn.00489310
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 [0x65d4e0]
fnstsw ax
test ah, 0x41
jne 0x54f64a
fsub dword [0x65d4e0]
fcom dword [0x65d4e0]
fnstsw ax
test ah, 0x41
je 0x54f634
fst dword [ebp + 0x1c]
fcom dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x54f66d
fadd dword [0x65d4e0]
fcom dword [0x635d9c]
fnstsw ax
test ah, 1
jne 0x54f657
fst dword [ebp + 0x1c]
fld dword [ebp + 0x20]
fcom dword [0x65d4e0]
fnstsw ax
test ah, 0x41
jne 0x54f693
fsub dword [0x65d4e0]
fcom dword [0x65d4e0]
fnstsw ax
test ah, 0x41
je 0x54f67d
fst dword [ebp + 0x20]
fcom dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x54f6b6
fadd dword [0x65d4e0]
fcom dword [0x635d9c]
fnstsw ax
test ah, 1
jne 0x54f6a0
fst dword [ebp + 0x20]
fcom st(1)
fnstsw ax
test ah, 1
je 0x54f6d2
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 [0x65d4dc]
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x54f707
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x6edc4c
mov ecx, esi
call fcn.00489310
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 [0x635da8]
fstp dword [esp + 0x20]
fld dword [ebp + 0x14]
fadd dword [ebp + 0x18]
fmul dword [0x635da8]
fstp dword [esp + 0x24]
fld dword [ebp + 0x10]
fsub dword [ebp + 0xc]
fabs
fmul dword [0x635da8]
fstp dword [esp + 0x14]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x14]
fabs
fmul dword [0x635da8]
fstp dword [esp + 0x10]
call fcn.004892c0
lea ecx, [esp + 0x28]
mov dword [esp + 0x60], 1
call fcn.004892c0
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 str._.3f__.3f_m_n
push ecx
call fcn.0048a080
mov edi, 1
add esp, 0x18
mov dword [esp + 0x48], edi
fild dword [esp + 0x48]
fmul dword [0x65d4d8]
fld dword [esp + 0x3c]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x54fa33
fld dword [ebp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x54f82e
mov edx, dword [ebp + 0x20]
mov esi, 1
fstp st(0)
mov dword [esp + 0x38], edx
jmp 0x54f832
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 [0x65d4d4]
fadd st(1)
fstp dword [esp + 0x34]
fstp st(0)
fld dword [esp + 0x44]
fsub dword [esp + 0x40]
fmul dword [0x65d4d4]
fadd dword [esp + 0x40]
fstp dword [esp + 0x40]
fld dword [esp + 0x48]
fsub dword [esp + 0x1c]
fmul dword [0x65d4d4]
fadd dword [esp + 0x1c]
fstp dword [esp + 0x30]
fld dword [esp + 0x44]
fsub dword [esp + 0x18]
fmul dword [0x65d4d4]
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 str._.3f__.3f__.3f__.3f__.3f__.3f_c_n
push eax
call fcn.0048a080
add esp, 0x38
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.00489910
test esi, esi
jne 0x54fa43
mov edx, dword [esp + 0x38]
mov dword [esp + 0x3c], edx
jmp 0x54fa35
fstp st(0)
inc edi
cmp edi, 5
mov dword [esp + 0x48], edi
jl 0x54f7f7
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x54fab1
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 str._.3f__.3f_l_n
push eax
call fcn.0048a080
add esp, 0x18
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x30]
call fcn.00489910
mov esi, dword [ebp + 8]
lea edx, [esp + 0x2c]
push edx
mov ecx, esi
call fcn.00489380
lea ecx, [esp + 0x28]
mov dword [esp + 0x54], 1
mov byte [esp + 0x60], 1
call fcn.004892e0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x60], 0
call fcn.004892e0
mov ecx, dword [esp + 0x58]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret