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

Disassembly:
sub esp, 0x18
fld dword [esp + 0x3c]
push ebx
fld qword [0xaae780]
push esi
fmul st(1)
push edi
mov edi, ecx
call fcn.00a2cb30
mov ebx, dword [esp + 0x2c]
mov esi, eax
mov dword [esp + 0xc], esi
test ebx, ebx
jge 0x5770b5
neg ebx
mov dword [esp + 0x2c], ebx
fild dword [esp + 0x2c]
fstp dword [esp + 0x2c]
fld dword [esp + 0x2c]
fcom st(1)
fnstsw ax
test ah, 1
jne 0x576f7d
mov eax, dword [esp + 0x64]
fstp st(0)
mov ecx, dword [esp + 0x60]
fld dword [esp + 0x54]
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x64]
fstp dword [esp]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
mov edx, dword [esp + 0x4c]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
push eax
fld dword [esp + 0x64]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
push ecx
push edx
mov ecx, edi
call fcn.00576880
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x40
fstp dword [esp + 0x2c]
push 0xffffffffffffffff
fild dword [esp + 0x10]
push 0xffffffffffffffff
mov esi, dword [esp + 0x3c]
fadd dword [esp + 0x34]
fnstcw word [esp + 0x34]
movzx eax, word [esp + 0x34]
fst qword [esp + 0x14]
fsub st(1), st(0)
or eax, 0xc00
mov dword [esp + 0x30], eax
fxch st(1)
fst qword [esp + 0x24]
fldcw word [esp + 0x30]
fxch st(1)
fistp qword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
push eax
fldcw word [esp + 0x38]
fld dword [esp + 0x50]
fnstcw word [esp + 0x38]
movzx eax, word [esp + 0x38]
or eax, 0xc00
mov dword [esp + 0x34], eax
fldcw word [esp + 0x34]
fistp qword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0xa8]
fldcw word [esp + 0x3c]
fnstcw word [esp + 0x3c]
movzx eax, word [esp + 0x3c]
or eax, 0xc00
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0xac]
fldcw word [esp + 0x38]
fistp qword [esp + 0x24]
mov edx, dword [esp + 0x24]
add edx, dword [esi + 0xb0]
fldcw word [esp + 0x3c]
push edx
push eax
push ecx
mov ecx, esi
call fcn.005797d0
fld dword [esp + 0x48]
fisub dword [esp + 0x64]
call fcn.00a2cb30
and eax, 0x8000000f
jns 0x577040
dec eax
or eax, 0xfffffff0
inc eax
mov edx, dword [esp + 0x60]
fld dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
push ecx
fstp dword [esp]
mov ecx, dword [esp + 0x54]
fld qword [esp + 0x20]
push edx
mov edx, dword [esp + 0x48]
fstp dword [esp + 0x7c]
fld dword [esp + 0x7c]
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
push ecx
fld dword [esp + 0x64]
sub esp, 8
fadd qword [esp + 0x4c]
mov ecx, edi
fstp dword [esp + 0x74]
fld dword [esp + 0x74]
fstp dword [esp + 4]
fld dword [esp + 0x68]
fstp dword [esp]
push esi
push edx
call fcn.00576880
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x40
fild dword [esp + 0x2c]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x5771fa
push ebp
call fcn.00a2cb30
mov ebp, dword [esp + 0x68]
sub eax, esi
sub eax, ebx
cmp ebp, eax
mov dword [esp + 0x30], eax
jle 0x5770de
mov ebp, eax
fild dword [esp + 0x30]
mov esi, dword [esp + 0x38]
fnstcw word [esp + 0x68]
mov edx, dword [esi + 0xb0]
movzx eax, word [esp + 0x68]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
or eax, 0xc00
mov dword [esp + 0x18], eax
push 0xffffffffffffffff
push 0xffffffffffffffff
fldcw word [esp + 0x20]
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
push eax
fldcw word [esp + 0x74]
fld dword [esp + 0x54]
fnstcw word [esp + 0x74]
movzx eax, word [esp + 0x74]
or eax, 0xc00
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xac]
fldcw word [esp + 0x24]
fistp qword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi + 0xa8]
fldcw word [esp + 0x78]
push edx
push eax
push ecx
mov ecx, esi
call fcn.005797d0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x5c]
fld dword [esp + 0x58]
push ebp
mov ebp, dword [esp + 0x48]
push edx
mov edx, dword [esp + 0x5c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
push ecx
fstp dword [esp]
mov ecx, dword [esp + 0x48]
fld dword [esp + 0x44]
push edx
push eax
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x6c]
fstp dword [esp]
push ebp
fld dword [esp + 0x68]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x6c]
fstp dword [esp]
push esi
push ecx
mov ecx, edi
call fcn.00576880
fild dword [esp + 0x10]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
fstp dword [esp]
push ebx
fld dword [esp + 0x5c]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x60]
fstp dword [esp]
push ebp
fld dword [esp + 0x5c]
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x60]
mov ecx, edi
fstp dword [esp]
push esi
call fcn.005750a0
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret 0x40
pop edi
fstp st(0)
pop esi
pop ebx
add esp, 0x18
ret 0x40