Function at 0x49c262
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xfc
mov eax, dword [0x4d4430]
xor eax, ebp
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x68]
push ebx
mov ebx, dword [ebp + 0x74]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x7c]
and dword [eax], 0
push ebx
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa0], eax
call fcn.00498691
pop ecx
test eax, eax
jne 0x49c574
imul ebx, ebx, 0x68
test byte [ebp + 0x78], 7
push esi
mov esi, dword [ebp + 0x78]
setne al
shr esi, 3
push edi
mov edi, dword [ebx + 0x4df7d0]
mov dword [ebp - 0x90], edi
add esi, eax
mov eax, dword [ebp + 0x70]
cmp eax, esi
ja 0x49c56f
lea eax, [edi + eax + 2]
cmp esi, eax
jb 0x49c56f
mov edi, dword [ebp + 0x6c]
cmp edi, esi
jne 0x49c56f
push esi
call fcn.0040ca29
push esi
mov dword [ebp - 0x8c], eax
call fcn.0040ca29
push esi
mov dword [ebp - 0x80], eax
call fcn.0040ca29
push esi
mov dword [ebp - 0x98], eax
call fcn.0040ca29
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x8c], ecx
je 0x49c532
cmp dword [ebp - 0x80], ecx
je 0x49c526
cmp dword [ebp - 0x98], ecx
je 0x49c526
cmp eax, ecx
je 0x49c526
mov eax, dword [ebp - 0x84]
cmp byte [eax + edi - 1], 0xbc
je 0x49c360
push 7
pop esi
jmp 0x49c4f6
mov edi, esi
sub edi, dword [ebp - 0x90]
lea eax, [edi - 1]
push eax
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.004979bb
mov eax, dword [ebp - 0x84]
sub eax, dword [ebp - 0x90]
push dword [ebp - 0x90]
lea eax, [eax + esi - 1]
push eax
push dword [ebp - 0x88]
call fcn.004979bb
mov ecx, esi
shl ecx, 3
sub ecx, dword [ebp + 0x78]
add esp, 0x18
inc ecx
mov dword [ebp - 0x94], 0xff
sar dword [ebp - 0x94], cl
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x84]
not eax
test byte [ecx], al
jne 0x49c358
lea eax, [edi - 1]
push eax
push dword [ebp - 0x80]
push dword [ebp - 0x90]
push dword [ebp - 0x88]
push dword [ebp - 0xa4]
call fcn.004a2faf
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x49c4f6
mov eax, dword [ebp - 0x8c]
lea edx, [edi - 1]
test edx, edx
je 0x49c420
mov ecx, dword [ebp - 0x80]
mov esi, eax
sub ecx, eax
mov dword [ebp - 0x84], edx
mov dl, byte [ecx + esi]
xor byte [esi], dl
inc esi
dec dword [ebp - 0x84]
jne 0x49c412
mov cl, byte [ebp - 0x94]
and byte [eax], cl
sub edi, dword [ebp + 0x70]
xor ecx, ecx
add edi, 0xfffffffe
je 0x49c441
cmp byte [ecx + eax], 0
jne 0x49c358
inc ecx
cmp ecx, edi
jb 0x49c432
lea edi, [ecx + eax]
cmp byte [edi], 1
jne 0x49c358
lea eax, [ebp - 0x7c]
push eax
call dword [ebx + 0x4df81c]
mov esi, eax
pop ecx
test esi, esi
jne 0x49c4f6
push 8
push dword [ebp - 0x80]
call fcn.00497982
push 8
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call dword [ebx + 0x4df820]
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x49c4f6
push dword [ebp + 0x64]
lea eax, [ebp - 0x7c]
push dword [ebp - 0x9c]
push eax
call dword [ebx + 0x4df820]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49c4f6
push dword [ebp + 0x70]
inc edi
lea eax, [ebp - 0x7c]
push edi
push eax
call dword [ebx + 0x4df820]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49c4f6
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call dword [ebx + 0x4df824]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x49c4f6
push dword [ebp - 0x90]
push dword [ebp - 0x88]
push dword [ebp - 0x80]
call fcn.00497a01
add esp, 0xc
test eax, eax
jne 0x49c4f4
mov eax, dword [ebp - 0xa0]
mov dword [eax], 1
xor esi, esi
push dword [ebp - 0x88]
call fcn.0040c932
push dword [ebp - 0x98]
call fcn.0040c932
push dword [ebp - 0x80]
call fcn.0040c932
push dword [ebp - 0x8c]
call fcn.0040c932
add esp, 0x10
mov eax, esi
jmp 0x49c572
push dword [ebp - 0x8c]
call fcn.0040c932
pop ecx
cmp dword [ebp - 0x80], 0
je 0x49c541
push dword [ebp - 0x80]
call fcn.0040c932
pop ecx
cmp dword [ebp - 0x98], 0
je 0x49c556
push dword [ebp - 0x98]
call fcn.0040c932
pop ecx
cmp dword [ebp - 0x88], 0
je 0x49c56b
push dword [ebp - 0x88]
call fcn.0040c932
pop ecx
push 0xd
jmp 0x49c571
push 0x16
pop eax
pop edi
pop esi
mov ecx, dword [ebp + 0x54]
xor ecx, ebp
pop ebx
call fcn.0040c660
add ebp, 0x58
leave
ret