Function at 0x4a448c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe1c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1e4], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a4710
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x25], 1
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.004a43f8
mov edx, dword [ebp - 0x30]
mov eax, 0x4a472c
call fcn.00404170
mov ecx, eax
lea eax, [ebp - 0x30]
mov edx, 1
call fcn.004040cc
lea eax, [ebp - 0x1e4]
push eax
mov edx, dword [ebp - 0x30]
mov eax, 0x4a472c
call fcn.00404170
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebp - 0x30]
call fcn.0040408c
mov eax, dword [ebp - 0x1e4]
call fcn.00409004
mov edi, eax
mov edx, dword [ebp - 0x30]
mov eax, 0x4a472c
call fcn.00404170
mov ecx, eax
lea eax, [ebp - 0x30]
mov edx, 1
call fcn.004040cc
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x30]
call fcn.00403ca4
lea edx, [ebp - 0x1e4]
mov eax, dword [ebp - 0x2c]
call fcn.004089b8
lea eax, [ebp - 0x1e4]
mov edx, ebx
call fcn.00403e90
mov edx, dword [ebp - 0x1e4]
lea eax, [ebp - 0x1e0]
call fcn.00409968
mov edx, esi
mov eax, 0x4a4738
call fcn.00404170
test eax, eax
jle 0x4a462a
lea eax, [ebp - 0x88]
call fcn.004a2fcc
lea eax, [ebp - 0x1e0]
call fcn.00409878
mov ecx, eax
lea edx, [ebp - 0x1e0]
lea eax, [ebp - 0x88]
call fcn.004a39a8
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x10]
call fcn.004a30e8
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov ebx, edi
cmp ebx, 1
jl 0x4a460e
lea eax, [ebp - 0x88]
call fcn.004a2fcc
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x88]
mov ecx, 8
call fcn.004a39a8
lea edx, [ebp - 0x88]
lea eax, [ebp - 0x10]
call fcn.004a30e8
mov eax, dword [ebp - 8]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0xc], eax
dec ebx
test ebx, ebx
jne 0x4a45d1
lea edx, [ebp - 0x1e4]
lea eax, [ebp - 0x10]
call fcn.004a41c0
mov edx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x24]
call fcn.00403c60
mov edx, esi
mov eax, 0x4a4748
call fcn.00404170
test eax, eax
jle 0x4a46ea
lea eax, [ebp - 0xe0]
call fcn.004a3b5c
lea eax, [ebp - 0x1e0]
call fcn.00409878
mov ecx, eax
lea edx, [ebp - 0x1e0]
lea eax, [ebp - 0xe0]
call fcn.004a3b98
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x20]
call fcn.004a3c2c
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov ebx, edi
cmp ebx, 1
jl 0x4a46ce
lea eax, [ebp - 0xe0]
call fcn.004a3b5c
lea edx, [ebp - 0x20]
lea eax, [ebp - 0xe0]
mov cx, 8
call fcn.004a3b98
lea edx, [ebp - 0xe0]
lea eax, [ebp - 0x20]
call fcn.004a3c2c
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x1c], eax
dec ebx
test ebx, ebx
jne 0x4a4692
lea edx, [ebp - 0x1e4]
lea eax, [ebp - 0x20]
call fcn.004a41c0
mov edx, dword [ebp - 0x1e4]
mov eax, dword [ebp - 0x24]
call fcn.00403c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4717
lea eax, [ebp - 0x1e4]
call fcn.00403c0c
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00403c30
ret