Function at 0x4cf460
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59fef9
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0x5de040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x5c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea eax, [esi + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lea eax, [esi + 0x18]
mov dword [eax], 0
mov dword [ebp - 0x44], eax
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [esi + 0x24], 5
lea eax, [esi + 0x28]
mov dword [ebp - 0x30], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea edi, [esi + 0x34]
mov dword [edi], 0
mov dword [ebp - 0x2c], edi
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
sar ecx, 2
mov dword [ebp - 0x28], eax
cmp ecx, 0x15
jbe 0x4cf554
lea eax, [edx + 0x54]
mov dword [esi + 4], eax
jmp 0x4cf596
jae 0x4cf596
mov eax, dword [esi + 8]
sub eax, edx
sar eax, 2
cmp eax, 0x15
jae 0x4cf56f
push ecx
push 0x15
mov ecx, esi
call fcn.0040f590
jmp 0x4cf596
mov eax, 0x15
sub eax, ecx
lea esi, [eax*4]
push esi
push 0
push dword [ebp - 0x28]
call fcn.00580daf
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [ebp - 0x28]
add eax, esi
mov dword [ecx + 4], eax
movsd xmm0, qword [0x5c72d0]
xor esi, esi
call fcn.00580ebd
mov eax, dword [ebp - 0x24]
movsd qword [ebp - 0x58], xmm0
mov edi, dword [eax]
nop
inc esi
mov eax, esi
shr eax, 0x1f
movd xmm0, esi
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [eax*8 + 0x5c76b0]
call fcn.00580ebd
divsd xmm0, qword [ebp - 0x58]
cvtsd2ss xmm0, xmm0
movss dword [edi], xmm0
add edi, 4
cmp esi, 0x14
jbe 0x4cf5b0
movd xmm3, dword [0x5de120]
xor ecx, ecx
mov eax, dword [ebp - 0x24]
movd xmm2, dword [0x5de124]
cvtdq2ps xmm3, xmm3
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x28], ecx
movd xmm0, dword [eax + 0x24]
mulss xmm3, dword [0x5de11c]
cvtdq2ps xmm0, xmm0
movaps xmm4, xmm3
movss xmm5, dword [0x5c745c]
divss xmm4, xmm0
cvtdq2ps xmm2, xmm2
movss dword [ebp - 0x48], xmm3
mulss xmm2, dword [0x5de11c]
movss dword [ebp - 0x50], xmm4
movaps xmm1, xmm2
movss dword [ebp - 0x34], xmm2
shufps xmm1, xmm1, 0
movaps xmmword [ebp - 0x70], xmm1
movaps xmm1, xmm0
addss xmm1, dword [0x5c7128]
xorps xmm0, xmm0
movss dword [ebp - 0x4c], xmm1
mov esi, dword [ebp - 0x30]
xor edx, edx
comiss xmm1, xmm0
mov dword [ebp - 0x2c], edx
jbe 0x4cf743
xorps xmm1, xmm1
nop word [eax + eax]
mov eax, dword [eax]
mulss xmm1, xmm4
mov dword [ebp - 0x18], 0
mulss xmm2, dword [eax + ecx*4]
mov ecx, dword [esi + 4]
movss dword [ebp - 0x3c], xmm1
movss dword [ebp - 0x1c], xmm1
movss dword [ebp - 0x40], xmm2
movss dword [ebp - 0x20], xmm2
cmp ecx, dword [esi + 8]
je 0x4cf6b3
movq xmm0, qword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
add dword [esi + 4], 0xc
jmp 0x4cf6d1
lea eax, [ebp - 0x20]
push eax
push ecx
mov ecx, esi
call fcn.004236f0
movss xmm1, dword [ebp - 0x3c]
movss xmm2, dword [ebp - 0x40]
movss xmm3, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
divss xmm2, dword [ebp - 0x34]
mov eax, dword [edi + 4]
divss xmm1, xmm3
movss dword [ebp - 0x58], xmm2
movss dword [ebp - 0x54], xmm1
cmp eax, dword [edi + 8]
je 0x4cf6fb
movss dword [eax], xmm2
movss dword [eax + 4], xmm1
add dword [edi + 4], 8
jmp 0x4cf70f
lea ecx, [ebp - 0x58]
push ecx
push eax
mov ecx, edi
call fcn.00412030
movss xmm3, dword [ebp - 0x48]
mov edx, dword [ebp - 0x2c]
movss xmm0, dword [ebp - 0x4c]
inc edx
movss xmm2, dword [ebp - 0x34]
movss xmm4, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
movd xmm1, edx
cvtdq2ps xmm1, xmm1
mov dword [ebp - 0x2c], edx
comiss xmm0, xmm1
ja 0x4cf670
movss xmm5, dword [0x5c745c]
movaps xmm1, xmm0
inc ecx
mov dword [ebp - 0x28], ecx
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
comiss xmm5, xmm0
xorps xmm0, xmm0
ja 0x4cf656
mov ecx, dword [ebp - 0x44]
push esi
call fcn.004cfd60
mov esi, dword [ebp - 0x38]
mov ecx, esi
push 0x14
call fcn.00486c40
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov esi, dword [esi]
mov dword [ebp - 0x30], ecx
mov edx, dword [eax]
mov dword [ebp - 0x3c], edx
lea edi, [esi + 0x4c]
lea eax, [edx + 0x50]
cmp esi, eax
ja 0x4cf78c
cmp edi, edx
jae 0x4cf7ea
movaps xmm2, xmmword [ebp - 0x70]
mov ecx, 0x10
movups xmm1, xmmword [edx + 4]
mov dword [ebp - 0x30], ecx
movups xmm0, xmmword [edx]
mulps xmm1, xmm2
mulps xmm0, xmm2
subps xmm1, xmm0
movups xmmword [esi], xmm1
movups xmm1, xmmword [edx + 0x14]
movups xmm0, xmmword [edx + 0x10]
mulps xmm1, xmm2
mulps xmm0, xmm2
subps xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movups xmm1, xmmword [edx + 0x24]
movups xmm0, xmmword [edx + 0x20]
mulps xmm1, xmm2
mulps xmm0, xmm2
subps xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movups xmm1, xmmword [edx + 0x34]
movups xmm0, xmmword [edx + 0x30]
mulps xmm1, xmm2
mulps xmm0, xmm2
subps xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
movss xmm2, dword [ebp - 0x34]
lea edi, [ecx*4 + 8]
mov eax, 4
lea ecx, [edi + edx]
sub eax, edx
mov dword [ebp - 0x38], eax
mov eax, 0xfffffff8
sub eax, edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, 0x10
sub eax, edx
shr eax, 2
add edx, 4
lea eax, [edx + eax*4]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
nop word [eax + eax]
mov eax, dword [ebp - 0x44]
movaps xmm1, xmm2
mulss xmm1, dword [ecx - 4]
movaps xmm0, xmm2
add eax, esi
mulss xmm0, dword [ecx - 8]
subss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax + ecx], xmm1
movaps xmm1, xmm2
mulss xmm1, dword [ecx]
mulss xmm0, dword [ecx - 4]
subss xmm1, xmm0
movaps xmm0, xmm2
movss dword [eax + ecx + 4], xmm1
movaps xmm1, xmm2
mulss xmm1, dword [ecx + 4]
lea eax, [esi + edx]
mulss xmm0, dword [ecx]
subss xmm1, xmm0
movaps xmm0, xmm2
movss dword [esi + edi], xmm1
movaps xmm1, xmm2
mulss xmm1, dword [ecx + 8]
add edi, 0x10
mulss xmm0, dword [ecx + 4]
subss xmm1, xmm0
movss dword [eax + ecx], xmm1
add ecx, 0x10
cmp edi, 0x4c
jl 0x4cf830
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
cmp eax, 0x14
jge 0x4cf8e2
lea ecx, [eax*4]
nop dword [eax + eax]
movaps xmm1, xmm2
movaps xmm0, xmm2
mulss xmm1, dword [edx + ecx + 4]
mulss xmm0, dword [edx + ecx]
subss xmm1, xmm0
movss dword [esi + ecx], xmm1
add ecx, 4
cmp ecx, 0x50
jl 0x4cf8c0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0052d235
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4