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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x62c7c3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xfc
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 + 0x80], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
fnstsw ax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
test ah, 1
je 0x58bf8e
fld dword [ebp + 0x18]
fcomp dword [ebp + 0x1c]
fnstsw ax
test ah, 1
je 0x58bf8e
mov esi, dword [ebp + 0x20]
cmp esi, 2
jb 0x58bf8e
xor ebx, ebx
push 0x14
lea ecx, [esp + 0x9c]
mov dword [esp + 0x9c], 0x65df38
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xa8], 0x14
mov dword [esp + 0xa4], ebx
mov dword [esp + 0xac], ebx
call fcn.0056c540
fld dword [ebp + 0x14]
fsub dword [ebp + 0x10]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x90], esi
fld dword [esp + 0x70]
fld st(1)
mov dword [esp + 0x94], ebx
mov dword [esp + 0x110], ebx
fstp dword [esp + 0x30]
shr esi, 1
fst dword [esp + 0x34]
fld dword [0x635d9c]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0x18]
mov dword [esp + 0x1c], ebx
fstp dword [esp + 0x70]
fst dword [esp + 0x38]
fld dword [esp + 0x70]
fstp dword [esp + 0x3c]
mov eax, dword [esp + 0x3c]
fstp dword [esp + 0x64]
fld st(1)
fmulp st(2)
mov dword [esp + 0x68], eax
fld st(0)
fmul st(1)
faddp st(2)
fxch st(1)
fsqrt
fxch st(1)
fstp st(0)
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
fld dword [esp + 0x3c]
fmul dword [esp + 0x3c]
faddp st(1)
fsqrt
faddp st(1)
fld dword [ebp + 0x14]
fadd dword [ebp + 0x10]
fmul dword [0x635da8]
fstp dword [esp + 0x5c]
fld dword [ebp + 0x1c]
fadd dword [ebp + 0x18]
fmul dword [0x635da8]
fstp dword [esp + 0x28]
fadd st(0), st(0)
fidiv dword [esp + 0x90]
fstp dword [esp + 0x10]
je 0x58b946
fld dword [ebp + 0x24]
fld st(0)
fcos
mov edi, esi
fstp dword [esp + 0x40]
fsin
fstp dword [esp + 0x44]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fsqrt
fld st(0)
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x58b8d1
fstp st(0)
fld dword [esp + 0x1c]
fadd dword [ebp + 0x10]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x14]
fld dword [ebp + 0x18]
jmp 0x58b8e3
fld dword [ebp + 0x14]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x14]
fsubr dword [esp + 0x1c]
fadd dword [ebp + 0x18]
fsub dword [esp + 0x28]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
sub esp, 8
lea ecx, [esp + 0xa0]
mov eax, esp
fadd dword [esp + 0x64]
fld dword [esp + 0x4c]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x4c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x48]
fmul st(2)
mov dword [esp + 0x1c], esp
faddp st(1)
fadd dword [esp + 0x30]
fstp st(1)
fld dword [esp + 0x40]
fstp dword [eax]
fstp dword [eax + 4]
call fcn.0055bef0
fld dword [esp + 0x1c]
fadd dword [esp + 0x10]
dec edi
fstp dword [esp + 0x1c]
jne 0x58b896
cmp esi, ebx
mov dword [esp + 0x1c], 0
jbe 0x58ba17
fld dword [ebp + 0x24]
fld st(0)
fcos
fstp dword [esp + 0x40]
fsin
fstp dword [esp + 0x44]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
faddp st(1)
fsqrt
fld st(0)
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x58b9a2
fstp st(0)
fld dword [ebp + 0x14]
fsub dword [esp + 0x1c]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x14]
fld dword [ebp + 0x1c]
jmp 0x58b9b4
fld dword [ebp + 0x10]
fsub dword [esp + 0x5c]
fstp dword [esp + 0x14]
fsubr dword [esp + 0x1c]
fsubr dword [ebp + 0x1c]
fsub dword [esp + 0x28]
fld dword [esp + 0x40]
fmul dword [esp + 0x14]
sub esp, 8
lea ecx, [esp + 0xa0]
mov eax, esp
fadd dword [esp + 0x64]
fld dword [esp + 0x4c]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x4c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x48]
fmul st(2)
mov dword [esp + 0x1c], esp
faddp st(1)
fadd dword [esp + 0x30]
fstp st(1)
fld dword [esp + 0x40]
fstp dword [eax]
fstp dword [eax + 4]
call fcn.0055bef0
fld dword [esp + 0x1c]
fadd dword [esp + 0x10]
dec esi
fstp dword [esp + 0x1c]
jne 0x58b967
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x10], 0
mov ecx, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp + 0x28], ecx
mov ecx, 1
cmp esi, ecx
mov dword [esp + 0x2c], edx
jb 0x58bab3
mov eax, ecx
xor edx, edx
div esi
fld dword [edi + edx*8]
fld st(0)
fsub dword [esp + 0x28]
lea eax, [edi + edx*8]
mov eax, dword [edi + edx*8 + 4]
mov dword [esp + 0x60], eax
fld dword [esp + 0x60]
fsub dword [esp + 0x2c]
fstp dword [esp + 0x70]
fld dword [esp + 0x70]
fld st(1)
fstp dword [esp + 0x30]
fst dword [esp + 0x34]
fld st(1)
fmulp st(2)
fld st(0)
fmul st(1)
faddp st(2)
fxch st(1)
fsqrt
fxch st(1)
fstp st(0)
fld st(0)
fld dword [esp + 0x10]
fcomp st(1)
fnstsw ax
test ah, 1
fstp st(0)
je 0x58baa0
fstp dword [esp + 0x10]
jmp 0x58baa2
fstp st(0)
mov edx, dword [esp + 0x60]
inc ecx
fstp dword [esp + 0x28]
cmp ecx, esi
mov dword [esp + 0x2c], edx
jbe 0x58ba43
fld dword [esp + 0x10]
fmul dword [0x65eba8]
lea ecx, [esp + 0x58]
fstp dword [esp + 0x10]
call fcn.004892c0
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 0x1c]
mov edi, 1
cmp esi, ebx
mov byte [esp + 0x110], 1
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x40], edi
jbe 0x58bf19
fld qword [0x6331a8]
fsqrt
fstp qword [esp + 0xcc]
fld dword [esp + 0x10]
fadd st(0), st(0)
fstp dword [esp + 0x44]
lea eax, [esi + edi - 2]
xor edx, edx
div esi
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0xac], 0x3f800000
mov dword [esp + 0xb0], 0
fld dword [ebx + ecx]
fstp dword [esp + 0x28]
fld dword [ebx + ecx + 4]
fstp dword [esp + 0x2c]
fld dword [ecx + edx*8]
fsub dword [esp + 0x28]
lea eax, [ecx + edx*8]
mov edx, dword [ecx + edx*8 + 4]
mov eax, edi
mov dword [esp + 0x60], edx
xor edx, edx
div esi
fld dword [esp + 0x60]
fsub dword [esp + 0x2c]
fstp dword [esp + 0xc0]
fld dword [esp + 0xc0]
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 + 0x38], ecx
mov dword [esp + 0x3c], edx
fstp dword [esp + 0x34]
fld dword [esp + 0x38]
fsub dword [esp + 0x28]
fld dword [esp + 0x3c]
fsub dword [esp + 0x2c]
lea ecx, [esp + 0xac]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fstp dword [esp + 0xdc]
mov eax, dword [esp + 0xdc]
fstp dword [esp + 0x64]
fstp qword [esp + 0x1c]
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 + 0x1c]
fst qword [esp + 0x14]
call fcn.005e0af0
fstp dword [esp + 0x1c]
fld dword [esp + 0x34]
fcomp dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x58bc1d
fld dword [esp + 0x1c]
fmul dword [0x6362a0]
fstp dword [esp + 0x1c]
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 + 0x44]
fdivr qword [esp + 0x14]
call fcn.005e0af0
fsub dword [0x65fb08]
lea ecx, [esp + 0xb4]
mov dword [esp + 0xb4], 0x3f800000
mov dword [esp + 0xb8], 0
fadd dword [esp + 0x1c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x64]
fstp qword [esp + 0x84]
call fcn.00550570
fstp qword [esp + 0x14]
lea ecx, [esp + 0x64]
call fcn.00550570
fmul qword [esp + 0x14]
fdivr qword [esp + 0x84]
fst qword [esp + 0x84]
call fcn.005e0af0
fstp dword [esp + 0x14]
fld dword [esp + 0x68]
fcomp dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x58bcc4
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 + 0x84]
fld dword [esp + 0x44]
fdivr qword [esp + 0x84]
call fcn.005e0af0
fsubr dword [esp + 0x14]
fst dword [esp + 0x14]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x58bd10
fld dword [esp + 0x14]
fadd dword [0x65d4e0]
fstp dword [esp + 0x14]
fld dword [esp + 0x28]
fsub dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
fstp dword [esp + 0x54]
fld dword [esp + 0x38]
fsub dword [esp + 0x1c]
mov edx, dword [esp + 0x54]
sub esp, 0x10
mov ecx, esp
fstp dword [esp + 0x6c]
fld dword [esp + 0x2c]
fadd dword [esp + 0x44]
mov dword [ecx], edx
mov edx, dword [esp + 0x6c]
fstp dword [esp + 0x68]
fld dword [esp + 0x2c]
fadd dword [esp + 0x48]
mov eax, dword [esp + 0x68]
mov dword [ecx + 4], eax
fstp dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov dword [ecx + 8], edx
lea edx, [esp + 0x104]
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 + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x50], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
test eax, eax
mov dword [esp + 0x54], edx
je 0x58bdaf
mov dword [esp + 0x40], 0
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x58]
push eax
call fcn.00489910
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x78]
call fcn.0049ba50
fld dword [esp + 0x28]
fsub dword [esp + 0x38]
fld dword [esp + 0x2c]
fsub dword [esp + 0x3c]
fstp dword [esp + 0xe4]
fld dword [esp + 0xe4]
fstp dword [esp + 0x94]
mov edx, dword [esp + 0x94]
fst dword [esp + 0x30]
fst qword [esp + 0x1c]
fld dword [esp + 0x94]
fmul dword [esp + 0x94]
fld st(1)
fmul st(2)
mov dword [esp + 0x34], edx
faddp st(1)
fsqrt
fst qword [esp + 0x14]
fstp st(1)
fst qword [esp + 0x84]
fmul qword [esp + 0xcc]
fdivr qword [esp + 0x1c]
call fcn.005e0af0
fstp dword [esp + 0x1c]
fld dword [esp + 0x94]
fcomp dword [0x635d9c]
fnstsw ax
test ah, 1
je 0x58be5b
fld dword [esp + 0x1c]
fmul dword [0x6362a0]
fstp dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
fld dword [esp + 0x44]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ecx
fdivr qword [esp + 0x6c]
call fcn.005e0af0
fadd dword [esp + 0x1c]
push 0
fst dword [esp + 0x20]
fsub dword [0x65fb08]
mov eax, dword [esp + 0x20]
fstp dword [esp + 0x18]
fld dword [esp + 0x3c]
fsub dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push edx
push eax
sub esp, 0x10
fstp dword [esp + 0x64]
fld dword [esp + 0x58]
fsub dword [esp + 0x2c]
mov edx, dword [esp + 0x64]
mov ecx, esp
mov dword [ecx], edx
fstp dword [esp + 0x6c]
fld dword [esp + 0x2c]
fadd dword [esp + 0x54]
mov edx, dword [esp + 0x6c]
fstp dword [esp + 0x68]
fld dword [esp + 0x2c]
fadd dword [esp + 0x58]
mov eax, dword [esp + 0x68]
mov dword [ecx + 4], eax
fstp dword [esp + 0x70]
mov eax, dword [esp + 0x70]
mov dword [ecx + 8], edx
lea edx, [esp + 0x114]
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 0x58bb1b
xor ebx, ebx
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov edx, esi
mov byte [esp + 0x110], 0
mov dword [edx], eax
mov eax, dword [esp + 0x7c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x80]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
lea ecx, [esp + 0x58]
call fcn.004892e0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x110], 0xffffffff
cmp eax, ebx
mov dword [esp + 0x98], 0x65df38
je 0x58bf77
push eax
call fcn.005e6f52
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x108]
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 + 0x74]
mov edx, eax
pop edi
pop esi
pop ebx
mov dword [edx], ecx
mov ecx, dword [esp + 0x6c]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x74]
mov dword [edx + 0xc], ecx
mov ecx, dword [esp + 0xfc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret