Function at 0x404c75
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x2b8
push esi
lea eax, [ebp - 0x2b0]
push edi
push eax
call fcn.00425470
xor eax, eax
push 0x60
push eax
lea ecx, [ebp - 0x90]
push ecx
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
call fcn.0042adc0
xor eax, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x10]
mov esi, eax
movzx eax, byte [eax + 0x30]
add eax, 0xfffffffe
add esp, 0x10
mov ecx, 8
lea edi, [ebp - 0xb0]
rep movsd dword es:[edi], dword [esi]
cmp eax, 5
ja case.0x404c4a.2
jmp dword [eax*4 + 0x404e04]
mov dword [ebp - 4], 0x444f88
jmp 0x404c7c
mov dword [ebp - 4], 0x444fc8
jmp 0x404c7c
mov dword [ebp - 4], 0x445008
jmp 0x404c7c
mov dword [ebp - 4], 0x445048
jmp 0x404c7c
mov dword [ebp - 4], 0x444f48
lea edx, [ebp - 0xb0]
push edx
call fcn.0042552e
mov esi, dword [ebx + 0x10]
mov al, byte [esi + 0x31]
add esp, 4
test al, al
je 0x404cc9
movzx ecx, al
mov eax, 8
sub eax, ecx
je 0x404cc9
dec eax
cmp dword [ebx + 0xc], 0
je 0x404cc5
mov edi, dword [ebx + 8]
movzx edx, byte [esi + 0x31]
mov cl, byte [edi]
mov byte [edx + esi + 0x20], cl
mov ecx, 1
add byte [esi + 0x31], cl
add edi, ecx
sub dword [ebx + 0xc], ecx
mov dword [ebx + 8], edi
test eax, eax
jne 0x404ca1
cmp byte [esi + 0x31], 8
jne 0x404d0e
mov edx, dword [esi + 0x20]
xor dword [esi + 0x28], edx
mov eax, dword [esi + 0x24]
xor dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x2c]
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 4]
push eax
mov dword [ebp - 0x2c], edx
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00427377
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov byte [esi + 0x31], 0
mov edi, dword [ebx + 0xc]
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
shr edi, 3
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
test edi, edi
je 0x404d5e
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
xor dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 4]
xor dword [ebp - 0x2c], edx
add eax, 8
mov dword [ebx + 8], eax
lea eax, [ebp - 0xb0]
push eax
push ecx
lea edx, [ebp - 0x30]
push edx
call fcn.00427377
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
dec edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
jne 0x404d24
mov eax, dword [ebx + 0xc]
and eax, 7
mov dword [ebp - 0xc], eax
jbe 0x404d94
cmp byte [esi + 0x31], 0
jne 0x404d94
xor cl, cl
mov byte [esi + 0x31], al
test eax, eax
je 0x404d94
xor eax, eax
lea ebx, [ebx]
mov edx, dword [ebx + 8]
mov dl, byte [eax + edx]
inc cl
mov byte [eax + esi + 0x20], dl
movzx eax, cl
cmp eax, dword [ebp - 0xc]
jb 0x404d80
mov cl, byte [esi + 0x31]
mov edi, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
test cl, cl
je 0x404de9
xor eax, eax
test cl, cl
je 0x404dc0
movzx edi, cl
mov cl, byte [esi + eax + 0x20]
xor byte [ebp + eax - 0x10], cl
inc eax
cmp eax, edi
jb 0x404db0
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0x2c], edx
push ecx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], edi
call fcn.00427377
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x2b0]
push ecx
call fcn.0042547b
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret