Function at 0x4cb8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
xor edi, edi
mov dword [ebp - 4], ebx
cmp dword [0x651718], edi
je 0x4cb90f
push dword [esi + 4]
push dword [esi]
call fcn.004cd100
mov edi, eax
test edi, edi
jne 0x4cba0a
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x24], xmm0
mov edx, dword [ebp - 0x24]
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x14], xmm0
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 0xc]
ja 0x4cba08
jb 0x4cb93a
cmp edx, dword [esi + 8]
ja 0x4cba08
mov eax, edx
or eax, dword [ebp - 0x20]
jne 0x4cb94f
mov eax, dword [ebx + 0x8bc]
or eax, dword [ebx + 0x8c0]
je 0x4cb966
mov ecx, dword [ebx + 0x8c0]
mov eax, dword [ebx + 0x8bc]
cmp dword [ebp - 0x20], ecx
jb 0x4cb988
ja 0x4cb966
cmp edx, eax
jbe 0x4cb988
mov ecx, ebx
call fcn.004c9350
mov edi, eax
test edi, edi
jne 0x4cb978
mov edx, dword [ebp - 0x24]
jmp 0x4cb94f
cmp edi, 0x4a
jne 0x4cba08
mov edx, dword [ebp - 0x24]
xor edi, edi
jmp 0x4cb94f
mov eax, dword [ebx + 0x8b8]
cmp dword [ebp - 0x20], eax
mov esi, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x8bc]
ja 0x4cbaad
jb 0x4cb9b1
cmp edx, dword [ebx + 0x8b4]
jae 0x4cbaad
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebp - 4]
cmp ecx, eax
jb 0x4cb9d3
ja 0x4cb9cb
cmp dword [ebx + 0x8b4], esi
jbe 0x4cb9d3
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
jmp 0x4cb9e5
mov esi, dword [ebx + 0x8b4]
add esi, 0xffffffff
adc ecx, 0xffffffff
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
mov ecx, dword [ebx + 0x7dc]
mov dword [ebp - 0x1c], esi
sub esi, edx
inc esi
test ecx, ecx
je 0x4cba13
lea eax, [ebp - 0x24]
push eax
call fcn.004cb8e0
mov edi, eax
test edi, edi
je 0x4cba90
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x64d640]
test al, 0xe
jne 0x4cba7c
test eax, 0x40800
jne 0x4cba7c
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], esi
test esi, esi
je 0x4cba93
mov ebx, esi
nop
mov eax, ecx
mov dword [ecx], 0x139fc234
cdq
mov dword [ecx + 8], eax
xor eax, 0x6732dfca
mov dword [ecx + 0xc], edx
xor edx, 0xacfd3276
mov dword [ecx + 0x10], eax
xor eax, 0x6732dfca
mov dword [ecx + 0x14], edx
xor edx, 0xacfd3276
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], 0x6732dfca
mov dword [ecx + 0x24], 0xacfd3276
add ecx, dword [ebp - 0x14]
sub ebx, 1
jne 0x4cba30
mov ebx, dword [ebp - 4]
jmp 0x4cba90
mov eax, dword [ebp - 0x14]
imul eax, esi
push eax
push 0
push dword [ebp - 0x10]
call fcn.005c9220
add esp, 0xc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
imul eax, esi
add dword [ebp - 0x10], eax
add edx, esi
mov esi, dword [ebp + 8]
adc dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edx
jmp 0x4cb923
mov ebx, dword [ebp + 8]
cmp ecx, dword [ebx + 0xc]
mov ebx, dword [ebp - 4]
jb 0x4cbacf
ja 0x4cbabe
cmp eax, esi
jbe 0x4cbacf
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
jmp 0x4cbada
mov dword [ebp - 0x1c], eax
mov esi, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ecx
sub esi, edx
sub edx, dword [ebx + 0x8b4]
imul edx, dword [ebp - 0x14]
inc esi
mov eax, esi
imul eax, dword [ebp - 0x14]
add edx, dword [ebx + 0x900]
push eax
push edx
push dword [ebp - 0x10]
call fcn.005c9900
mov edx, dword [ebp - 0x24]
mov eax, esi
imul eax, dword [ebp - 0x14]
add esp, 0xc
add dword [ebp - 0x10], eax
add edx, esi
mov esi, dword [ebp + 8]
adc dword [ebp - 0x20], 0
mov dword [ebp - 0x24], edx
jmp 0x4cb923