Function at 0x4c4ef0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x84
call fcn.004dc890
mov eax, dword [0x1004c7cc]
test eax, eax
jne 0x4c4f19
push 0xd2
push 0x1003b028
push 0x11
push 9
call fcn.004c6b00
add esp, 0x10
mov ecx, dword [0x1004c7b8]
mov eax, dword [0x1004c7b4]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
mov ebx, dword [0x1004c7bc]
mov ecx, 5
mov esi, 0x1004c79c
lea edi, [esp + 0x20]
mov ebp, eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x1c], ebx
add eax, esi
cmp eax, 0x3ff
mov dword [0x1004c7b4], eax
jl 0x4c4f73
cdq
mov ecx, 0x3ff
idiv ecx
mov dword [0x1004c7b0], ecx
mov dword [0x1004c7b4], edx
jmp 0x4c4f8a
mov ecx, dword [0x1004c7b0]
cmp ecx, 0x3ff
jge 0x4c4f8a
cmp eax, ecx
jle 0x4c4f8a
mov dword [0x1004c7b0], eax
mov eax, esi
mov ecx, 0x14
cdq
idiv ecx
xor ecx, ecx
mov eax, 0x66666667
test edx, edx
setg cl
imul esi
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [0x1004c7cc]
add edx, ebx
add edx, ecx
test eax, eax
mov dword [0x1004c7bc], edx
jne 0x4c4fd5
push 0xf2
push 0x1003b028
push 0x11
push 0xa
call fcn.004c6b00
add esp, 0x10
test esi, esi
jle 0x4c50f2
mov ecx, esi
add esi, 0x13
mov eax, 0xcccccccd
mov ebx, dword [esp + 0x98]
mul esi
shr edx, 4
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jmp 0x4c5001
mov ecx, dword [esp + 0x10]
cmp ecx, 0x14
mov esi, ecx
jle 0x4c500d
mov esi, 0x14
lea ecx, [esp + 0x34]
push ecx
call fcn.004ce1c0
lea edx, [esp + 0x24]
push 0x14
lea eax, [esp + 0x3c]
push edx
push eax
call fcn.004cddb0
lea edi, [esi + ebp - 0x3ff]
add esp, 0x10
test edi, edi
jle 0x4c5061
mov ecx, esi
lea edx, [ebp + 0x1004c388]
sub ecx, edi
lea eax, [esp + 0x34]
push ecx
push edx
push eax
call fcn.004cddb0
push edi
lea ecx, [esp + 0x44]
push 0x1004c388
push ecx
call fcn.004cddb0
add esp, 0x18
jmp 0x4c5076
lea edx, [ebp + 0x1004c388]
push esi
lea eax, [esp + 0x38]
push edx
push eax
call fcn.004cddb0
add esp, 0xc
push esi
lea ecx, [esp + 0x38]
push ebx
push ecx
call fcn.004cddb0
lea edx, [esp + 0x24]
push 8
lea eax, [esp + 0x44]
push edx
push eax
call fcn.004cddb0
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x38]
push ecx
push edx
call fcn.004ce060
mov edi, dword [esp + 0x3c]
add esp, 0x20
inc edi
add ebx, esi
xor eax, eax
mov dword [esp + 0x1c], edi
test esi, esi
jle 0x4c50d8
mov cl, byte [esp + eax + 0x20]
mov dl, byte [ebp + 0x1004c388]
xor dl, cl
mov byte [ebp + 0x1004c388], dl
inc ebp
cmp ebp, 0x3ff
jl 0x4c50d3
xor ebp, ebp
inc eax
cmp eax, esi
jl 0x4c50b6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
sub ecx, 0x14
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x4c4ffd
mov ecx, 0x18
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
mov eax, dword [0x1004c7cc]
test eax, eax
jne 0x4c511e
push 0x11c
push 0x1003b028
push 0x11
push 9
call fcn.004c6b00
add esp, 0x10
xor eax, eax
mov dl, byte [esp + eax + 0x20]
mov bl, byte [eax + 0x1004c79c]
xor bl, dl
mov byte [eax + 0x1004c79c], bl
inc eax
cmp eax, 0x14
jb 0x4c5120
fld qword [0x1004c7c0]
fcomp qword [0x1003b020]
pop edi
pop esi
pop ebp
pop ebx
fnstsw ax
test ah, 1
je 0x4c5162
fld qword [0x1004c7c0]
fadd qword [esp + 0x90]
fstp qword [0x1004c7c0]
mov eax, dword [0x1004c7cc]
test eax, eax
jne 0x4c5181
push 0x127
push 0x1003b028
push 0x11
push 0xa
call fcn.004c6b00
add esp, 0x10
add esp, 0x84
ret