Function at 0x49cbd0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x214
mov dword [esp + 4], ecx
push ebx
push ebp
mov eax, 4
lea ecx, [esp + 0x2c]
push esi
push edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
cmp eax, 0x800
jae 0x49cc00
xor ebx, ebx
mov bl, byte [eax + 0x4ea3d0]
jmp 0x49cc29
cmp eax, 0x200000
jae 0x49cc19
mov edx, eax
xor ebx, ebx
shr edx, 0xa
mov bl, byte [edx + 0x4ea3d0]
add ebx, 0x14
jmp 0x49cc29
mov ecx, eax
xor ebx, ebx
shr ecx, 0x14
mov bl, byte [ecx + 0x4ea3d0]
add ebx, 0x28
mov ecx, ebx
mov edx, ebx
shr ecx, 1
and edx, 1
dec ecx
or edx, 2
mov esi, eax
shl edx, cl
xor ebp, ebp
mov edi, 1
mov dword [esp + 0x10], ebp
sub esi, edx
test ecx, ecx
je 0x49cc9a
mov dword [esp + 0x20], ecx
mov ebp, dword [esp + 0x14]
mov ecx, edi
sub ecx, ebx
mov eax, esi
add ecx, edx
and eax, 1
add edi, edi
mov ecx, dword [ebp + ecx*4 + 0x28b2c]
mov ebp, eax
sub ecx, eax
or edi, eax
neg ebp
mov eax, dword [esp + 0x20]
xor ecx, ebp
mov ebp, dword [esp + 0x10]
shr ecx, 2
and ecx, 0x1ff
shr esi, 1
add ebp, dword [ecx*4 + 0x4eafd8]
dec eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x10], ebp
jne 0x49cc4f
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x1c], eax
mov dword [ecx], ebp
add ecx, 4
cmp eax, 0x80
mov dword [esp + 0x18], ecx
jb 0x49cbef
mov eax, dword [esp + 0x14]
mov ecx, 0xfffccd6c
sub ecx, eax
mov dword [esp + 0x1c], 4
lea ebp, [eax + 0x33294]
lea esi, [eax + 0x32e94]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], ecx
jmp 0x49cce4
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x33ad8]
xor edi, edi
test ecx, ecx
jbe 0x49cd41
mov ebx, esi
mov ecx, edi
xor edx, edx
or ecx, 0x40
cmp ecx, 1
je 0x49cd31
mov eax, ecx
shr ecx, 1
and eax, 1
mov ebp, dword [esi + ecx*4 - 0xa764]
sub ebp, eax
neg eax
xor ebp, eax
shr ebp, 2
and ebp, 0x1ff
mov eax, dword [ebp*4 + 0x4eafd8]
add edx, eax
cmp ecx, 1
jne 0x49ccfe
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [ebx], edx
mov ecx, dword [eax + 0x33ad8]
inc edi
add ebx, 4
cmp edi, ecx
jb 0x49ccf2
mov edx, dword [eax + 0x33ad8]
mov ecx, 0xe
cmp edx, ecx
jbe 0x49cd79
lea edx, [esi + 0x38]
mov ebx, dword [edx]
mov edi, ecx
and edi, 0x7fffffe
add edx, 4
add edi, 0x7fffff6
shl edi, 5
add ebx, edi
inc ecx
mov dword [edx - 4], ebx
mov edi, dword [eax + 0x33ad8]
cmp ecx, edi
jb 0x49cd53
mov edx, esi
mov edi, 4
mov eax, ebp
sub edx, ebp
mov ecx, edi
mov ebx, dword [edx + eax]
mov dword [eax], ebx
add eax, 4
dec edi
jne 0x49cd86
mov eax, dword [esp + 0x10]
lea edx, [ebp + 0x10]
lea edi, [esp + eax + 0x24]
cmp ecx, 0x800
jae 0x49cdae
xor eax, eax
mov al, byte [ecx + 0x4ea3d0]
jmp 0x49cdda
cmp ecx, 0x200000
mov eax, ecx
jae 0x49cdca
shr eax, 0xa
xor ebx, ebx
mov bl, byte [eax + 0x4ea3d0]
mov eax, ebx
add eax, 0x14
jmp 0x49cdda
shr eax, 0x14
xor ebx, ebx
mov bl, byte [eax + 0x4ea3d0]
mov eax, ebx
add eax, 0x28
mov eax, dword [esi + eax*4]
mov ebx, dword [edi + edx]
add eax, ebx
inc ecx
mov dword [edx], eax
add edx, 4
cmp ecx, 0x80
jb 0x49cd9c
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add esi, 0x100
sub edx, 0x200
add ebp, 0x200
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
jne 0x49cce0
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword [ecx + 0x33af8], 0
pop ebx
add esp, 0x214
ret