Function at 0x48c35c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, 0x4e24a0
mov ebp, 0x4e249c
xor eax, eax
mov dword [esp + 4], eax
mov ebx, 2
cmp dword [0x4aa33c], 3
jg 0x48c5be
call fcn.0048be19
jmp 0x48c60f
mov edx, dword [0x4aa27c]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [edx + eax + 2]
mov edx, dword [0x4e2498]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
mov dword [0x4e2498], ecx
mov ecx, dword [0x4e2488]
mov edx, dword [0x4e2498]
movzx edi, word [ecx + edx*2]
and eax, 0x7fff
mov edx, dword [0x4aa280]
mov word [edx + eax*2], di
mov eax, dword [0x4e2488]
mov ecx, dword [0x4e2498]
mov dx, word [esi]
mov word [eax + ecx*2], dx
mov dword [ebp], ebx
mov eax, dword [0x4e24a4]
mov dword [esp], eax
mov ebx, 2
test edi, edi
je 0x48c43d
mov eax, dword [ebp]
cmp eax, dword [0x4e24b4]
jae 0x48c43d
mov edx, dword [esi]
sub edx, edi
cmp edx, 0x7efa
ja 0x48c43d
mov eax, edi
call fcn.0048c20c
mov ebx, eax
mov eax, dword [0x4e24ac]
cmp ebx, eax
jbe 0x48c424
mov ebx, eax
cmp ebx, 3
jne 0x48c43d
mov eax, dword [esi]
sub eax, dword [0x4e24a4]
cmp eax, 0x1000
jbe 0x48c43d
mov ebx, 2
cmp dword [ebp], 3
jb 0x48c546
cmp ebx, dword [ebp]
jbe 0x48c483
mov eax, ebx
sub eax, dword [ebp]
cmp eax, 1
jne 0x48c546
mov edx, dword [esi]
sub edx, dword [0x4e24a4]
cmp edx, 0x4000
jbe 0x48c546
mov ecx, dword [0x4e24a4]
add ecx, 0x5dc
cmp ecx, dword [esp]
jae 0x48c546
mov edx, dword [ebp]
mov eax, dword [esi]
sub edx, 3
dec eax
sub eax, dword [esp]
call fcn.0048de10
mov ecx, dword [ebp]
dec ecx
sub dword [0x4e24ac], ecx
sub dword [ebp], 2
inc dword [esi]
mov ecx, dword [0x4aa27c]
mov edx, dword [esi]
movzx ecx, byte [ecx + edx + 2]
mov ebx, dword [0x4e2498]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [0x4e2498], ecx
mov ecx, dword [0x4e2488]
mov ebx, dword [0x4e2498]
movzx edi, word [ecx + ebx*2]
and edx, 0x7fff
mov ecx, dword [0x4aa280]
mov word [ecx + edx*2], di
mov edx, dword [0x4e2488]
mov ecx, dword [0x4e2498]
mov bx, word [esi]
mov word [edx + ecx*2], bx
dec dword [ebp]
jne 0x48c4a2
xor edx, edx
mov dword [esp + 4], edx
mov ebx, 2
inc dword [esi]
test eax, eax
je 0x48c5ad
mov edx, dword [esi]
sub edx, dword [0x4e2490]
cmp dword [0x4e2490], 0
jl 0x48c533
mov eax, dword [0x4aa27c]
add eax, dword [0x4e2490]
jmp 0x48c535
xor eax, eax
xor ecx, ecx
call fcn.0048dc34
mov edx, dword [esi]
mov dword [0x4e2490], edx
jmp 0x48c5ad
cmp dword [esp + 4], 0
je 0x48c59d
mov eax, dword [0x4aa27c]
mov edx, dword [esi]
movzx edx, byte [eax + edx - 1]
xor eax, eax
call fcn.0048de10
test eax, eax
je 0x48c593
mov edx, dword [esi]
sub edx, dword [0x4e2490]
cmp dword [0x4e2490], 0
jl 0x48c582
mov eax, dword [0x4aa27c]
add eax, dword [0x4e2490]
jmp 0x48c584
xor eax, eax
xor ecx, ecx
call fcn.0048dc34
mov edx, dword [esi]
mov dword [0x4e2490], edx
inc dword [esi]
dec dword [0x4e24ac]
jmp 0x48c5ad
mov dword [esp + 4], 1
inc dword [esi]
dec dword [0x4e24ac]
cmp dword [0x4e24ac], 0x106
jae 0x48c5be
call fcn.0048bce8
cmp dword [0x4e24ac], 0
jne 0x48c38f
cmp dword [esp + 4], 0
je 0x48c5e5
mov eax, dword [0x4aa27c]
mov edx, dword [esi]
movzx edx, byte [eax + edx - 1]
xor eax, eax
call fcn.0048de10
mov edx, dword [esi]
sub edx, dword [0x4e2490]
cmp dword [0x4e2490], 0
jl 0x48c603
mov eax, dword [0x4aa27c]
add eax, dword [0x4e2490]
jmp 0x48c605
xor eax, eax
mov ecx, 1
call fcn.0048dc34
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret