Function at 0x4cb4a6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], esi
mov eax, dword [esi + 0xc]
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], eax
call fcn.004ccc42
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov ecx, dword [ecx + 0x40]
add ecx, 0x24
call fcn.004d283f
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jae 0x4cb767
test eax, eax
je 0x4cb6de
mov edi, dword [esp + 0x14]
mov ecx, dword [edi + 0x44]
call fcn.004cdc4d
test eax, eax
jne 0x4cb76a
mov ecx, dword [edi + 0x40]
mov edx, dword [esp + 0x1c]
add ecx, 0x24
dec edx
call fcn.004d2824
mov ecx, dword [edi + 0x40]
add ecx, 0x20
call fcn.004d283f
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x20]
jbe 0x4cb53a
push 0xb
pop esi
jmp 0x4cb74b
lea ecx, [esp + 0x24]
mov edx, eax
push 0
push ecx
mov ecx, esi
call fcn.004ccc7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cb74b
mov edi, dword [esp + 0x24]
mov dword [esp + 0x2c], edi
mov eax, dword [edi + 0x40]
mov dword [esp + 0x10], eax
add eax, 4
mov ecx, eax
mov dword [esp + 0x34], eax
call fcn.004d283f
mov ecx, eax
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x4cb5b0
mov ecx, dword [edi + 0x44]
call fcn.004cdc4d
mov esi, eax
test esi, esi
jne 0x4cb73b
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x1c]
mov dword [eax], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [edi + 0x40]
mov ecx, dword [ecx + 0x40]
mov eax, dword [eax]
mov dword [ecx + 0x20], eax
mov dword [ebx], edi
xor edi, edi
jmp 0x4cb73b
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 0x14]
shr eax, 2
sub eax, 2
cmp ecx, eax
ja 0x4cb6d9
mov ecx, dword [edi + 0x44]
call fcn.004cdc4d
mov esi, eax
test esi, esi
jne 0x4cb73b
cmp dword [ebp + 0xc], eax
jbe 0x4cb65c
mov ecx, dword [esp + 0x10]
add ecx, 8
call fcn.004d283f
sub eax, dword [ebp + 0xc]
xor edx, edx
inc edx
mov ecx, edx
mov dword [esp + 0x14], edx
cmp dword [esp + 0x24], edx
jbe 0x4cb65c
mov edi, dword [esp + 0x24]
mov ebx, esi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x18], eax
mov esi, eax
lea ecx, [ecx + 2]
mov eax, dword [esp + 0x10]
lea ecx, [eax + ecx*4]
call fcn.004d283f
sub eax, dword [ebp + 0xc]
mov ecx, dword [esp + 0x18]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
cmovl ecx, eax
cmp eax, esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmovge ecx, ebx
mov ebx, ecx
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, edi
jb 0x4cb60a
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x1c], ebx
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
add ecx, 8
lea ecx, [ecx + esi*4]
call fcn.004d283f
cmp eax, dword [esp + 0x20]
ja 0x4cb6d9
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [esp + 0x24]
lea edx, [eax - 1]
cmp esi, edx
jae 0x4cb68d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + eax*4 + 4]
mov dword [ecx + esi*4 + 8], eax
mov ecx, dword [esp + 0x34]
call fcn.004d2824
mov eax, dword [ebp + 8]
mov ecx, dword [esp + 0x28]
mov edx, dword [eax]
call fcn.004cd793
mov ecx, dword [esp + 0x28]
neg eax
sbb eax, eax
inc eax
push eax
mov eax, dword [ebp + 8]
push ebx
mov edx, dword [eax]
call fcn.004ccc7c
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4cb73b
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x44]
call fcn.004cdc4d
mov esi, eax
test esi, esi
je 0x4cb73b
mov ecx, dword [ebx]
test ecx, ecx
je 0x4cb73b
jmp 0x4cb733
push 0xb
pop esi
jmp 0x4cb73b
mov ecx, esi
call fcn.004ccc42
mov ecx, dword [ebp + 8]
inc eax
mov dword [esp + 0x34], eax
xor edx, edx
mov dword [ecx], eax
mov eax, 0x40000000
movzx ecx, word [esi + 0x12]
div ecx
mov ecx, dword [esp + 0x34]
inc eax
cmp ecx, eax
jne 0x4cb70b
mov eax, dword [ebp + 8]
inc ecx
mov dword [eax], ecx
push 0
mov edx, ecx
mov ecx, esi
push ebx
call fcn.004ccc7c
pop ecx
pop ecx
test eax, eax
jne 0x4cb76a
mov ecx, dword [ebx]
mov ecx, dword [ecx + 0x44]
call fcn.004cdc4d
mov esi, eax
test esi, esi
je 0x4cb750
mov ecx, dword [ebx]
test ecx, ecx
je 0x4cb74b
mov ecx, dword [ecx + 0x44]
call fcn.004ce14b
test edi, edi
je 0x4cb747
mov ecx, dword [edi + 0x44]
call fcn.004ce14b
test esi, esi
je 0x4cb750
and dword [ebx], 0
jmp 0x4cb774
mov eax, dword [ebx]
xor edx, edx
inc edx
mov ecx, dword [eax + 0x44]
cmp word [ecx + 0x16], dx
jle 0x4cb771
test eax, eax
je 0x4cb767
call fcn.004ce14b
push 0xb
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax], 0
mov eax, esi
jmp 0x4cb76a