Function at 0x4474a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x608798]
push ebx
cdq
and edx, 7
push ebp
add eax, edx
push esi
mov esi, eax
mov eax, dword [0x60879c]
cdq
and edx, 7
push edi
add eax, edx
sar esi, 3
sar eax, 3
imul esi, eax
mov eax, esi
mov dword [esp + 0x10], esi
shl eax, 4
push eax
call fcn.004987e0
mov ebp, dword [0x608798]
mov dword [esp + 0x18], eax
mov ecx, dword [0x608764]
mov eax, ebp
mov edi, dword [0x60879c]
mov dword [esp + 0x38], ecx
cdq
and edx, 7
add esp, 4
add eax, edx
xor ebx, ebx
sar eax, 3
xor ecx, ecx
mov dword [esp + 0x2c], edi
test eax, eax
mov dword [esp + 0x30], ebp
mov dword [esp + 0x18], ecx
jle 0x4475c3
mov eax, edi
xor esi, esi
cdq
and edx, 7
add eax, edx
sar eax, 3
test eax, eax
jle 0x4475a7
mov eax, dword [esp + 0x14]
mov edx, ebx
shl edx, 4
lea ebp, [ecx*8]
lea ecx, [edx + eax + 8]
lea edx, [esi*8]
mov dword [ecx - 8], edx
mov dword [ecx - 4], ebp
mov eax, dword [0x6087b0]
add ecx, 0x10
mov dl, al
sub al, 0x2c
add dl, 4
and eax, 0xff
and edx, 0xff
mov eax, dword [eax + 0x608a20]
mov dword [0x6087b0], edx
mov edi, dword [edx + 0x608a20]
xor edi, eax
and eax, 0x1f
add eax, 0x20
mov dword [edx + 0x608a20], edi
mov dword [ecx - 0x10], eax
mov edi, dword [0x60879c]
mov eax, edi
inc ebx
cdq
and edx, 7
inc esi
add eax, edx
sar eax, 3
cmp esi, eax
jl 0x44753c
mov ebp, dword [0x608798]
mov ecx, dword [esp + 0x18]
mov eax, ebp
inc ecx
cdq
and edx, 7
mov dword [esp + 0x18], ecx
add eax, edx
sar eax, 3
cmp ecx, eax
jl 0x447517
mov esi, dword [esp + 0x10]
call fcn.00460430
mov dword [esp + 0x28], 0
call fcn.0048f1d0
mov eax, dword [0x60879c]
mov ecx, dword [esp + 0x2c]
cmp eax, ecx
jne 0x44787c
mov ecx, dword [esp + 0x30]
mov eax, dword [0x608798]
cmp eax, ecx
jne 0x44787c
mov edx, dword [esp + 0x34]
mov eax, dword [0x608764]
cmp eax, edx
jne 0x44787c
push 0
call fcn.00461850
add esp, 4
test al, al
je 0x447838
xor edi, edi
test esi, esi
mov dword [esp + 0x18], edi
jle 0x447824
mov eax, dword [esp + 0x14]
mov ecx, dword [0x60879c]
lea ebx, [eax + 8]
mov dword [esp + 0x24], ebx
jmp 0x44763f
mov edi, dword [esp + 0x18]
mov eax, dword [ebx]
test eax, eax
jbe 0x44764e
dec eax
mov dword [ebx], eax
mov ecx, dword [0x60879c]
mov eax, dword [ebx]
cmp eax, 0x20
jae 0x447665
cmp eax, 1
jbe 0x447665
add eax, 0xfffffffe
mov dword [ebx], eax
mov ecx, dword [0x60879c]
mov eax, ecx
cdq
and edx, 7
add eax, edx
mov edx, dword [esp + 0x10]
sar eax, 3
sub edx, eax
cmp edi, edx
jge 0x4476db
add edi, eax
mov eax, dword [esp + 0x14]
shl edi, 4
mov edx, dword [edi + eax + 8]
lea eax, [edi + eax + 8]
test edx, edx
jne 0x4476db
mov ecx, dword [ebx]
inc ecx
mov dword [eax], ecx
mov dword [ebx], 0
mov eax, dword [ebx - 4]
mov ecx, dword [0x60879c]
imul eax, ecx
mov esi, dword [ebx - 8]
mov edx, dword [0x55ca44]
add eax, esi
mov esi, 8
add eax, edx
lea edx, [eax + ecx*8]
mov ecx, dword [eax]
mov edi, eax
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
xor ecx, ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov ecx, dword [0x60879c]
add eax, ecx
add edx, ecx
dec esi
jne 0x4476bb
mov edx, dword [ebx - 4]
mov edi, dword [0x55ca44]
mov eax, edx
imul edx, dword [0x6087a0]
imul eax, ecx
mov esi, dword [ebx - 8]
mov ecx, dword [0x608760]
add eax, edi
add eax, esi
shl esi, cl
mov ecx, dword [0x6087a4]
add ecx, esi
add edx, ecx
mov ecx, dword [ebx]
test ecx, ecx
mov ebp, edx
jne 0x447744
mov edx, 8
mov ecx, dword [0x608764]
xor eax, eax
mov esi, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x6087a0]
add ebp, ecx
dec edx
jne 0x447716
mov ecx, dword [0x60879c]
jmp 0x447806
cmp ecx, 0x20
jle 0x44774e
mov ecx, 0x20
cmp dword [0x608764], 0x10
jne 0x4477cb
shl ecx, 8
mov esi, ecx
mov dword [esp + 0x20], 8
mov ecx, ebp
mov dword [esp + 0x1c], 4
xor edx, edx
xor edi, edi
mov dl, byte [eax]
xor ebx, ebx
add edx, esi
add ecx, 4
add eax, 2
mov di, word [edx*2 + 0x5eb860]
xor edx, edx
mov dl, byte [eax - 1]
add edx, esi
mov bx, word [edx*2 + 0x5eb860]
mov edx, dword [esp + 0x1c]
shl ebx, 0x10
add edi, ebx
dec edx
mov dword [ecx - 4], edi
mov dword [esp + 0x1c], edx
jne 0x44776e
mov edi, dword [0x6087a0]
mov edx, dword [esp + 0x20]
mov ecx, dword [0x60879c]
add ebp, edi
dec edx
lea eax, [eax + ecx - 8]
mov dword [esp + 0x20], edx
jne 0x447764
mov ebx, dword [esp + 0x24]
jmp 0x447806
mov dword [esp + 0x20], 8
mov ecx, dword [0x608764]
mov esi, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [0x6087a0]
mov ecx, dword [0x60879c]
add ebp, edi
add eax, ecx
dec edx
mov dword [esp + 0x20], edx
jne 0x4477d3
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
add ebx, 0x10
cmp eax, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebx
jl 0x44763b
mov esi, edx
push 0
call fcn.004618f0
add esp, 4
push 0
call fcn.00461970
add esp, 4
call fcn.0048eaf0
cmp dword [0x5b0760], eax
jne 0x447857
call fcn.0048f1d0
call fcn.0048eaf0
cmp dword [0x5b0760], eax
je 0x447845
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 0x40
mov dword [esp + 0x28], eax
jge 0x44787c
call fcn.0048f1d0
mov eax, dword [esp + 0x2c]
mov ecx, dword [0x60879c]
cmp ecx, eax
je 0x4475e6
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004987f0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret