Function at 0x4e2f10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x54], eax
mov dword [esp + 0x10], 0
je 0x4e3139
sub esp, 0xc
mov esi, dword [esp + 0x6c]
push esi
call fcn.00479880
pop ebx
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00479aa0
mov dword [esp + 0x1c], eax
add esp, 0x10
test eax, eax
je 0x4e310a
mov edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x54]
mov eax, dword [edi + 4]
add eax, dword [ebx + 4]
lea ebx, [eax + 4]
mov esi, dword [esp + 0xc]
cmp dword [esi + 8], ebx
jl 0x4e3123
xor edx, edx
mov ebp, dword [esp + 0xc]
cmp edx, ebx
mov eax, ebx
mov dword [ebp + 4], ebx
jge 0x4e2f93
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
mov dword [ecx + edx*4], 0
inc edx
cmp edx, ebx
jl 0x4e2f87
mov edx, dword [esp + 0x58]
mov ebx, dword [edx + 4]
cmp ebx, 0
mov dword [esp + 0x14], 0
jle 0x4e30bd
mov eax, dword [esp + 0x54]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x58]
mov edx, dword [eax]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x14]
mov ebp, dword [edx + esi*4]
inc edi
mov dword [esp + 8], ebp
xor ebp, ebp
cmp edi, ebx
je 0x4e2fd6
mov edi, dword [esp + 0x14]
mov ebp, dword [edx + edi*4 + 4]
xor esi, esi
cmp ecx, 0
jle 0x4e30a7
jmp 0x4e2ff0
mov ebx, dword [esp + 0x54]
lea eax, [esi + 1]
mov edx, dword [ebx]
xor edi, edi
cmp eax, ecx
mov ebx, dword [edx + esi*4]
je 0x4e3006
mov edi, dword [edx + esi*4 + 4]
sub esp, 8
push ebp
push edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x3c]
call fcn.004e2800
pop eax
pop edx
mov eax, dword [esp + 0x10]
push eax
push ebx
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
call fcn.004e2800
pop eax
pop edx
mov edx, dword [esp + 0x10]
xor edx, ebp
push edx
xor ebx, edi
push ebx
lea edx, [esp + 0x2c]
lea eax, [esp + 0x28]
call fcn.004e2800
add esp, 0x10
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x24]
xor ebx, ecx
mov eax, dword [esp + 0x2c]
xor ebx, eax
xor ebx, dword [esp + 0x28]
xor eax, ebx
xor eax, dword [esp + 0x20]
xor eax, ecx
mov edx, dword [esp + 0xc]
xor eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], eax
mov ebx, dword [edx]
xor ecx, ecx
lea edx, [esi + edi]
mov edi, dword [esp + ecx*4 + 0x20]
inc ecx
xor dword [ebx + edx*4], edi
inc edx
cmp ecx, 3
jle 0x4e3080
mov ebx, dword [esp + 0x54]
add esi, 2
mov ecx, dword [ebx + 4]
cmp ecx, esi
jg 0x4e2ff0
mov ebp, dword [esp + 0x58]
mov ebx, dword [ebp + 4]
add dword [esp + 0x14], 2
cmp ebx, dword [esp + 0x14]
jg 0x4e2fb2
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
mov ecx, eax
jle 0x4e30e6
mov edx, dword [esp + 0xc]
mov eax, dword [edx]
lea edx, [eax + ecx*4 - 4]
mov edi, dword [edx]
sub edx, 4
test edi, edi
jne 0x4e30e6
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], ebx
mov ecx, ebx
jg 0x4e30cd
push edi
mov eax, dword [esp + 0x60]
push eax
mov esi, dword [esp + 0x14]
push esi
mov ebp, dword [esp + 0x5c]
push ebp
call fcn.004e2aa0
add esp, 0x10
test eax, eax
je 0x4e310a
mov dword [esp + 0x10], 1
sub esp, 0xc
mov edx, dword [esp + 0x6c]
push edx
call fcn.004797f0
mov eax, dword [esp + 0x20]
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 8
push ebx
push esi
call fcn.00477470
add esp, 0x10
test eax, eax
je 0x4e310a
jmp 0x4e2f72
mov edx, dword [esp + 0x60]
push edx
mov ebp, dword [esp + 0x60]
push ebp
push eax
mov edi, dword [esp + 0x5c]
push edi
call fcn.004e2d70
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret