Function at 0x49a7f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov eax, dword [0x59a024]
xor eax, esp
mov dword [esp + 0x28], eax
cmp dword [esp + 0x44], 0
mov eax, dword [esp + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebp
mov ebx, ebp
je 0x49a94d
mov edx, dword [esp + 0x48]
cmp edx, 0x10
jb 0x49a8d3
shr edx, 4
mov dword [esp + 0x10], edx
jmp 0x49a840
mov edx, edi
sub edx, ebx
mov dword [esp + 0x1c], edx
mov edx, esi
mov eax, ebx
sub edx, ebx
mov ebx, edi
sub ebx, esi
lea ebp, [edi + 3]
lea ecx, [esi + 1]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], 4
mov ebx, dword [esp + 0x1c]
movzx ebx, byte [ebx + eax]
xor bl, byte [eax]
add eax, 4
mov byte [edx + eax - 4], bl
mov ebx, dword [esp + 0x24]
movzx ebx, byte [ebx + ecx]
xor bl, byte [eax - 3]
add ecx, 4
mov byte [ecx - 4], bl
movzx ebx, byte [eax - 2]
xor bl, byte [ebp - 1]
add ebp, 4
mov byte [ecx - 3], bl
movzx ebx, byte [eax - 1]
xor bl, byte [ebp - 4]
sub dword [esp + 0x20], 1
mov byte [ecx - 2], bl
jne 0x49a864
mov ecx, dword [esp + 0x14]
push ecx
push esi
push esi
call fcn.00498ad0
sub dword [esp + 0x54], 0x10
mov ebx, esi
add esp, 0xc
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x10], 1
jne 0x49a840
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x18]
test edx, edx
je 0x49a934
jbe 0x49a905
mov ecx, edi
sub ecx, ebx
mov edi, esi
mov eax, ebx
mov dword [esp + 0x1c], ecx
sub edi, ebx
mov dword [esp + 0x10], edx
jmp 0x49a8f4
mov ecx, dword [esp + 0x1c]
mov cl, byte [eax + ecx]
xor cl, byte [eax]
inc eax
sub dword [esp + 0x10], 1
mov byte [eax + edi - 1], cl
jne 0x49a8f0
cmp edx, 0x10
jae 0x49a923
mov edi, ebx
mov ecx, 0x10
sub edi, esi
lea eax, [esi + edx]
sub ecx, edx
mov dl, byte [edi + eax]
mov byte [eax], dl
inc eax
sub ecx, 1
jne 0x49a918
mov eax, dword [esp + 0x14]
push eax
push esi
push esi
call fcn.00498ad0
add esp, 0xc
mov ebx, esi
mov ecx, dword [ebx]
mov dword [ebp], ecx
mov edx, dword [ebx + 4]
mov dword [ebp + 4], edx
mov eax, dword [ebx + 8]
mov dword [ebp + 8], eax
mov ecx, dword [ebx + 0xc]
jmp 0x49ab4a
mov eax, dword [esp + 0x48]
cmp edi, esi
je 0x49aa2f
cmp eax, 0x10
jb 0x49a9c3
shr eax, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x14]
push edx
push esi
push edi
call fcn.00499960
mov ebp, ebx
add esp, 0xc
lea ecx, [ebx + 2]
mov eax, esi
sub ebp, esi
mov edx, 4
movzx ebx, byte [eax + ebp]
xor byte [eax], bl
movzx ebx, byte [ecx - 1]
xor byte [eax + 1], bl
movzx ebx, byte [ecx]
xor byte [eax + 2], bl
movzx ebx, byte [ecx + 1]
xor byte [eax + 3], bl
add eax, 4
add ecx, 4
sub edx, 1
jne 0x49a982
sub dword [esp + 0x48], 0x10
mov ebx, edi
add edi, 0x10
add esi, 0x10
sub dword [esp + 0x10], 1
jne 0x49a965
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x49aa05
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
call fcn.00499960
xor ecx, ecx
add esp, 0xc
cmp dword [esp + 0x48], ecx
jbe 0x49aa03
lea edx, [esp + 0x28]
mov eax, edx
sub ebx, edx
sub esi, eax
lea esp, [esp]
lea eax, [esp + ecx + 0x28]
mov dl, byte [eax + ebx]
xor dl, byte [eax]
inc ecx
mov byte [eax + esi], dl
cmp ecx, dword [esp + 0x48]
jb 0x49a9f0
mov ebx, edi
mov eax, dword [ebx]
mov dword [ebp], eax
mov ecx, dword [ebx + 4]
mov dword [ebp + 4], ecx
mov edx, dword [ebx + 8]
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0xc]
pop edi
pop esi
mov dword [ebp + 0xc], eax
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00409b58
add esp, 0x2c
ret
cmp eax, 0x10
jb 0x49aad2
sub ebx, esi
shr eax, 4
mov dword [esp + 0x18], eax
mov edx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0xc]
push esi
push edi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call fcn.00499960
mov eax, esi
add esp, 0xc
lea ecx, [ebp + 2]
mov esi, 4
movzx edx, byte [ebx + eax]
xor byte [eax], dl
movzx edx, byte [ecx - 1]
xor byte [eax + 1], dl
movzx edx, byte [ecx]
xor byte [eax + 2], dl
movzx edx, byte [ecx + 1]
xor byte [eax + 3], dl
add eax, 4
add ecx, 4
sub esi, 1
jne 0x49aa75
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub dword [esp + 0x48], 0x10
mov dword [ebp], ecx
mov ecx, dword [esp + 0x30]
mov dword [ebp + 4], edx
mov edx, dword [esp + 0x34]
add edi, 0x10
sub ebx, 0x10
sub dword [esp + 0x18], 1
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
mov esi, eax
jne 0x49aa41
mov eax, dword [esp + 0x48]
test eax, eax
je 0x49ab4d
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov edx, dword [edi + 8]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x30], edx
push ecx
lea edx, [esp + 0x2c]
mov dword [esp + 0x38], eax
push edx
mov eax, edx
push eax
call fcn.00499960
mov edx, dword [esp + 0x54]
add esp, 0xc
xor ecx, ecx
test edx, edx
jbe 0x49ab31
lea eax, [esp + 0x28]
mov edi, ebp
sub edi, eax
sub esi, eax
lea ebx, [ebx]
lea eax, [esp + ecx + 0x28]
mov bl, byte [edi + eax]
xor bl, byte [eax]
inc ecx
mov byte [eax + esi], bl
cmp ecx, edx
jb 0x49ab20
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [ebp], ecx
mov ecx, dword [esp + 0x34]
mov dword [ebp + 4], edx
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ecx
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00409b58
add esp, 0x2c
ret