Function at 0x4cce20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
test ebx, ebx
jne 0x4cce5f
pop edi
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 0x14
cmp dword [ebx + 0x38], 0
je 0x4cce48
cmp dword [ebx + 0x9c], 0
je 0x4cce74
push ebx
call fcn.004ccac0
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov eax, ebx
call fcn.004cc660
add esp, 0xc
test eax, eax
je 0x4ccea5
pop edi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 0x14
push esi
push 0x90
call fcn.004b57be
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4ccef2
push 0x4000
call fcn.004b57be
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov dword [esi + 0x48], ecx
xor ecx, ecx
mov dword [esi + 0x44], edx
mov edx, dword [ebp + 0x14]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x8c], edx
cmp eax, ecx
jne 0x4ccf0a
push esi
call fcn.004b336a
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x40], ecx
cmp eax, ecx
je 0x4ccf19
mov edx, dword [ebx + 0x54]
mov dword [eax], edx
cmp edi, ecx
je 0x4ccf4e
mov dword [edi], 6
mov eax, dword [ebx + 0x50]
and eax, 6
sub eax, 2
je 0x4ccf48
sub eax, 2
je 0x4ccf40
sub eax, 2
jne 0x4ccf4e
mov dword [edi], 1
jmp 0x4ccf4e
mov dword [edi], 2
jmp 0x4ccf4e
mov dword [edi], 9
mov eax, dword [ebx + 0x5c]
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], eax
mov ecx, dword [ebx + 0x54]
mov dword [esi + 0x84], ecx
mov edx, dword [ebx + 0x20]
mov dword [esi + 0x80], edx
lea edi, [esi + 0x60]
mov ecx, 8
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x2c]
mov edi, dword [ebp - 0x18]
xor esi, esi
mov dword [edi + 0x88], eax
mov dword [edi + 0x18], esi
cmp dword [ebx + 0x54], 8
jne 0x4ccfc3
cmp dword [ebp + 0x14], esi
jne 0x4ccfc3
push 0x38
push str.1.2.3
lea eax, [edi + 4]
push 0xfffffffffffffff1
push eax
mov dword [edi + 0x24], esi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov dword [eax], esi
mov dword [edi + 8], esi
call fcn.004cd490
mov dword [ebp - 0x18], eax
cmp eax, esi
jne 0x4cd0c5
mov dword [edi + 0x40], 1
mov ecx, dword [ebx + 0x60]
mov dword [edi + 0x58], ecx
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebp - 0x20]
mov dword [edi + 0x5c], edx
mov eax, dword [ebx + 0x98]
lea edx, [eax + ecx + 0x1e]
mov dword [edi + 0x3c], edx
mov dword [edi + 8], esi
mov dword [ebx + 0x9c], edi
cmp dword [ebp - 0x14], esi
je 0x4cd0b0
call fcn.004cd110
mov dword [ebx + 0xb0], eax
lea esi, [ebx + 0xa4]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov edx, esi
call fcn.004cbe80
mov eax, dword [ebx + 0x9c]
mov ecx, dword [eax + 0x88]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebx + 0x20]
mov eax, dword [ebx + 0x1c]
push 0
push ecx
mov ecx, dword [ebx + 0x10]
push edx
push eax
call ecx
add esp, 0x10
test eax, eax
jne 0x4ccef2
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x1c]
push 0xc
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
call edx
add esp, 0x10
cmp eax, 0xc
jb 0x4ccef2
mov dword [ebp - 0x14], 0
mov edi, edi
mov eax, dword [ebx + 0xac]
mov edi, dword [ebp - 0x14]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea edi, [ebp + edi - 0x10]
shr ecx, 8
xor byte [edi], cl
movsx eax, byte [edi]
mov edi, dword [ebx + 0xb0]
call fcn.004cbe40
mov eax, dword [ebp - 0x14]
inc eax
cmp eax, 0xc
mov dword [ebp - 0x14], eax
jl 0x4cd060
mov eax, dword [ebx + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0xa0], 1
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 0x14
push edi
call fcn.004b336a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
add esp, 4
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004b3057
mov esp, ebp
pop ebp
ret 0x14