Function at 0x49e0c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dbd0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dd50
test eax, eax
mov dword [esp + 0x24], eax
je 0x49e148
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dd50
test eax, eax
mov dword [esp + 0x28], eax
je 0x49e148
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dd50
test eax, eax
mov esi, eax
mov dword [esp + 0x2c], eax
je 0x49e148
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dd50
test eax, eax
mov dword [esp + 0x30], eax
je 0x49e148
mov eax, dword [esp + 0x68]
mov dword [esp], esi
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
call fcn.0049e040
test eax, eax
je 0x49e148
mov eax, dword [esi + 4]
test eax, eax
jne 0x49e160
xor ebx, ebx
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
call fcn.0041dcd0
add esp, 0x4c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x30]
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.0041e370
test eax, eax
je 0x49e148
mov edi, dword [esp + 0x2c]
mov dword [esp], edi
call fcn.0041e180
mov dword [esp], esi
mov dword [esp + 0x10], eax
call fcn.0041e180
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
mov eax, dword [eax + 4]
mov esi, eax
cmp esi, dword [edi + 8]
mov dword [esp + 0x20], eax
jg 0x49e484
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [eax + 4]
cmp dword [esp + 0x20], eax
jle 0x49e1ce
lea esi, [esi]
mov dword [ebx + eax*4], 0
add eax, 1
cmp eax, edx
jne 0x49e1c0
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov esi, dword [esp + 0x24]
cmp eax, dword [esi + 8]
jg 0x49e4b2
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov ebp, dword [eax]
cmp esi, 1
mov dword [ebp], 1
lea eax, [ebp + 4]
lea edx, [ebp + esi*4]
jle 0x49e210
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x49e203
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov esi, dword [esp + 0x28]
cmp eax, dword [esi + 8]
jg 0x49e499
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
mov esi, dword [eax]
test edi, edi
mov eax, esi
lea edx, [esi + edi*4]
jle 0x49e24d
nop
lea esi, [esi]
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x49e240
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [edi + 4], eax
mov edi, dword [esp + 0x30]
shl eax, 2
mov dword [esp + 0x18], eax
sub eax, 4
mov dword [esp + 0x3c], eax
mov eax, esi
mov edi, dword [edi]
mov esi, edi
mov edi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx]
test eax, eax
jne 0x49e371
cmp ecx, 1
je 0x49e43d
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jge 0x49e2d7
mov eax, dword [esp + 0x10]
mov ebp, edi
mov ebx, esi
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov esi, dword [edx]
mov edi, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x1c], eax
mov eax, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
xor eax, eax
mov ecx, dword [esp + 0x20]
test edx, edx
jle 0x49e2f9
mov edx, dword [esi + eax*4]
xor dword [ebx + eax*4], edx
mov edx, dword [edi + eax*4]
xor dword [ebp + eax*4], edx
add eax, 1
cmp eax, ecx
jne 0x49e2e5
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x10], eax
jne 0x49e272
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x1e]
sub eax, 1
cmovns ecx, eax
sar ecx, 5
mov edx, dword [ebx + ecx*4]
mov eax, ecx
test edx, edx
jne 0x49e4cb
test ecx, ecx
jne 0x49e338
jmp 0x49e430
test eax, eax
je 0x49e430
sub eax, 1
mov edx, dword [ebx + eax*4]
test edx, edx
je 0x49e330
shl eax, 5
mov dword [esp + 0x14], eax
mov dword [esp], edx
call fcn.0041e130
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x49e280
mov eax, ecx
and eax, 1
je 0x49e388
cmp dword [esp + 0x10], 0x20
jg 0x49e289
jmp 0x49e280
mov edx, dword [ebp]
mov dword [esp + 0x38], eax
mov eax, edx
and eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
neg dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov eax, dword [eax]
mov edx, eax
mov eax, dword [esp + 0x14]
and eax, dword [edx]
mov edx, dword [esp + 0x34]
xor edx, eax
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x20], 1
jle 0x49e41b
mov dword [esp + 0x38], edi
mov eax, 4
mov edi, edx
mov dword [esp + 0x34], esi
jmp 0x49e3d4
mov edi, edx
mov ecx, esi
mov esi, dword [ebx + eax]
shr ecx, 1
shr edi, 1
mov edx, esi
shl edx, 0x1f
or edx, ecx
mov ecx, dword [esp + 0x68]
mov dword [ebx + eax - 4], edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x14]
and ecx, dword [edx + eax]
mov edx, dword [ebp + eax]
xor edx, ecx
mov ecx, edx
shl ecx, 0x1f
or ecx, edi
mov dword [ebp + eax - 4], ecx
add eax, 4
cmp eax, dword [esp + 0x18]
jne 0x49e3d0
mov ecx, esi
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x3c]
shr ecx, 1
shr edx, 1
mov dword [ebx + eax], ecx
sub dword [esp + 0x10], 1
mov dword [ebp + eax], edx
jmp 0x49e272
mov dword [esp + 0x14], 0
jmp 0x49e349
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 4]
test eax, eax
jle 0x49e464
mov esi, dword [esi]
mov dword [esp + 0x10], esi
lea edx, [esi - 4]
mov ecx, dword [edx + eax*4]
test ecx, ecx
jne 0x49e45d
sub eax, 1
jne 0x49e451
mov esi, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.0041e370
test eax, eax
setne bl
jmp 0x49e14a
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], esi
mov dword [esp], eax
call fcn.0041e320
jmp 0x49e1aa
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0041e320
jmp 0x49e228
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0041e320
jmp 0x49e1e6
shl ecx, 5
mov dword [esp + 0x14], ecx
jmp 0x49e349