Function at 0x4ab2c9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x884
mov eax, dword [0x513010]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0x18
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x874], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x86c], eax
mov eax, dword [ebp + 0x20]
push esi
mov esi, ecx
mov dword [ebp - 0x878], eax
mov eax, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x880], esi
mov dword [ebp - 0x87c], eax
ja 0x4ab500
and dword [ebp - 0x870], 0
lea ebx, [esi + 0xf4]
push edi
mov ecx, ebx
call fcn.00495c48
test al, al
je 0x4ab389
mov eax, dword [ebp + 0x1c]
cmp dword [ebx + 0x40], eax
jne 0x4ab389
mov edx, dword [ebp - 0x86c]
xor ecx, ecx
mov eax, dword [ebx + ecx*4 + 0x10]
cmp eax, dword [edx + ecx*4]
jne 0x4ab389
inc ecx
cmp ecx, 4
jne 0x4ab341
push 8
pop ecx
lea esi, [ebx + 0x20]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
push ecx
push 0
push 0x20
pop edx
lea ecx, [ebp - 0x24]
call fcn.00495cef
pop ecx
pop ecx
push 8
pop ecx
lea esi, [ebx + 0x44]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [ebx + 0x64]
lea edi, [ebp - 0x64]
push 0x20
rep movsd dword es:[edi], dword [esi]
pop ebx
jmp 0x4ab488
mov eax, dword [ebp - 0x870]
add ebx, 0x84
inc eax
mov dword [ebp - 0x870], eax
cmp eax, 4
jb 0x4ab325
push ecx
mov ecx, dword [ebp - 0x874]
lea edx, [ebp - 0x868]
call fcn.00495f38
pop ecx
lea edx, [ebp - 0x868]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4ab3bd
xor eax, eax
sub edx, ecx
mov ecx, dword [ebp + 0x1c]
inc eax
shl eax, cl
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
push ecx
push dword [ebp - 0x86c]
lea ecx, [ebp - 0x868]
call fcn.004ab0f5
add esp, 0x18
lea eax, [ebp - 0x868]
mov ecx, 0x800
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4ab3fb
mov ecx, dword [esi + 0x304]
mov eax, ecx
and eax, 3
imul ebx, eax, 0x84
lea eax, [ecx + 1]
mov dword [esi + 0x304], eax
mov eax, dword [ebp + 0x1c]
add ebx, 0xf4
add ebx, esi
mov dword [ebx + 0x40], eax
cmp ebx, edi
je 0x4ab441
mov eax, dword [edi + 4]
mov ecx, ebx
sub eax, dword [edi]
sar eax, 1
push eax
push dword [edi]
call fcn.004ab826
mov al, byte [edi + 0xc]
lea edi, [ebx + 0x10]
mov esi, dword [ebp - 0x86c]
mov byte [ebx + 0xc], al
lea eax, [ebx + 0x20]
push 8
pop ecx
movsd dword es:[edi], dword [esi]
push 8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, eax
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop ecx
push 8
lea edi, [ebx + 0x44]
lea esi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea edi, [ebx + 0x64]
lea esi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
push ecx
push 1
push 0x20
pop ebx
mov edx, ebx
mov ecx, eax
call fcn.00495cef
pop ecx
pop ecx
mov eax, dword [ebp - 0x878]
test eax, eax
je 0x4ab49c
push 8
pop ecx
lea esi, [ebp - 0x64]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x87c]
test esi, esi
je 0x4ab4ce
and dword [esi], 0
and dword [esi + 4], 0
xor edx, edx
mov al, byte [ebp + edx - 0x44]
mov ecx, edx
and ecx, 7
xor byte [ecx + esi], al
inc edx
cmp edx, ebx
jb 0x4ab4af
mov ecx, ebx
lea eax, [ebp - 0x44]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4ab4c5
cmp dword [ebp + 0x18], 0
je 0x4ab4f4
push dword [ebp + 0x18]
mov ecx, dword [ebp - 0x880]
lea eax, [ebp - 0x24]
push 0x100
push eax
push dword [ebp + 8]
add ecx, 0x30c
call fcn.004af7a6
lea eax, [ebp - 0x24]
mov byte [eax], 0
inc eax
sub ebx, 1
jne 0x4ab4f7
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7879
leave
ret 0x20