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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62c7a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe4
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x6edc4c
call fcn.004894e0
fld dword [ebp + 0x10]
fcomp dword [ebp + 0x14]
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
fnstsw ax
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
test ah, 1
je 0x58b6b1
fld dword [ebp + 0x18]
fcomp dword [ebp + 0x1c]
fnstsw ax
test ah, 1
je 0x58b6b1
mov esi, dword [ebp + 0x20]
cmp esi, 2
jb 0x58b6b1
xor ebx, ebx
push 0x14
lea ecx, [esp + 0xa0]
mov dword [esp + 0xa0], 0x65df38
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xac], 0x14
mov dword [esp + 0xa8], ebx
mov dword [esp + 0xb0], ebx
call fcn.0056c540
fld dword [ebp + 0x14]
fsub dword [ebp + 0x10]
xor edi, edi
cmp esi, ebx
mov dword [esp + 0xf8], ebx
fabs
fmul dword [0x635da8]
fstp dword [esp + 0x10]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0x18]
fabs
fmul dword [0x635da8]
fstp dword [esp + 0x8c]
fld dword [ebp + 0x10]
fadd dword [ebp + 0x14]
fmul dword [0x635da8]
fstp dword [esp + 0x7c]
fld dword [ebp + 0x18]
fadd dword [ebp + 0x1c]
fmul dword [0x635da8]
fstp dword [esp + 0x50]
jbe 0x58b13f
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], ebx
fild qword [esp + 0x1c]
fstp dword [esp + 0x24]
fld dword [ebp + 0x24]
fld st(0)
fcos
fstp dword [esp + 0x14]
fsin
fstp dword [esp + 0x3c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x88], ebx
fild qword [esp + 0x84]
sub esp, 8
lea ecx, [esp + 0xa4]
mov eax, esp
fmul dword [0x65d4e0]
fdiv dword [esp + 0x2c]
fld st(0)
fcos
fmul dword [esp + 0x18]
fstp dword [esp + 0x40]
fsin
fmul dword [esp + 0x94]
fld dword [esp + 0x1c]
fmul dword [esp + 0x40]
fadd dword [esp + 0x84]
fld dword [esp + 0x44]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x24]
fld dword [esp + 0x44]
fmul dword [esp + 0x40]
fld dword [esp + 0x1c]
fmul st(2)
mov dword [esp + 0x40], esp
faddp st(1)
fadd dword [esp + 0x58]
fstp st(1)
fld dword [esp + 0x24]
fstp dword [eax]
fstp dword [eax + 4]
call fcn.0055bef0
inc edi
cmp edi, esi
jb 0x58b0b3
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x10], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x20], ecx
mov ecx, 1
cmp esi, ecx
mov dword [esp + 0x1c], eax
jb 0x58b1e1
mov eax, ecx
xor edx, edx
div esi
fld dword [edi + edx*8]
fld st(0)
fsub dword [esp + 0x1c]
lea eax, [edi + edx*8]
mov edx, dword [edi + edx*8 + 4]
mov dword [esp + 0x80], edx
fld dword [esp + 0x80]
fsub dword [esp + 0x20]
fstp dword [esp + 0x98]
fld dword [esp + 0x98]
fld st(1)
fstp dword [esp + 0x30]
fst dword [esp + 0x34]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp st(2)
fstp st(0)
fld st(0)
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x58b1cb
fstp dword [esp + 0x10]
jmp 0x58b1cd
fstp st(0)
mov eax, dword [esp + 0x80]
inc ecx
fstp dword [esp + 0x1c]
cmp ecx, esi
mov dword [esp + 0x20], eax
jbe 0x58b164
fld dword [esp + 0x10]
fmul dword [0x65eba8]
lea ecx, [esp + 0x58]
fstp dword [esp + 0x10]
call fcn.004892c0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x6c], ecx
mov ecx, dword [ebp + 0x1c]
mov edi, 1
cmp esi, ebx
mov byte [esp + 0xf8], 1
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
mov dword [esp + 0x38], edi
jbe 0x58b63f
fld dword [esp + 0x10]
fadd st(0), st(0)
fstp dword [esp + 0x3c]
lea eax, [esi + edi - 2]
xor edx, edx
div esi
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x84], 0x3f800000
mov dword [esp + 0x88], 0
fld dword [ecx + ebx]
fstp dword [esp + 0x1c]
fld dword [ecx + ebx + 4]
fstp dword [esp + 0x20]
fld dword [ecx + edx*8]
fsub dword [esp + 0x1c]
lea eax, [ecx + edx*8]
mov edx, dword [ecx + edx*8 + 4]
mov eax, edi
mov dword [esp + 0x80], edx
xor edx, edx
div esi
fld dword [esp + 0x80]
fsub dword [esp + 0x20]
fstp dword [esp + 0xb4]
fld dword [esp + 0xb4]
fld st(1)
lea eax, [ecx + edx*8]
mov ecx, dword [ecx + edx*8]
mov edx, dword [eax + 4]
fstp dword [esp + 0x30]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x50]
fsub dword [esp + 0x1c]
fld dword [esp + 0x54]
fsub dword [esp + 0x20]
lea ecx, [esp + 0x84]
fstp dword [esp + 0xbc]
fld dword [esp + 0xbc]
fstp dword [esp + 0xcc]
mov eax, dword [esp + 0xcc]
fstp dword [esp + 0x64]
fstp qword [esp + 0x24]
mov dword [esp + 0x68], eax
call fcn.00550570
fstp qword [esp + 0x14]
lea ecx, [esp + 0x30]
call fcn.00550570
fmul qword [esp + 0x14]
fdivr qword [esp + 0x24]
fst qword [esp + 0x14]
call fcn.005e0af0
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fcomp dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x58b33f
fld dword [esp + 0x24]
fmul dword [0x6362a0]
fstp dword [esp + 0x24]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fsqrt
fstp qword [esp + 0x14]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x14]
call fcn.005e0af0
fsub dword [0x65fb08]
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], 0x3f800000
mov dword [esp + 0x90], 0
fadd dword [esp + 0x24]
fstp dword [esp + 0x24]
fld dword [esp + 0x64]
fstp qword [esp + 0x5c]
call fcn.00550570
fstp qword [esp + 0x14]
lea ecx, [esp + 0x64]
call fcn.00550570
fmul qword [esp + 0x14]
fdivr qword [esp + 0x5c]
fst qword [esp + 0x5c]
call fcn.005e0af0
fstp dword [esp + 0x14]
fld dword [esp + 0x68]
fcomp dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x58b3dd
fld dword [esp + 0x14]
fmul dword [0x6362a0]
fstp dword [esp + 0x14]
fld dword [esp + 0x64]
fmul dword [esp + 0x64]
fld dword [esp + 0x68]
fmul dword [esp + 0x68]
faddp st(1)
fsqrt
fstp qword [esp + 0x5c]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x5c]
call fcn.005e0af0
fsubr dword [esp + 0x14]
fst dword [esp + 0x14]
fcomp dword [esp + 0x24]
fnstsw ax
test ah, 1
je 0x58b423
fld dword [esp + 0x14]
fadd dword [0x65d4e0]
fstp dword [esp + 0x14]
fld dword [esp + 0x1c]
fsub dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
fstp dword [esp + 0x4c]
fld dword [esp + 0x2c]
fsub dword [esp + 0x1c]
mov edx, dword [esp + 0x4c]
sub esp, 0x10
mov ecx, esp
fstp dword [esp + 0x64]
fld dword [esp + 0x2c]
fadd dword [esp + 0x38]
mov dword [ecx], edx
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x60]
fld dword [esp + 0x2c]
fadd dword [esp + 0x3c]
mov eax, dword [esp + 0x60]
mov dword [ecx + 4], eax
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
lea edx, [esp + 0xec]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.0058aab0
mov ecx, dword [eax]
add esp, 0x24
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x38]
test eax, eax
mov dword [esp + 0x4c], edx
je 0x58b4c2
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x58]
push eax
call fcn.00489910
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x70]
call fcn.0049ba50
fld dword [esp + 0x1c]
fsub dword [esp + 0x50]
fld dword [esp + 0x20]
fsub dword [esp + 0x54]
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], 0x3f800000
mov dword [esp + 0x98], 0
fstp dword [esp + 0xc4]
fld dword [esp + 0xc4]
fld st(1)
fstp dword [esp + 0x30]
fst dword [esp + 0x34]
fld st(1)
fstp qword [esp + 0x14]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fstp qword [esp + 0x5c]
fstp st(0)
fstp st(0)
call fcn.00550570
fmul qword [esp + 0x5c]
fdivr qword [esp + 0x14]
call fcn.005e0af0
fstp dword [esp + 0x24]
fld dword [esp + 0x34]
fcomp dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x58b571
fld dword [esp + 0x24]
fmul dword [0x6362a0]
fstp dword [esp + 0x24]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fsqrt
fstp qword [esp + 0x5c]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x5c]
call fcn.005e0af0
fld dword [esp + 0x24]
fadd st(1)
push 0
fstp dword [esp + 0x28]
mov eax, dword [esp + 0x28]
fstp st(0)
fld dword [esp + 0x28]
fsub dword [0x65fb08]
fstp dword [esp + 0x18]
fld dword [esp + 0x54]
fsub dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edx
push eax
sub esp, 0x10
fstp dword [esp + 0x5c]
fld dword [esp + 0x70]
fsub dword [esp + 0x2c]
mov edx, dword [esp + 0x5c]
mov ecx, esp
mov dword [ecx], edx
fstp dword [esp + 0x64]
fld dword [esp + 0x6c]
fadd dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
fstp dword [esp + 0x60]
fld dword [esp + 0x70]
fadd dword [esp + 0x2c]
mov eax, dword [esp + 0x60]
mov dword [ecx + 4], eax
fstp dword [esp + 0x68]
mov eax, dword [esp + 0x68]
mov dword [ecx + 8], edx
lea edx, [esp + 0xfc]
mov dword [ecx + 0xc], eax
lea ecx, [esp + 0x74]
push ecx
push edx
call fcn.0058aab0
mov ecx, dword [ebp + 0xc]
add esp, 0x24
lea eax, [esp + 0x58]
push eax
call fcn.00489910
add ebx, 8
inc edi
lea ecx, [edi - 1]
cmp ecx, esi
jb 0x58b237
xor ebx, ebx
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, esi
mov byte [esp + 0xf8], 0
mov dword [edx], eax
mov eax, dword [esp + 0x74]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x78]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x58]
call fcn.004892e0
mov eax, dword [esp + 0xa0]
mov dword [esp + 0xf8], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x9c], 0x65df38
je 0x58b69a
push eax
call fcn.005e6f52
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x6c]
mov edx, eax
pop edi
pop esi
pop ebx
mov dword [edx], ecx
mov ecx, dword [esp + 0x64]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xe4]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret