Function at 0x4cd010
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
mov eax, dword [0x806d00]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
push ebx
mov ebx, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
test ebx, ebx
jne 0x4cd052
pop edi
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004da69a
add esp, 0x28
ret
mov edx, dword [ebx + 0x60]
or edx, dword [ebx + 0x64]
je 0x4cd03c
cmp dword [ebx + 0xe0], 0
je 0x4cd06c
push ebx
call fcn.004cca00
add esp, 4
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x10]
push edx
mov eax, ebx
call fcn.004cc450
add esp, 0xc
test eax, eax
je 0x4cd09f
pop edi
mov eax, 0xffffff99
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004da69a
add esp, 0x28
ret
push ebp
push esi
mov esi, dword [0x6ab23c]
push 0xd0
call esi
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4cd0f9
push 0x4000
call esi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [ebp + 0x50], ecx
mov ecx, dword [esp + 0x20]
mov dword [ebp + 0x58], ecx
xor ecx, ecx
mov dword [ebp + 0x54], edx
mov edx, dword [esp + 0x4c]
add esp, 4
mov dword [ebp], eax
mov dword [ebp + 0x60], ecx
mov dword [ebp + 0x64], ecx
mov dword [ebp + 0xc8], edx
cmp eax, ecx
jne 0x4cd111
push ebp
call dword [0x6ab248]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004da69a
add esp, 0x28
ret
mov eax, dword [esp + 0x18]
mov dword [ebp + 0x48], ecx
cmp eax, ecx
je 0x4cd124
mov esi, dword [ebx + 0x8c]
mov dword [eax], esi
cmp edi, ecx
je 0x4cd15c
mov dword [edi], 6
mov eax, dword [ebx + 0x88]
and eax, 6
sub eax, 2
je 0x4cd156
sub eax, 2
je 0x4cd14e
sub eax, 2
jne 0x4cd15c
mov dword [edi], 1
jmp 0x4cd15c
mov dword [edi], 2
jmp 0x4cd15c
mov dword [edi], 9
mov eax, dword [ebx + 0x94]
mov dword [ebp + 0x70], ecx
mov dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], ecx
mov dword [ebp + 0x74], eax
mov ecx, dword [ebx + 0x8c]
mov dword [ebp + 0xbc], ecx
mov eax, dword [ebx + 0x34]
mov dword [ebp + 0xb8], eax
lea edi, [ebp + 0x88]
mov ecx, 0xc
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x48]
mov dword [ebp + 0xc0], ecx
mov eax, dword [ebx + 0x4c]
xor esi, esi
mov dword [ebp + 0xc4], eax
mov dword [ebp + 0x18], esi
mov eax, dword [ebx + 0x8c]
cmp eax, 0xc
jne 0x4cd300
cmp edx, esi
jne 0x4cd300
mov dword [ebp + 0xc8], 1
mov ecx, dword [ebx + 0x98]
mov dword [ebp + 0x78], ecx
mov edx, dword [ebx + 0x9c]
mov dword [ebp + 0x7c], edx
mov eax, dword [ebx + 0xa0]
mov edx, dword [esp + 0x10]
mov dword [ebp + 0x80], eax
mov ecx, dword [ebx + 0xa4]
mov dword [ebp + 0x84], ecx
mov ecx, dword [ebx + 0xdc]
xor eax, eax
add edx, dword [ebx + 0xd8]
mov dword [ebp + 8], esi
adc ecx, eax
add edx, 0x1e
adc ecx, esi
mov dword [ebp + 0x40], edx
mov dword [ebp + 0x44], ecx
mov dword [ebx + 0xe0], ebp
mov ebp, dword [esp + 0x14]
mov dword [ebx + 0xe4], esi
cmp ebp, esi
je 0x4cd2eb
call fcn.004da5f8
mov dword [ebx + 0xfc], eax
lea esi, [ebx + 0xf0]
mov edi, eax
mov edx, esi
mov eax, ebp
call fcn.004cd370
mov eax, dword [ebx + 0xe0]
mov edx, dword [eax + 0xc0]
add edx, dword [eax + 0x40]
mov ecx, dword [eax + 0xc4]
adc ecx, dword [eax + 0x44]
push 0
push ecx
push edx
mov edx, dword [ebx + 0x34]
push edx
push ebx
call fcn.004c70b0
add esp, 0x14
test eax, eax
jne 0x4cd0f9
mov ecx, dword [ebx + 0x34]
mov edx, dword [ebx + 0x1c]
push 0xc
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, 0xc
jb 0x4cd0f9
xor ebp, ebp
lea ecx, [ecx]
mov eax, dword [ebx + 0xf8]
mov edi, dword [ebx + 0xfc]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [esp + ebp + 0x28], cl
movsx eax, byte [esp + ebp + 0x28]
call fcn.004cb5c0
inc ebp
cmp ebp, 0xc
jl 0x4cd2a0
mov eax, dword [ebx + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov dword [ebx + 0xe4], 1
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.004da69a
add esp, 0x28
ret
cmp eax, 8
jne 0x4cd1ca
cmp edx, esi
jne 0x4cd1ca
push 0x38
push str.1.2.5
lea eax, [ebp + 4]
push 0xfffffffffffffff1
push eax
mov dword [ebp + 0x24], esi
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
mov dword [eax], esi
mov dword [ebp + 8], esi
call fcn.004da60a
mov edi, eax
add esp, 0x10
cmp edi, esi
jne 0x4cd346
mov dword [ebp + 0x48], 8
jmp 0x4cd1ca
push ebp
call dword [0x6ab248]
mov ecx, dword [esp + 0x38]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
xor ecx, esp
call fcn.004da69a
add esp, 0x28
ret