Function at 0x4a1294
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov esi, eax
mov eax, ebx
call fcn.0041bef8
sub esi, eax
lea eax, [ebp - 0x16]
xor ecx, ecx
mov edx, 0xa
call fcn.00402cb0
mov eax, esi
dec eax
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
inc eax
call fcn.0040274c
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
inc eax
call fcn.0040274c
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
xor ecx, ecx
call fcn.00402cb0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 8]
inc edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
xor ecx, ecx
call fcn.00402cb0
xor ecx, ecx
push ebp
push 0x4a147a
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x1c]
mov eax, ebx
call fcn.0041c124
mov eax, dword [ebp - 4]
call fcn.004a0ee8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov edx, eax
inc edx
mov eax, dword [ebp - 4]
add eax, 0x18
call fcn.0040278c
mov eax, dword [ebp - 4]
mov dl, 8
sub dl, byte [eax + 0x14]
mov byte [ebp - 0x16], dl
mov byte [ebp - 0x15], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
jl 0x4a138f
inc eax
xor edx, edx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x18]
mov cl, byte [ecx + edx]
xor byte [ebp - 0x15], cl
inc edx
dec eax
jne 0x4a137f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
inc eax
mov edx, eax
and edx, 0x8000ffff
jns 0x4a13a8
dec edx
or edx, 0xffff0000
inc edx
mov word [ebp - 0x12], dx
test eax, eax
jns 0x4a13b5
add eax, 0xffff
sar eax, 0x10
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add eax, 0xa
inc eax
mov edx, eax
and edx, 0x8000ffff
jns 0x4a13d8
dec edx
or edx, 0xffff0000
inc edx
mov word [ebp - 0xe], dx
test eax, eax
jns 0x4a13e5
add eax, 0xffff
sar eax, 0x10
mov word [ebp - 0x10], ax
mov ax, word [ebp - 0x12]
xchg al, ah
mov word [ebp - 0x12], ax
mov ax, word [ebp - 0x14]
xchg al, ah
mov word [ebp - 0x14], ax
mov ax, word [ebp - 0xe]
xchg al, ah
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0x10]
xchg al, ah
mov word [ebp - 0x10], ax
lea edx, [ebp - 0x16]
mov ecx, 0xa
mov eax, dword [ebp - 8]
call fcn.0041c15c
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
inc ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 8]
call fcn.0041c15c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
inc eax
add eax, 0xa
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1481
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
call fcn.0040276c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
call fcn.0040276c
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x1c], edx
ret