Function at 0x48f414
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov esi, 0x4e6124
mov ebp, 0x4e6120
xor eax, eax
mov dword [esp + 4], eax
mov ebx, 2
cmp dword [0x4adcb8], 3
jg 0x48f676
call fcn.0048eed1
jmp 0x48f6c7
mov edx, dword [0x4adbf8]
mov eax, dword [esi]
xor ecx, ecx
mov cl, byte [edx + eax + 2]
mov edx, dword [0x4e611c]
shl edx, 5
xor ecx, edx
and ecx, 0x7fff
mov dword [0x4e611c], ecx
mov ecx, dword [0x4e610c]
mov edx, dword [0x4e611c]
movzx edi, word [ecx + edx*2]
and eax, 0x7fff
mov edx, dword [0x4adbfc]
mov word [edx + eax*2], di
mov eax, dword [0x4e610c]
mov ecx, dword [0x4e611c]
mov dx, word [esi]
mov word [eax + ecx*2], dx
mov dword [ebp], ebx
mov eax, dword [0x4e6128]
mov dword [esp], eax
mov ebx, 2
test edi, edi
je 0x48f4f5
mov eax, dword [ebp]
cmp eax, dword [0x4e6138]
jae 0x48f4f5
mov edx, dword [esi]
sub edx, edi
cmp edx, 0x7efa
ja 0x48f4f5
mov eax, edi
call fcn.0048f2c4
mov ebx, eax
mov eax, dword [0x4e6130]
cmp ebx, eax
jbe 0x48f4dc
mov ebx, eax
cmp ebx, 3
jne 0x48f4f5
mov eax, dword [esi]
sub eax, dword [0x4e6128]
cmp eax, 0x1000
jbe 0x48f4f5
mov ebx, 2
cmp dword [ebp], 3
jb 0x48f5fe
cmp ebx, dword [ebp]
jbe 0x48f53b
mov eax, ebx
sub eax, dword [ebp]
cmp eax, 1
jne 0x48f5fe
mov edx, dword [esi]
sub edx, dword [0x4e6128]
cmp edx, 0x4000
jbe 0x48f5fe
mov ecx, dword [0x4e6128]
add ecx, 0x5dc
cmp ecx, dword [esp]
jae 0x48f5fe
mov edx, dword [ebp]
mov eax, dword [esi]
sub edx, 3
dec eax
sub eax, dword [esp]
call fcn.00490eec
mov ecx, dword [ebp]
dec ecx
sub dword [0x4e6130], ecx
sub dword [ebp], 2
inc dword [esi]
mov ecx, dword [0x4adbf8]
mov edx, dword [esi]
movzx ecx, byte [ecx + edx + 2]
mov ebx, dword [0x4e611c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [0x4e611c], ecx
mov ecx, dword [0x4e610c]
mov ebx, dword [0x4e611c]
movzx edi, word [ecx + ebx*2]
and edx, 0x7fff
mov ecx, dword [0x4adbfc]
mov word [ecx + edx*2], di
mov edx, dword [0x4e610c]
mov ecx, dword [0x4e611c]
mov bx, word [esi]
mov word [edx + ecx*2], bx
dec dword [ebp]
jne 0x48f55a
xor edx, edx
mov dword [esp + 4], edx
mov ebx, 2
inc dword [esi]
test eax, eax
je 0x48f665
mov edx, dword [esi]
sub edx, dword [0x4e6114]
cmp dword [0x4e6114], 0
jl 0x48f5eb
mov eax, dword [0x4adbf8]
add eax, dword [0x4e6114]
jmp 0x48f5ed
xor eax, eax
xor ecx, ecx
call fcn.00490d10
mov edx, dword [esi]
mov dword [0x4e6114], edx
jmp 0x48f665
cmp dword [esp + 4], 0
je 0x48f655
mov eax, dword [0x4adbf8]
mov edx, dword [esi]
movzx edx, byte [eax + edx - 1]
xor eax, eax
call fcn.00490eec
test eax, eax
je 0x48f64b
mov edx, dword [esi]
sub edx, dword [0x4e6114]
cmp dword [0x4e6114], 0
jl 0x48f63a
mov eax, dword [0x4adbf8]
add eax, dword [0x4e6114]
jmp 0x48f63c
xor eax, eax
xor ecx, ecx
call fcn.00490d10
mov edx, dword [esi]
mov dword [0x4e6114], edx
inc dword [esi]
dec dword [0x4e6130]
jmp 0x48f665
mov dword [esp + 4], 1
inc dword [esi]
dec dword [0x4e6130]
cmp dword [0x4e6130], 0x106
jae 0x48f676
call fcn.0048eda0
cmp dword [0x4e6130], 0
jne 0x48f447
cmp dword [esp + 4], 0
je 0x48f69d
mov eax, dword [0x4adbf8]
mov edx, dword [esi]
movzx edx, byte [eax + edx - 1]
xor eax, eax
call fcn.00490eec
mov edx, dword [esi]
sub edx, dword [0x4e6114]
cmp dword [0x4e6114], 0
jl 0x48f6bb
mov eax, dword [0x4adbf8]
add eax, dword [0x4e6114]
jmp 0x48f6bd
xor eax, eax
mov ecx, 1
call fcn.00490d10
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret