Function at 0x4aaef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x5d7008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, edx
mov dword [ebp - 0x1c], eax
mov ebx, dword [esi + 0x10df0]
mov dword [ebp - 0x30], edi
cmp dword [esi + 0x10dec], ebx
je 0x4aaf49
mov edi, dword [ebp - 0x1c]
imul ecx, ebx, 0x2c
mov edx, dword [ecx + esi + 0x10e08]
mov eax, edx
sub eax, ebx
mov dword [edi], eax
mov eax, dword [ecx + esi + 0x10e0c]
mov dword [esi + 0x10df0], edx
jmp 0x4ab15d
cmp dword [edi + 0x18], 0
jne 0x4aaffa
cmp dword [esi + 0x10da4], 0x80
jb 0x4aaf64
call fcn.004a9a80
cmp dword [esi + 0x10de8], 0x10
jb 0x4aaffa
xor eax, eax
lea ecx, [esi + 0x10da8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], ecx
nop
mov edi, eax
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x24], 0
mov ebx, 1
nop word [eax + eax]
movzx ecx, word [esi + ebx*2 + 0x70f0]
mov edx, edi
and edx, 1
shr ecx, 4
mov eax, edx
shr edi, 1
neg eax
shr eax, 4
and eax, 0x7f
lea ebx, [edx + ebx*2]
xor ecx, eax
movzx eax, byte [ecx + 0x5add20]
mov ecx, dword [ebp - 0x24]
add ecx, eax
sub dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ecx
jne 0x4aafa0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov dword [edx], ecx
add edx, 4
mov dword [ebp - 0x18], edx
cmp eax, 0x10
jb 0x4aaf80
mov edi, dword [ebp - 0x30]
mov dword [esi + 0x10de8], 0
push dword [ebp + 0x10]
mov edx, edi
mov ecx, esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
call fcn.004a9c50
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp eax, 0xffffffff
je 0x4ab162
movups xmm0, xmmword [esi + 0x1f4]
mov ebx, 1
movups xmmword [ebp - 0x14], xmm0
cmp eax, ebx
jbe 0x4ab0a2
lea eax, [esi + 0x204]
lea ecx, [esi + 0xa94]
nop dword [eax + eax]
mov edx, ecx
mov ecx, edi
push eax
call fcn.004ab6e0
add esp, 4
mov dword [esi + 0xa98], eax
cmp eax, dword [edi + 0x48]
jae 0x4ab0a2
mov edx, dword [edi + 0x14]
mov eax, 0xfff
mov ecx, dword [edi + 0x20]
sub eax, ebx
sub ecx, edx
inc ecx
cmp ecx, eax
cmovae ecx, eax
mov eax, dword [ebp + 0x10]
push ecx
push dword [edi + 0x48]
add eax, ebx
dec edx
push ebx
push eax
mov eax, dword [edi]
mov ecx, esi
push dword [ebp - 0x18]
add eax, edx
lea edx, [ebp - 0x14]
push eax
call fcn.004aa290
inc ebx
mov dword [ebp - 0x18], eax
add esp, 0x18
lea ecx, [esi + 0xa94]
cmp ebx, eax
lea eax, [esi + 0x204]
jb 0x4ab040
imul eax, ebx, 0x2c
mov dword [esi + 0x10dec], ebx
mov edi, dword [eax + esi + 0x10e08]
mov eax, dword [eax + esi + 0x10e0c]
mov dword [ebp - 0x18], eax
nop dword [eax]
imul edx, ebx, 0x2c
add edx, esi
cmp byte [edx + 0x10df8], 0
je 0x4ab115
imul ecx, edi, 0x2c
lea eax, [edi - 1]
add ecx, esi
mov dword [ecx + 0x10e0c], 0xffffffff
mov byte [ecx + 0x10df8], 0
mov dword [ecx + 0x10e08], eax
cmp byte [edx + 0x10df9], 0
je 0x4ab115
mov byte [ecx + 0x10dcc], 0
mov eax, dword [edx + 0x10dfc]
mov dword [ecx + 0x10ddc], eax
mov eax, dword [edx + 0x10e00]
mov dword [ecx + 0x10de0], eax
mov ecx, dword [ebp - 0x18]
mov edx, edi
imul eax, edi, 0x2c
mov edi, dword [eax + esi + 0x10e0c]
mov dword [ebp - 0x18], edi
mov edi, dword [eax + esi + 0x10e08]
mov dword [eax + esi + 0x10e08], ebx
mov ebx, edx
mov dword [eax + esi + 0x10e0c], ecx
test edx, edx
jne 0x4ab0c0
mov edi, dword [ebp - 0x1c]
mov eax, dword [esi + 0x10e08]
mov dword [esi + 0x10df0], eax
mov dword [edi], eax
mov eax, dword [esi + 0x10e0c]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053d630
mov esp, ebp
pop ebp
ret