Function at 0x49bf6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0xf8
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x78]
push edi
mov edi, dword [ebp + 0x70]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x7c]
push edi
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], eax
call fcn.00498691
pop ecx
test eax, eax
jne 0x49c252
push ebx
imul edi, edi, 0x68
test byte [ebp + 0x74], 7
mov ebx, dword [ebp + 0x6c]
mov eax, dword [edi + 0x4df7d0]
push esi
mov esi, dword [ebp + 0x74]
push 0
pop ecx
setne cl
shr esi, 3
mov dword [ebp - 0x8c], eax
add esi, ecx
cmp ebx, esi
ja 0x49c24d
lea eax, [eax + ebx + 2]
cmp esi, eax
jb 0x49c24d
push esi
call fcn.0040ca29
push esi
mov dword [ebp - 0x7c], eax
call fcn.0040ca29
push esi
mov dword [ebp - 0x84], eax
call fcn.0040ca29
push esi
mov dword [ebp - 0x80], eax
call fcn.0040ca29
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x7c], ecx
je 0x49c210
cmp dword [ebp - 0x84], ecx
je 0x49c207
cmp dword [ebp - 0x80], ecx
je 0x49c207
cmp eax, ecx
je 0x49c207
cmp ebx, ecx
jbe 0x49c054
push ebx
push dword [ebp - 0x80]
call fcn.0049793e
pop ecx
pop ecx
lea eax, [ebp - 0x78]
push eax
call dword [edi + 0x4df81c]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x49c1da
push 8
push dword [ebp - 0x7c]
call fcn.00497982
push 8
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call dword [edi + 0x4df820]
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x49c1da
push dword [ebp + 0x68]
lea eax, [ebp - 0x78]
push dword [ebp - 0x90]
push eax
call dword [edi + 0x4df820]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49c1da
push dword [ebp + 0x6c]
lea eax, [ebp - 0x78]
push dword [ebp - 0x80]
push eax
call dword [edi + 0x4df820]
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x49c1da
push dword [ebp - 0x88]
lea eax, [ebp - 0x78]
push eax
call dword [edi + 0x4df824]
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x49c1da
mov edi, dword [ebp - 0x7c]
mov ebx, esi
sub ebx, dword [ebp - 0x8c]
mov eax, ebx
sub eax, dword [ebp + 0x6c]
sub eax, 2
push eax
push 0
push edi
call fcn.0049799c
mov eax, dword [ebp - 0x8c]
push dword [ebp + 0x6c]
neg eax
push dword [ebp - 0x80]
mov dword [ebp - 0x90], eax
sub eax, dword [ebp + 0x6c]
lea eax, [eax + esi - 2]
add eax, edi
mov byte [eax], 1
inc eax
push eax
call fcn.004979bb
lea edi, [ebx - 1]
push edi
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
push dword [ebp - 0x88]
push dword [ebp - 0x98]
call fcn.004a2faf
mov ebx, eax
add esp, 0x2c
test ebx, ebx
jne 0x49c1da
test edi, edi
je 0x49c173
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x84]
sub ecx, eax
mov edx, edi
mov bl, byte [ecx + eax]
xor byte [eax], bl
inc eax
dec edx
jne 0x49c16a
mov eax, dword [ebp - 0x94]
cmp dword [eax], esi
jae 0x49c182
push 6
pop ebx
jmp 0x49c1d8
mov ebx, dword [ebp - 0x9c]
push edi
push dword [ebp - 0x7c]
push ebx
call fcn.004979bb
push dword [ebp - 0x8c]
mov eax, dword [ebp - 0x90]
push dword [ebp - 0x88]
lea eax, [eax + esi - 1]
lea edi, [ebx + eax]
push edi
call fcn.004979bb
mov eax, dword [ebp - 0x8c]
mov ecx, esi
shl ecx, 3
sub ecx, dword [ebp + 0x74]
mov byte [edi + eax], 0xbc
add esp, 0x18
inc ecx
mov eax, 0xff
sar eax, cl
and byte [ebx], al
mov eax, dword [ebp - 0x94]
xor ebx, ebx
mov dword [eax], esi
push dword [ebp - 0x88]
call fcn.0040c932
push dword [ebp - 0x80]
call fcn.0040c932
push dword [ebp - 0x84]
call fcn.0040c932
push dword [ebp - 0x7c]
call fcn.0040c932
add esp, 0x10
mov eax, ebx
jmp 0x49c250
push dword [ebp - 0x7c]
call fcn.0040c932
pop ecx
cmp dword [ebp - 0x84], 0
je 0x49c225
push dword [ebp - 0x84]
call fcn.0040c932
pop ecx
cmp dword [ebp - 0x80], 0
je 0x49c234
push dword [ebp - 0x80]
call fcn.0040c932
pop ecx
cmp dword [ebp - 0x88], 0
je 0x49c249
push dword [ebp - 0x88]
call fcn.0040c932
pop ecx
push 0xd
jmp 0x49c24f
push 0x16
pop eax
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
pop edi
call fcn.0040c660
add ebp, 0x5c
leave
ret