Function at 0x479a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, edx
mov dword [ebp - 0x30], eax
push ebx
push esi
mov edx, dword [eax]
mov esi, ecx
mov dword [ebp - 0xc], edx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx + 4]
lea edi, [edi*4 + 7]
sub eax, dword [edx]
and edi, 0xfffffff8
cdq
idiv ecx
mov edx, dword [esi + 0x48]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea eax, [edx + edi]
cmp eax, dword [esi + 0x4c]
jle 0x479aac
cmp dword [esi + 0x44], 0
je 0x479a98
push 8
call fcn.004849cb
mov ecx, dword [esi + 0x48]
add esp, 4
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov dword [esi + 0x54], eax
push edi
mov dword [esi + 0x4c], edi
call fcn.004849cb
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], eax
xor edx, edx
movsd xmm1, qword [0x4f3de8]
lea eax, [edx + edi]
movd xmm0, ecx
xor ebx, ebx
cvtdq2pd xmm0, xmm0
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x44]
add eax, edx
mov dword [ebp - 0x10], eax
divsd xmm1, xmm0
cvtpd2ps xmm5, xmm1
movss dword [ebp - 0x24], xmm5
test edi, edi
jle 0x479b69
mov eax, dword [ebp - 8]
lea edi, [eax*4 + 7]
and edi, 0xfffffff8
mov ecx, dword [esi + 0x48]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x4c]
jle 0x479b31
cmp dword [esi + 0x44], 0
je 0x479b20
push 8
call fcn.004849cb
mov ecx, dword [esi + 0x48]
add esp, 4
add dword [esi + 0x50], ecx
mov ecx, dword [esi + 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0x44]
mov dword [eax], ecx
mov dword [esi + 0x54], eax
push edi
mov dword [esi + 0x4c], edi
call fcn.004849cb
add esp, 4
mov dword [esi + 0x44], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
lea eax, [ecx + edi]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x44]
add eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword [ecx + ebx*4], eax
lea ecx, [edx*4]
push ecx
push 0
push eax
call fcn.0047ebc0
inc ebx
add esp, 0xc
cmp ebx, dword [ebp + 0xc]
jl 0x479af1
movss xmm5, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x20], edx
cmp dword [ebp - 8], edx
jle 0x479d07
mov esi, dword [ebp - 0xc]
xor ebx, ebx
mov dword [ebp - 0x24], ebx
nop
mov eax, dword [esi]
add eax, ebx
mov dword [ebp - 0x14], eax
test edi, edi
jle 0x479cf5
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
sub eax, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
xor esi, esi
xor ebx, ebx
xor edx, edx
test ecx, ecx
jle 0x479c8a
cmp ecx, 8
jb 0x479c65
cmp dword [0x4ff0b8], 2
jl 0x479c65
mov ebx, dword [ebp - 4]
mov eax, ebx
mov ecx, dword [edi]
and eax, 0x80000007
jns 0x479bda
dec eax
or eax, 0xfffffff8
inc eax
mov esi, ebx
xorps xmm1, xmm1
sub esi, eax
xorps xmm2, xmm2
mov eax, dword [ebp - 0x14]
xorps xmm3, xmm3
xorps xmm4, xmm4
lea eax, [ecx + eax*4]
movups xmm0, xmmword [eax]
add edx, 8
lea eax, [eax + 0x20]
pabsd xmm0, xmm0
paddd xmm4, xmm0
pmaxsd xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
pabsd xmm0, xmm0
paddd xmm3, xmm0
pmaxsd xmm2, xmm0
cmp edx, esi
jl 0x479bf0
paddd xmm3, xmm4
pmaxsd xmm1, xmm2
movaps xmm0, xmm1
psrldq xmm0, 8
pmaxsd xmm1, xmm0
movups xmm0, xmm1
psrldq xmm0, 4
pmaxsd xmm1, xmm0
movaps xmm0, xmm3
movd esi, xmm1
psrldq xmm0, 8
paddd xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
paddd xmm3, xmm0
movd ebx, xmm3
cmp edx, dword [ebp - 4]
jge 0x479c8a
mov ecx, dword [edi]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 4]
add eax, edx
sub edi, edx
lea ecx, [ecx + eax*4]
mov eax, dword [ecx]
lea ecx, [ecx + 4]
cdq
xor eax, edx
sub eax, edx
cmp eax, esi
cmovg esi, eax
add ebx, eax
sub edi, 1
jne 0x479c74
movd xmm0, ebx
xor ecx, ecx
mov ebx, dword [ebp - 0x28]
cvtdq2ps xmm0, xmm0
dec ebx
mulss xmm0, xmm5
cvttss2si edi, xmm0
test ebx, ebx
jle 0x479cca
mov eax, dword [ebp - 0xc]
add eax, 0xa18
nop dword [eax + eax]
cmp esi, dword [eax - 0x100]
jg 0x479cc2
mov edx, dword [eax]
test edx, edx
js 0x479cca
cmp edi, edx
jl 0x479cca
inc ecx
add eax, 4
cmp ecx, ebx
jl 0x479cb0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
mov eax, dword [eax + edi]
add edi, 4
sub dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], edi
mov dword [eax + edx*4], ecx
mov ecx, dword [ebp - 4]
jne 0x479ba3
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 0xc]
inc edx
add ebx, ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], ebx
cmp edx, dword [ebp - 8]
jl 0x479b80
mov eax, dword [ebp - 0x30]
pop edi
pop esi
pop ebx
inc dword [eax + 0x28]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret