Function at 0x49f3d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004051dc
mov eax, dword [ebp - 8]
call fcn.004051dc
xor eax, eax
push ebp
push 0x49f75e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404d5c
cmp bl, 4
jne 0x49f505
mov eax, dword [ebp - 4]
test eax, eax
je 0x49f42d
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x20
jge 0x49f436
mov al, 1
jmp 0x49f448
mov eax, dword [ebp - 8]
test eax, eax
je 0x49f442
sub eax, 4
mov eax, dword [eax]
cmp eax, 0x20
setl al
test al, al
jne 0x49f72e
mov edi, 1
mov edx, 0x49f770
lea eax, [ebp - 0x2c]
call fcn.0040355c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
movzx edx, byte [edx + edi - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov cl, 2
call fcn.0040352c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00404fc0
mov eax, dword [ebp - 0x28]
call fcn.00409e64
mov ebx, eax
mov edx, 0x49f770
lea eax, [ebp - 0x2c]
call fcn.0040355c
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx + edi - 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov cl, 2
call fcn.0040352c
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x34]
call fcn.00404fc0
mov eax, dword [ebp - 0x34]
call fcn.00409e64
mov byte [ebp - 0x21], al
movzx eax, byte [ebp - 0x21]
xor al, bl
movzx eax, al
lea ecx, [ebp - 0x38]
mov edx, 1
call fcn.00409e3c
mov edx, dword [ebp - 0x38]
mov eax, esi
call fcn.00405028
inc edi
cmp edi, 0x21
jne 0x49f455
jmp 0x49f72e
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49d1e0]
call fcn.00422e24
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x49f727
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bl
cmp eax, 5
ja case.0x49f530.4
jmp dword [eax*4 + 0x49f537]
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49e70c]
call fcn.004983a8
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49f5a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x49d1e0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00497ed8
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x49f530.4
mov eax, dword [ebp - 0xc]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49acb4]
call fcn.004983a8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x49f5fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x49d1e0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
call fcn.00497ed8
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x49f530.4
mov eax, dword [ebp - 0x10]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49a328]
call fcn.0049aab4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x49f656
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x49d1e0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.00497ed8
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x49f530.4
mov eax, dword [ebp - 0x14]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x49a440]
call fcn.0049aab4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x49f6b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x49d1e0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00497ed8
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x49f530.4
mov eax, dword [ebp - 0x18]
call fcn.00403d58
ret
xor ecx, ecx
mov dl, 1
mov eax, dword [0x499b78]
call fcn.004983a8
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x49f70a
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [0x49d1e0]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
call fcn.00497ed8
mov ecx, esi
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x20]
mov ebx, dword [eax]
call dword [ebx + 0x54]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push case.0x49f530.4
mov eax, dword [ebp - 0x20]
call fcn.00403d58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f72e
mov eax, dword [ebp - 0x1c]
call fcn.00403d58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49f765
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404d80
lea eax, [ebp - 0x28]
call fcn.00404d5c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404d80
ret