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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x655e37
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
fld dword [ebp + 0xc]
fcomp dword [ebp + 0x10]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x5c], ebx
fnstsw ax
test ah, 1
je 0x565461
fld dword [ebp + 0x14]
fcomp dword [ebp + 0x18]
fnstsw ax
test ah, 1
jne 0x565486
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x730500
mov ecx, esi
call fcn.00490fb0
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [ebp + 0x1c]
fcom dword [0x69fcb0]
fnstsw ax
test ah, 0x41
jne 0x5654a9
fsub dword [0x69fcb0]
fcom dword [0x69fcb0]
fnstsw ax
test ah, 0x41
je 0x565496
fcom dword [0x66419c]
fnstsw ax
test ah, 1
je 0x5654c9
fadd dword [0x69fcb0]
fcom dword [0x66419c]
fnstsw ax
test ah, 1
jne 0x5654b6
fld dword [ebp + 0x20]
fcom dword [0x69fcb0]
fnstsw ax
test ah, 0x41
jne 0x5654ef
fsub dword [0x69fcb0]
fcom dword [0x69fcb0]
fnstsw ax
test ah, 0x41
je 0x5654d9
fst dword [ebp + 0x20]
fcom dword [0x66419c]
fnstsw ax
test ah, 1
je 0x565512
fadd dword [0x69fcb0]
fcom dword [0x66419c]
fnstsw ax
test ah, 1
jne 0x5654fc
fst dword [ebp + 0x20]
fcom st(1)
fnstsw ax
test ah, 1
je 0x56552b
fstp st(0)
fstp dword [esp + 0x50]
fld dword [ebp + 0x20]
fld dword [esp + 0x50]
fst dword [ebp + 0x20]
fsub st(1)
fcomp dword [0x69f8a8]
fnstsw ax
test ah, 0x41
je 0x565561
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push 0x730500
mov ecx, esi
fstp st(0)
call fcn.00490fb0
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld dword [ebp + 0xc]
fadd dword [ebp + 0x10]
mov dword [esp + 0x34], ebx
fmul dword [0x6641a8]
fstp dword [esp + 0x28]
fld dword [ebp + 0x14]
fadd dword [ebp + 0x18]
fmul dword [0x6641a8]
fstp dword [esp + 0x2c]
fld dword [ebp + 0x10]
fsub dword [ebp + 0xc]
fabs
fmul dword [0x6641a8]
fstp dword [esp + 0x1c]
fld dword [ebp + 0x18]
fsub dword [ebp + 0x14]
fabs
fmul dword [0x6641a8]
fstp dword [esp + 0x18]
mov edi, 1
mov dword [esp + 0x30], ebx
mov dword [esp + 0x68], edi
fst dword [esp + 0x44]
fld st(0)
fcos
sub esp, 8
lea eax, [esp + 0x3c]
sub esp, 8
mov byte [esp + 0x78], 2
fmul dword [esp + 0x2c]
fst dword [esp + 0x64]
fstp dword [esp + 0x50]
fsin
fmul dword [esp + 0x28]
fst dword [esp + 0x68]
fld dword [ebp + 0x24]
fcos
fstp dword [esp + 0x24]
fld dword [ebp + 0x24]
fsin
fstp dword [esp + 0x20]
fld dword [esp + 0x24]
fmul dword [esp + 0x50]
fadd dword [esp + 0x38]
fld dword [esp + 0x20]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x20]
fmul dword [esp + 0x50]
fld dword [esp + 0x24]
fmul st(2)
faddp st(1)
fadd dword [esp + 0x3c]
fstp st(1)
fstp qword [esp + 8]
fld dword [esp + 0x58]
fstp qword [esp]
push str._.3f__.3f_m_n
push eax
call fcn.00491cb0
add esp, 0x18
xor esi, esi
mov dword [esp + 0x50], edi
fild dword [esp + 0x50]
fmul dword [0x69fcac]
fld dword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x565884
fld dword [ebp + 0x20]
fcomp st(1)
fnstsw ax
test ah, 0x41
je 0x565679
mov ecx, dword [ebp + 0x20]
mov esi, 1
fstp st(0)
mov dword [esp + 0x40], ecx
jmp 0x56567d
fstp dword [esp + 0x40]
fld dword [esp + 0x44]
fcos
fmul dword [esp + 0x1c]
fld dword [esp + 0x44]
fsin
fmul dword [esp + 0x18]
fstp dword [esp + 0x48]
fld dword [esp + 0x40]
fcos
fmul dword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [esp + 0x40]
fsin
fmul dword [esp + 0x18]
fstp dword [esp + 0x20]
fld st(0)
fmul dword [esp + 0x18]
fmul dword [esp + 0x18]
fld dword [esp + 0x48]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x24]
fmul dword [esp + 0x18]
fmul dword [esp + 0x18]
fstp dword [esp + 0x3c]
fld dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x18]
fmul dword [esp + 0x18]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x1c]
fchs
fstp dword [esp + 0x38]
fld st(0)
fmul st(3)
fld dword [esp + 0x3c]
fmul st(3)
fsubp st(1)
fstp dword [esp + 0x4c]
fld dword [esp + 0x38]
fmul st(2)
fld dword [esp + 0x38]
fmul st(2)
fsubp st(1)
fdiv dword [esp + 0x4c]
fstp dword [esp + 0x50]
fstp st(0)
fstp st(0)
fld dword [esp + 0x38]
fmul dword [esp + 0x3c]
fld dword [esp + 0x38]
fmul st(2)
fsubp st(1)
fdiv dword [esp + 0x4c]
fstp dword [esp + 0x4c]
fstp st(0)
fld dword [esp + 0x50]
fsub st(1)
fmul dword [0x69fca8]
fadd st(1)
fstp dword [esp + 0x3c]
fstp st(0)
fld dword [esp + 0x4c]
fsub dword [esp + 0x48]
fmul dword [0x69fca8]
fadd dword [esp + 0x48]
fstp dword [esp + 0x48]
fld dword [esp + 0x50]
fsub dword [esp + 0x24]
fmul dword [0x69fca8]
fadd dword [esp + 0x24]
fstp dword [esp + 0x38]
fld dword [esp + 0x4c]
fsub dword [esp + 0x20]
fmul dword [0x69fca8]
sub esp, 8
lea edx, [esp + 0x38]
sub esp, 8
fadd dword [esp + 0x30]
sub esp, 8
sub esp, 8
sub esp, 8
fstp dword [esp + 0x78]
fld dword [esp + 0x38]
fmul dword [esp + 0x64]
fld dword [esp + 0x3c]
fmul dword [esp + 0x70]
sub esp, 8
faddp st(1)
fadd dword [esp + 0x5c]
fld dword [esp + 0x44]
fmul dword [esp + 0x6c]
fadd dword [esp + 0x58]
fld dword [esp + 0x40]
fmul dword [esp + 0x78]
fsubp st(1)
fstp dword [esp + 0x6c]
fld dword [esp + 0x40]
fmul dword [esp + 0x68]
fld dword [esp + 0x44]
fmul dword [esp + 0x80]
faddp st(1)
fadd dword [esp + 0x5c]
fld dword [esp + 0x44]
fmul dword [esp + 0x68]
fadd dword [esp + 0x58]
fld dword [esp + 0x40]
fmul dword [esp + 0x80]
fsubp st(1)
fstp dword [esp + 0x68]
fld dword [esp + 0x44]
fmul dword [esp + 0x54]
fadd dword [esp + 0x58]
fld dword [esp + 0x40]
fmul dword [esp + 0x50]
fsubp st(1)
fld dword [esp + 0x44]
fmul dword [esp + 0x50]
fld dword [esp + 0x40]
fmul dword [esp + 0x54]
faddp st(1)
fadd dword [esp + 0x5c]
fstp qword [esp + 0x28]
fstp qword [esp + 0x20]
fstp qword [esp + 0x18]
fld dword [esp + 0x68]
fstp qword [esp + 0x10]
fstp qword [esp + 8]
fld dword [esp + 0x6c]
fstp qword [esp]
push str._.3f__.3f__.3f__.3f__.3f__.3f_c_n
push edx
call fcn.00491cb0
add esp, 0x38
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
call fcn.00491250
cmp esi, ebx
jne 0x565894
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x44], ecx
jmp 0x565886
fstp st(0)
inc edi
cmp edi, 5
mov dword [esp + 0x50], edi
jl 0x565642
cmp dword [ebp + 0x28], ebx
je 0x565900
fld dword [esp + 0x54]
fld dword [esp + 0x58]
fld dword [esp + 0x14]
fmul st(2)
sub esp, 8
lea edx, [esp + 0x38]
sub esp, 8
fadd dword [esp + 0x38]
fld dword [esp + 0x20]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x58]
fld dword [esp + 0x20]
fmulp st(2)
fld dword [esp + 0x24]
fmul st(1)
faddp st(2)
fxch st(1)
fadd dword [esp + 0x3c]
fxch st(1)
fstp st(0)
fstp qword [esp + 8]
fld dword [esp + 0x58]
fstp qword [esp]
push str._.3f__.3f_l_n
push edx
call fcn.00491cb0
add esp, 0x18
lea eax, [esp + 0x30]
lea ecx, [esp + 0x34]
push eax
call fcn.00491250
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.00491060
lea ecx, [esp + 0x30]
mov dword [esp + 0x5c], 1
mov byte [esp + 0x68], 1
call fcn.00490f90
lea ecx, [esp + 0x34]
mov byte [esp + 0x68], bl
call fcn.00490f90
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret