Function at 0x4a1ed8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xbd
push 0
push 0
dec ecx
jne 0x4a1ee0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004043b8
mov ecx, 0x169
lea eax, [ebp - 0x5b4]
mov edx, dword [0x4010ac]
call fcn.004049b8
xor eax, eax
push ebp
push 0x4a21f0
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
call fcn.00403f08
mov eax, dword [ebp - 8]
call fcn.004041c8
mov esi, eax
test esi, esi
jle 0x4a205b
mov ebx, 1
lea eax, [ebp - 0x5b8]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404428
mov eax, dword [ebp - 0x5b8]
mov edx, 0x4a2208
call fcn.00404314
jb 0x4a1f8f
lea eax, [ebp - 0x5bc]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404428
mov eax, dword [ebp - 0x5bc]
mov edx, 0x4a2214
call fcn.00404314
jbe 0x4a202f
lea eax, [ebp - 0x5c0]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404428
mov eax, dword [ebp - 0x5c0]
mov edx, 0x4a2220
call fcn.00404314
jb 0x4a1fdf
lea eax, [ebp - 0x5c4]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404428
mov eax, dword [ebp - 0x5c4]
mov edx, 0x4a222c
call fcn.00404314
jbe 0x4a202f
lea eax, [ebp - 0x5c8]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404428
mov eax, dword [ebp - 0x5c8]
mov edx, 0x4a2238
call fcn.00404314
jb 0x4a2053
lea eax, [ebp - 0x5cc]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404428
mov eax, dword [ebp - 0x5cc]
mov edx, 0x4a2244
call fcn.00404314
ja 0x4a2053
lea eax, [ebp - 0x5d0]
push eax
mov ecx, 1
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.00404428
mov edx, dword [ebp - 0x5d0]
lea eax, [ebp - 0xc]
call fcn.004041d0
inc ebx
dec esi
jne 0x4a1f3b
mov eax, dword [ebp - 0xc]
call fcn.004041c8
mov ebx, eax
sar ebx, 1
jns 0x4a206c
adc ebx, 0
lea edx, [ebp - 0x5d4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x318]
call fcn.0044a66c
push dword [ebp - 0x5d4]
lea ecx, [ebp - 0x5d8]
mov edx, 2
mov eax, ebx
call fcn.00408458
push dword [ebp - 0x5d8]
push dword [ebp - 0xc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404288
mov eax, dword [ebp - 0xc]
call fcn.004041c8
mov esi, eax
sar esi, 1
jns 0x4a20bf
adc esi, 0
dec esi
test esi, esi
jl 0x4a20e7
inc esi
xor ebx, ebx
lea edi, [ebp - 0x5b4]
push edi
mov edx, ebx
add edx, edx
inc edx
mov ecx, 2
mov eax, dword [ebp - 0xc]
call fcn.00404428
inc ebx
add edi, 4
dec esi
jne 0x4a20cd
xor ebx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004041c8
mov esi, eax
sar esi, 1
jns 0x4a20fa
adc esi, 0
dec esi
test esi, esi
jl 0x4a212b
inc esi
lea edi, [ebp - 0x5b4]
mov ecx, dword [edi]
lea eax, [ebp - 0x5dc]
mov edx, 0x4a2250
call fcn.00404214
mov eax, dword [ebp - 0x5dc]
call fcn.00408480
xor ebx, eax
add edi, 4
dec esi
jne 0x4a2106
lea ecx, [ebp - 0x10]
mov edx, 2
mov eax, ebx
call fcn.00408458
lea ecx, [ebp - 0x5e4]
mov edx, 2
mov eax, 0xaa
call fcn.00408458
push dword [ebp - 0x5e4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x5e8]
mov edx, 2
mov eax, 0xbb
call fcn.00408458
push dword [ebp - 0x5e8]
lea eax, [ebp - 0x5e0]
mov edx, 4
call fcn.00404288
mov edx, dword [ebp - 0x5e0]
mov eax, dword [ebp - 4]
call fcn.004a36bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a21f7
lea eax, [ebp - 0x5e8]
mov edx, 5
call fcn.00403f2c
lea eax, [ebp - 0x5d4]
call fcn.00403f08
lea eax, [ebp - 0x5d0]
mov edx, 7
call fcn.00403f2c
lea eax, [ebp - 0x5b4]
mov ecx, 0x169
mov edx, dword [0x4010ac]
call fcn.00404aa4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403f2c
ret