Function at 0x49e824
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
jne 0x49e83c
push 0xffffffffffffff9a
pop eax
jmp 0x49e87d
push esi
mov esi, dword [eax + 0x9c]
cmp esi, ebx
jne 0x49e84c
push 0xffffffffffffff9a
pop eax
jmp 0x49e87c
cmp dword [esi], ebx
jne 0x49e854
push 0xffffffffffffff9c
jmp 0x49e849
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
jne 0x49e85f
xor eax, eax
jmp 0x49e87c
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
cmp ecx, eax
mov dword [esi + 0x14], ecx
jbe 0x49e872
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], ebx
push edi
ja 0x49e882
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x49e954
mov eax, dword [esi + 0x58]
cmp eax, ebx
jbe 0x49e954
mov edi, 0x4000
cmp eax, edi
mov dword [ebp - 8], edi
jae 0x49e8a7
mov dword [ebp - 8], eax
mov edi, eax
mov eax, dword [esi + 0x88]
add eax, dword [esi + 0x3c]
push ebx
push ebx
push eax
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x70]
add esp, 0x14
test eax, eax
jne 0x49ea14
push edi
push dword [esi]
push dword [esi + 0x80]
push dword [esi + 0x7c]
call dword [esi + 0x64]
add esp, 0x10
cmp eax, edi
jne 0x49ea14
mov eax, dword [ebp + 8]
cmp dword [eax + 0xa0], ebx
je 0x49e946
test edi, edi
jbe 0x49e944
mov ecx, eax
add ecx, 0xa4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xac]
mov edx, dword [esi]
and eax, 0xfffd
or eax, 2
lea edi, [edx + ebx]
mov edx, eax
xor edx, 1
imul edx, eax
shr edx, 8
xor byte [edi], dl
mov eax, dword [esi]
movsx eax, byte [eax + ebx]
push eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0xb0]
call fcn.0049dfd3
mov edx, dword [esi]
add esp, 4
mov byte [ebx + edx], al
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x49e8fb
mov edi, dword [ebp - 8]
xor ebx, ebx
mov eax, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], eax
mov dword [esi + 8], edi
cmp dword [esi + 0x84], ebx
je 0x49e9ae
cmp dword [esi + 0x8c], ebx
jne 0x49e9ae
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0x18]
mov dword [ebp - 8], eax
lea eax, [esi + 4]
push 2
push eax
call fcn.0049f49c
mov ebx, dword [esi + 0x18]
sub ebx, edi
push ebx
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [esi + 0x50]
call fcn.0049f2af
sub dword [esi + 0x5c], ebx
add dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
mov eax, dword [ebp - 0xc]
add esp, 0x14
cmp eax, 1
je 0x49e878
test eax, eax
jne 0x49e87b
jmp 0x49ea05
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x49e9be
cmp dword [esi + 0x58], ebx
je 0x49e878
mov ebx, dword [esi + 0x14]
cmp ebx, eax
jb 0x49e9c7
mov ebx, eax
xor eax, eax
test ebx, ebx
jbe 0x49e9de
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
inc eax
cmp eax, ebx
jb 0x49e9cd
push ebx
push dword [esi + 0x10]
push dword [esi + 0x50]
call fcn.0049f2af
sub dword [esi + 0x5c], ebx
sub dword [esi + 8], ebx
sub dword [esi + 0x14], ebx
add dword [esi + 0x10], ebx
add dword [esi + 4], ebx
add dword [esi + 0x18], ebx
add esp, 0xc
add dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
cmp dword [esi + 0x14], 0
ja 0x49e880
jmp 0x49e878
or eax, 0xffffffff
jmp 0x49e87b