Function at 0x4e3130
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 0x4e3359
sub esp, 0xc
mov esi, dword [esp + 0x6c]
push esi
call fcn.00479aa0
pop ebx
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00479cc0
mov dword [esp + 0x1c], eax
add esp, 0x10
test eax, eax
je 0x4e332a
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 0x4e3343
xor edx, edx
mov ebp, dword [esp + 0xc]
cmp edx, ebx
mov eax, ebx
mov dword [ebp + 4], ebx
jge 0x4e31b3
mov esi, dword [esp + 0xc]
mov ecx, dword [esi]
mov dword [ecx + edx*4], 0
inc edx
cmp edx, ebx
jl 0x4e31a7
mov edx, dword [esp + 0x58]
mov ebx, dword [edx + 4]
cmp ebx, 0
mov dword [esp + 0x14], 0
jle 0x4e32dd
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 0x4e31f6
mov edi, dword [esp + 0x14]
mov ebp, dword [edx + edi*4 + 4]
xor esi, esi
cmp ecx, 0
jle 0x4e32c7
jmp 0x4e3210
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 0x4e3226
mov edi, dword [edx + esi*4 + 4]
sub esp, 8
push ebp
push edi
lea edx, [esp + 0x38]
lea eax, [esp + 0x3c]
call fcn.004e2a20
pop eax
pop edx
mov eax, dword [esp + 0x10]
push eax
push ebx
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
call fcn.004e2a20
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.004e2a20
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 0x4e32a0
mov ebx, dword [esp + 0x54]
add esi, 2
mov ecx, dword [ebx + 4]
cmp ecx, esi
jg 0x4e3210
mov ebp, dword [esp + 0x58]
mov ebx, dword [ebp + 4]
add dword [esp + 0x14], 2
cmp ebx, dword [esp + 0x14]
jg 0x4e31d2
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 4]
test eax, eax
mov ecx, eax
jle 0x4e3306
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 0x4e3306
lea ebx, [ecx - 1]
test ebx, ebx
mov ecx, dword [esp + 0xc]
mov dword [ecx + 4], ebx
mov ecx, ebx
jg 0x4e32ed
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.004e2cc0
add esp, 0x10
test eax, eax
je 0x4e332a
mov dword [esp + 0x10], 1
sub esp, 0xc
mov edx, dword [esp + 0x6c]
push edx
call fcn.00479a10
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.00477690
add esp, 0x10
test eax, eax
je 0x4e332a
jmp 0x4e3192
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.004e2f90
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret