Function at 0x4e8920
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push eax
push 0x1b
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 8], esi
call fcn.004e22d0
add esp, 0x10
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4e8c36
mov ecx, dword [edi + 0x118]
mov edx, dword [ebp - 8]
push ebx
push ecx
push 1
push edx
call fcn.00485a20
mov eax, dword [edi + 0xfc]
mov ecx, dword [ebp - 8]
push eax
push 2
push ecx
call fcn.00485a20
mov eax, dword [ebp - 4]
add esp, 0x18
cmp eax, esi
jne 0x4e89ea
jmp 0x4e898d
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call fcn.00484290
add esp, 4
cmp eax, 0x64
jne 0x4e89ea
mov eax, dword [ebp - 8]
push esi
push eax
call fcn.00485490
mov ebx, eax
mov eax, dword [edi + 0xfc]
add esp, 8
test eax, eax
jle 0x4e89e1
lea ecx, [ebp - 4]
push ecx
push esi
push ebx
push edi
call fcn.004e8d10
mov ecx, dword [ebp - 0x3c]
add esp, 0x10
xor ecx, eax
mov eax, dword [ebp - 0x38]
xor eax, edx
inc esi
mov dword [ebp - 0x38], eax
mov eax, dword [edi + 0xfc]
cmp esi, eax
mov dword [ebp - 0x3c], ecx
jl 0x4e89b7
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e898b
xor esi, esi
mov edx, dword [ebp - 8]
push edx
call fcn.00482d90
mov ecx, eax
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, esi
jne 0x4e8c21
mov eax, ecx
cmp ecx, esi
mov dword [ebp - 4], eax
jne 0x4e8c21
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0xdc]
push edx
push str.SELECT__s
mov ecx, dword [eax]
mov dword [ebp + 8], esi
mov dword [ebp - 0x24], ecx
call fcn.004711e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4e8a41
mov dword [ebp - 4], 7
jmp 0x4e8c10
mov ecx, dword [edi + 0xc]
lea eax, [ebp + 8]
push 0
push eax
push 0xffffffffffffffff
push esi
push ecx
call fcn.004a51a0
push esi
mov dword [ebp - 4], eax
call fcn.0046f4b0
mov eax, dword [ebp - 4]
add esp, 0x18
test eax, eax
jne 0x4e8c10
mov edx, dword [ebp + 8]
push edx
call fcn.00484290
add esp, 4
cmp eax, 0x64
jne 0x4e8c10
mov eax, dword [ebp + 8]
push 0
push eax
call fcn.004854c0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push ecx
push edi
mov dword [ebp - 0x40], edx
call fcn.004e8720
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
add esp, 0x10
xor ebx, ebx
test eax, eax
jne 0x4e8c10
cmp ebx, dword [edi + 0x18]
jge 0x4e8a6a
mov edx, dword [edi + 0x20]
cmp byte [edx + ebx], 0
jne 0x4e8c07
mov eax, dword [ebp + 8]
lea esi, [ebx + 1]
push esi
push eax
call fcn.004854f0
mov ecx, dword [ebp + 8]
push esi
push ecx
mov dword [ebp - 0x18], eax
call fcn.00485400
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x1c]
push edx
mov edx, dword [edi + 0x24]
push eax
mov eax, dword [ebp - 0x18]
push eax
xor esi, esi
push ecx
push edx
mov dword [ebp - 0x1c], esi
call fcn.004dfbf0
add esp, 0x24
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4e8be9
jmp 0x4e8b06
xor esi, esi
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x28]
push eax
lea edx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0xc]
push edx
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x24]
push ecx
push edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], esi
call dword [eax + 0x14]
add esp, 0x18
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x4e8be9
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x44]
push ecx
mov ecx, dword [ebp - 0x14]
push ebx
push edx
mov edx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x20]
push esi
push ecx
push edx
push eax
call fcn.004e8c60
mov esi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
xor esi, eax
mov eax, dword [edi + 0xfc]
mov dword [ebp - 0x34], esi
mov esi, 1
add esp, 0x20
xor ecx, edx
cmp eax, esi
mov dword [ebp - 0x30], ecx
jle 0x4e8bdc
mov dword [ebp - 0x18], 0x18
mov ecx, dword [edi + 0x100]
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + ecx]
mov ecx, dword [ebp - 0xc]
cmp eax, ecx
jg 0x4e8bc8
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x40]
push ecx
mov ecx, dword [ebp - 0x44]
push ebx
push edx
mov edx, dword [ebp - 0x14]
push ecx
push esi
push edx
push eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.004e8c60
mov ecx, dword [ebp - 0x34]
add esp, 0x20
xor ecx, eax
mov eax, dword [ebp - 0x30]
xor eax, edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [edi + 0xfc]
inc esi
add ecx, 0x18
cmp esi, eax
mov dword [ebp - 0x18], ecx
jl 0x4e8b86
mov eax, dword [ebp - 4]
test eax, eax
je 0x4e8b04
xor esi, esi
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
je 0x4e8bfd
push ecx
mov ecx, dword [ebp - 0x24]
call dword [ecx + 0x10]
mov eax, dword [ebp - 4]
add esp, 4
cmp eax, 0x65
jne 0x4e8c07
xor eax, eax
mov dword [ebp - 4], eax
inc ebx
test eax, eax
je 0x4e8aad
mov edx, dword [ebp + 8]
push edx
call fcn.00480cf0
mov eax, dword [ebp - 4]
add esp, 4
xor esi, esi
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
cmp edx, ecx
pop ebx
jne 0x4e8c46
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
cmp ecx, edx
jne 0x4e8c46
mov edx, dword [ebp + 0xc]
mov ecx, 1
pop edi
pop esi
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
xor ecx, ecx
pop edi
pop esi
mov dword [edx], ecx
mov esp, ebp
pop ebp
ret