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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62c738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x6edc4c
mov ecx, edi
call fcn.004894e0
fld dword [ebp + 0x10]
fcomp dword [ebp + 0x14]
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
fnstsw ax
test ah, 1
je 0x5895ac
fld dword [ebp + 0x18]
fcomp dword [ebp + 0x1c]
fnstsw ax
test ah, 1
jne 0x5895e0
mov eax, dword [ebp + 8]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x20]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
fld dword [ebp + 0x14]
fsub dword [ebp + 0x10]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov ecx, eax
mov edx, eax
mov dword [esp + 0x90], ecx
mov ecx, dword [ebp + 0x14]
fstp dword [esp + 0x24]
fld dword [ebp + 0x10]
fadd dword [ebp + 0x14]
mov dword [esp + 0x94], eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x80], ecx
fmul dword [0x635da8]
mov edx, ecx
mov eax, ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x1c]
fstp dword [esp + 0x10]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x1c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
mov edx, ecx
mov dword [esp + 0x88], ecx
fmul dword [0x635da8]
mov dword [esp + 0x70], edx
mov ecx, eax
mov edx, eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], edx
fstp dword [esp + 0xc]
mov dword [esp + 0x58], eax
mov ecx, eax
fmul dword [0x65d4d0]
fld dword [esp + 0x24]
fmul dword [0x65d4d0]
mov edx, eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], edx
mov ecx, eax
mov edx, eax
fstp dword [esp + 8]
fld dword [esp + 0x10]
fsub st(1)
mov dword [esp + 0x60], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], edx
xor ecx, ecx
fst dword [esp + 0x8c]
fstp dword [esp + 0x6c]
fadd dword [esp + 0x10]
fst dword [esp + 0x84]
fstp dword [esp + 0x74]
fld dword [esp + 0xc]
fsub dword [esp + 8]
fst dword [esp + 0x5c]
fstp dword [esp + 0x4c]
fld dword [esp + 8]
fadd dword [esp + 0xc]
fst dword [esp + 0x44]
fstp dword [esp + 0x34]
fld dword [ebp + 0x20]
fld st(0)
fcos
fstp dword [esp + 0x24]
fsin
fld dword [esp + ecx*4 + 0x64]
fsub dword [esp + 0x10]
cmp ecx, esi
fstp dword [esp + 0x2c]
fld dword [esp + ecx*4 + 0x30]
fsub dword [esp + 0xc]
fstp dword [esp + 8]
fld dword [esp + 0x24]
fmul dword [esp + 0x2c]
fadd dword [esp + 0x10]
fld st(1)
fmul dword [esp + 8]
fsubp st(1)
fst dword [esp + ecx*4 + 0x64]
fld st(1)
fmul dword [esp + 0x2c]
fld dword [esp + 0x24]
fmul dword [esp + 8]
faddp st(1)
fadd dword [esp + 0xc]
fstp dword [esp + 8]
mov eax, dword [esp + 8]
mov dword [esp + ecx*4 + 0x30], eax
jne 0x58975d
fst dword [esp + 0x18]
fstp dword [esp + 0x14]
fld dword [esp + 8]
fst dword [esp + 0x20]
fstp dword [esp + 0x1c]
jmp 0x5897b1
fld dword [esp + 0x14]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x58976e
fst dword [esp + 0x14]
fld dword [esp + 0x1c]
fcomp dword [esp + 8]
fnstsw ax
test ah, 0x41
jne 0x589785
mov edx, dword [esp + 8]
mov dword [esp + 0x1c], edx
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 1
je 0x589798
fstp dword [esp + 0x18]
jmp 0x58979a
fstp st(0)
fld dword [esp + 0x20]
fcomp dword [esp + 8]
fnstsw ax
test ah, 1
je 0x5897b1
mov eax, dword [esp + 8]
mov dword [esp + 0x20], eax
inc ecx
cmp ecx, 0xd
jl 0x5896f3
lea ecx, [esp + 0x28]
fstp st(0)
call fcn.004892c0
fld dword [esp + 0x30]
sub esp, 8
mov dword [esp + 0xa8], esi
fstp qword [esp]
fld dword [esp + 0x6c]
sub esp, 8
fstp qword [esp]
push str._.3f__.3f_m_n
push edi
call fcn.0048a080
add esp, 0x18
fld dword [esp + esi + 0x3c]
sub esp, 8
lea ecx, [esp + 0x30]
fstp qword [esp]
fld dword [esp + esi + 0x78]
sub esp, 8
fstp qword [esp]
fld dword [esp + esi + 0x48]
sub esp, 8
fstp qword [esp]
fld dword [esp + esi + 0x84]
sub esp, 8
fstp qword [esp]
fld dword [esp + esi + 0x54]
sub esp, 8
fstp qword [esp]
fld dword [esp + esi + 0x90]
sub esp, 8
fstp qword [esp]
push str._.3f__.3f__.3f__.3f__.3f__.3f_c_n
push ecx
call fcn.0048a080
add esp, 0x38
lea edx, [esp + 0x28]
mov ecx, edi
push edx
call fcn.00489910
add esi, 0xc
cmp esi, 0x30
jl 0x5897ef
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, esi
mov dword [esp + 0xa0], 0xffffffff
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x28]
mov dword [eax + 0xc], edx
call fcn.004892e0
mov ecx, dword [esp + 0x98]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret