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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x66b176
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 0x7427d8
call fcn.00499c60
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 + 0x54], 0
mov dword [esp + 0x50], 0
fnstsw ax
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
test ah, 1
je 0x5c1886
fld dword [ebp + 0x18]
fcomp dword [ebp + 0x1c]
fnstsw ax
test ah, 1
je 0x5c1886
mov esi, dword [ebp + 0x20]
cmp esi, 2
jb 0x5c1886
xor edi, edi
push 0x14
lea ecx, [esp + 0x94]
mov dword [esp + 0x94], 0x6b1d94
mov dword [esp + 0x98], edi
mov dword [esp + 0xa0], 0x14
mov dword [esp + 0x9c], edi
mov dword [esp + 0xa4], edi
call fcn.0058b280
fld dword [ebp + 0x14]
fsub dword [ebp + 0x10]
mov dword [esp + 0x68], edi
mov dword [esp + 0x7c], esi
fld dword [esp + 0x68]
fld st(1)
mov dword [esp + 0x80], edi
mov dword [esp + 0x110], edi
fstp dword [esp + 0x2c]
shr esi, 1
fst dword [esp + 0x30]
fld dword [0x675254]
fld dword [ebp + 0x1c]
fsub dword [ebp + 0x18]
mov dword [esp + 0x1c], edi
fstp dword [esp + 0x68]
fst dword [esp + 0x34]
fld dword [esp + 0x68]
fstp dword [esp + 0x38]
mov eax, dword [esp + 0x38]
fstp dword [esp + 0x5c]
fld st(1)
fmulp st(2)
mov dword [esp + 0x60], eax
fld st(0)
fmul st(1)
faddp st(2)
fxch st(1)
fsqrt
fxch st(1)
fstp st(0)
fld dword [esp + 0x34]
fmul dword [esp + 0x34]
fld dword [esp + 0x38]
fmul dword [esp + 0x38]
faddp st(1)
fsqrt
faddp st(1)
fld dword [ebp + 0x14]
fadd dword [ebp + 0x10]
fmul dword [0x675260]
fstp dword [esp + 0x24]
fld dword [ebp + 0x1c]
fadd dword [ebp + 0x18]
fmul dword [0x675260]
fstp dword [esp + 0x40]
fadd st(0), st(0)
fidiv dword [esp + 0x7c]
fstp dword [esp + 0x10]
je 0x5c122d
fld dword [ebp + 0x24]
fld st(0)
fcos
mov ebx, esi
fstp dword [esp + 0x3c]
fsin
fstp dword [esp + 0x44]
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fsqrt
fld st(0)
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x5c11b8
fstp st(0)
fld dword [esp + 0x1c]
fadd dword [ebp + 0x10]
fsub dword [esp + 0x24]
fstp dword [esp + 0x14]
fld dword [ebp + 0x18]
jmp 0x5c11ca
fld dword [ebp + 0x14]
fsub dword [esp + 0x24]
fstp dword [esp + 0x14]
fsubr dword [esp + 0x1c]
fadd dword [ebp + 0x18]
fsub dword [esp + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
sub esp, 8
lea ecx, [esp + 0x98]
mov eax, esp
fadd dword [esp + 0x2c]
fld dword [esp + 0x4c]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x44]
fmul st(2)
mov dword [esp + 0x1c], esp
faddp st(1)
fadd dword [esp + 0x48]
fstp st(1)
fld dword [esp + 0x3c]
fstp dword [eax]
fstp dword [eax + 4]
call fcn.00562e90
fld dword [esp + 0x1c]
fadd dword [esp + 0x10]
dec ebx
fstp dword [esp + 0x1c]
jne 0x5c117d
cmp esi, edi
mov dword [esp + 0x1c], 0
jbe 0x5c12fe
fld dword [ebp + 0x24]
fld st(0)
fcos
fstp dword [esp + 0x3c]
fsin
fstp dword [esp + 0x44]
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fsqrt
fld st(0)
fld dword [esp + 0x1c]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
je 0x5c1289
fstp st(0)
fld dword [ebp + 0x14]
fsub dword [esp + 0x1c]
fsub dword [esp + 0x24]
fstp dword [esp + 0x14]
fld dword [ebp + 0x1c]
jmp 0x5c129b
fld dword [ebp + 0x10]
fsub dword [esp + 0x24]
fstp dword [esp + 0x14]
fsubr dword [esp + 0x1c]
fsubr dword [ebp + 0x1c]
fsub dword [esp + 0x40]
fld dword [esp + 0x3c]
fmul dword [esp + 0x14]
sub esp, 8
lea ecx, [esp + 0x98]
mov eax, esp
fadd dword [esp + 0x2c]
fld dword [esp + 0x4c]
fmul st(2)
fsubp st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x4c]
fmul dword [esp + 0x1c]
fld dword [esp + 0x44]
fmul st(2)
mov dword [esp + 0x1c], esp
faddp st(1)
fadd dword [esp + 0x48]
fstp st(1)
fld dword [esp + 0x3c]
fstp dword [eax]
fstp dword [eax + 4]
call fcn.00562e90
fld dword [esp + 0x1c]
fadd dword [esp + 0x10]
dec esi
fstp dword [esp + 0x1c]
jne 0x5c124e
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x10], 0
mov ebx, edi
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x24], ecx
mov ecx, 1
cmp edi, ecx
mov dword [esp + 0x28], edx
jb 0x5c13a5
mov eax, ecx
xor edx, edx
div edi
fld dword [esi + edx*8]
fld st(0)
fsub dword [esp + 0x24]
lea eax, [esi + edx*8]
mov eax, dword [esi + edx*8 + 4]
mov dword [esp + 0xa8], eax
fld dword [esp + 0xa8]
fsub dword [esp + 0x28]
fstp dword [esp + 0x68]
fld dword [esp + 0x68]
fld st(1)
fstp dword [esp + 0x2c]
fst dword [esp + 0x30]
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 0x5c138f
fstp dword [esp + 0x10]
jmp 0x5c1391
fstp st(0)
mov edx, dword [esp + 0xa8]
inc ecx
fstp dword [esp + 0x24]
cmp ecx, edi
mov dword [esp + 0x28], edx
jbe 0x5c132c
fld dword [esp + 0x10]
fmul dword [0x6b2fa8]
xor ecx, ecx
mov dword [esp + 0x58], ecx
fstp dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x70], edx
mov edx, dword [ebp + 0x1c]
cmp edi, ecx
mov byte [esp + 0x110], 1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x40], 1
jbe 0x5c1814
fld qword [0x672208]
fsqrt
mov dword [esp + 0x44], edi
fstp qword [esp + 0xcc]
fld dword [esp + 0x10]
fadd st(0), st(0)
fstp dword [esp + 0x3c]
jmp 0x5c1413
mov esi, dword [esp + 0x94]
mov eax, dword [esp + 0x44]
xor edx, edx
dec eax
lea edi, [ecx + 1]
div ebx
fld dword [esi + ecx*8]
fstp dword [esp + 0x24]
fld dword [esi + ecx*8 + 4]
fstp dword [esp + 0x28]
fld dword [esi + edx*8]
fsub dword [esp + 0x24]
mov dword [esp + 0xac], 0x3f800000
mov dword [esp + 0xb0], 0
lea eax, [esi + edx*8]
mov edx, dword [esi + edx*8 + 4]
mov eax, edi
mov dword [esp + 0xa8], edx
xor edx, edx
div ebx
fld dword [esp + 0xa8]
fsub dword [esp + 0x28]
fstp dword [esp + 0xc0]
fld dword [esp + 0xc0]
fld st(1)
mov ecx, dword [esi + edx*8]
mov dword [esp + 0x34], ecx
lea ecx, [esp + 0xac]
lea eax, [esi + edx*8]
mov edx, dword [esi + edx*8 + 4]
fstp dword [esp + 0x2c]
mov dword [esp + 0x38], edx
fstp dword [esp + 0x30]
fld dword [esp + 0x34]
fsub dword [esp + 0x24]
fld dword [esp + 0x38]
fsub dword [esp + 0x28]
fstp dword [esp + 0xc8]
fld dword [esp + 0xc8]
fstp dword [esp + 0xdc]
mov eax, dword [esp + 0xdc]
fstp dword [esp + 0x5c]
fstp qword [esp + 0x1c]
mov dword [esp + 0x60], eax
call fcn.005747f0
fstp qword [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.005747f0
fmul qword [esp + 0x14]
fdivr qword [esp + 0x1c]
fst qword [esp + 0x14]
call fcn.0061e1e0
fstp dword [esp + 0x1c]
fld dword [esp + 0x30]
fcomp dword [0x675254]
fnstsw ax
test ah, 1
je 0x5c1519
fld dword [esp + 0x1c]
fmul dword [0x67576c]
fstp dword [esp + 0x1c]
fld dword [esp + 0x2c]
fmul dword [esp + 0x2c]
fld dword [esp + 0x30]
fmul dword [esp + 0x30]
faddp st(1)
fsqrt
fstp qword [esp + 0x14]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x14]
call fcn.0061e1e0
fsub dword [0x6b3f00]
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 + 0x5c]
fstp qword [esp + 0x84]
call fcn.005747f0
fstp qword [esp + 0x14]
lea ecx, [esp + 0x5c]
call fcn.005747f0
fmul qword [esp + 0x14]
fdivr qword [esp + 0x84]
fst qword [esp + 0x84]
call fcn.0061e1e0
fstp dword [esp + 0x14]
fld dword [esp + 0x60]
fcomp dword [0x675254]
fnstsw ax
test ah, 1
je 0x5c15c0
fld dword [esp + 0x14]
fmul dword [0x67576c]
fstp dword [esp + 0x14]
fld dword [esp + 0x5c]
fmul dword [esp + 0x5c]
fld dword [esp + 0x60]
fmul dword [esp + 0x60]
faddp st(1)
fsqrt
fstp qword [esp + 0x84]
fld dword [esp + 0x3c]
fdivr qword [esp + 0x84]
call fcn.0061e1e0
fsubr dword [esp + 0x14]
fst dword [esp + 0x14]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x5c160c
fld dword [esp + 0x14]
fadd dword [0x6b1600]
fstp dword [esp + 0x14]
fld dword [esp + 0x24]
fsub dword [esp + 0x10]
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
push ecx
push edx
fstp dword [esp + 0x54]
fld dword [esp + 0x34]
fsub dword [esp + 0x1c]
mov ecx, dword [esp + 0x54]
sub esp, 0x10
mov eax, esp
fstp dword [esp + 0x6c]
fld dword [esp + 0x2c]
fadd dword [esp + 0x40]
mov dword [eax], ecx
mov ecx, dword [esp + 0x6c]
fstp dword [esp + 0x68]
fld dword [esp + 0x2c]
fadd dword [esp + 0x44]
mov edx, dword [esp + 0x68]
mov dword [eax + 4], edx
fstp dword [esp + 0x70]
mov edx, dword [esp + 0x70]
mov dword [eax + 8], ecx
lea ecx, [esp + 0x104]
mov dword [eax + 0xc], edx
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.005c03a0
mov edx, dword [eax]
add esp, 0x24
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x50], edx
mov eax, dword [eax + 0xc]
test esi, esi
mov dword [esp + 0x54], eax
je 0x5c16a7
mov dword [esp + 0x40], 0
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.00499d70
lea edx, [esp + 0x48]
lea ecx, [esp + 0x6c]
push edx
call fcn.004ac370
fld dword [esp + 0x24]
fsub dword [esp + 0x34]
fld dword [esp + 0x28]
fsub dword [esp + 0x38]
fstp dword [esp + 0xe4]
fld dword [esp + 0xe4]
fstp dword [esp + 0x80]
mov eax, dword [esp + 0x80]
fst dword [esp + 0x2c]
fst qword [esp + 0x1c]
fld dword [esp + 0x80]
fmul dword [esp + 0x80]
fld st(1)
fmul st(2)
mov dword [esp + 0x30], eax
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.0061e1e0
fstp dword [esp + 0x1c]
fld dword [esp + 0x80]
fcomp dword [0x675254]
fnstsw ax
test ah, 1
je 0x5c1755
fld dword [esp + 0x1c]
fmul dword [0x67576c]
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
fld dword [esp + 0x3c]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
fdivr qword [esp + 0x64]
call fcn.0061e1e0
fadd dword [esp + 0x1c]
push 0
fst dword [esp + 0x20]
fsub dword [0x6b3f00]
mov ecx, dword [esp + 0x20]
fstp dword [esp + 0x18]
fld dword [esp + 0x38]
fsub dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push eax
push ecx
sub esp, 0x10
fstp dword [esp + 0x64]
fld dword [esp + 0x54]
fsub dword [esp + 0x2c]
mov eax, dword [esp + 0x64]
mov edx, esp
mov dword [edx], eax
fstp dword [esp + 0x6c]
fld dword [esp + 0x2c]
fadd dword [esp + 0x50]
mov eax, dword [esp + 0x6c]
fstp dword [esp + 0x68]
fld dword [esp + 0x2c]
fadd dword [esp + 0x54]
mov ecx, dword [esp + 0x68]
mov dword [edx + 4], ecx
fstp dword [esp + 0x70]
mov ecx, dword [esp + 0x70]
mov dword [edx + 8], eax
lea eax, [esp + 0x114]
mov dword [edx + 0xc], ecx
lea edx, [esp + 0x74]
push edx
push eax
call fcn.005c03a0
add esp, 0x24
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.00499d70
mov edx, dword [esp + 0x44]
mov ecx, edi
inc edx
cmp ecx, ebx
mov dword [esp + 0x44], edx
jb 0x5c140c
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, esi
mov byte [esp + 0x110], 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.00499a60
mov eax, dword [esp + 0x94]
mov dword [esp + 0x110], 0xffffffff
test eax, eax
mov dword [esp + 0x90], 0x6b1d94
je 0x5c186f
push eax
call fcn.006247dc
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 + 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 + 0xfc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret