Function at 0x419250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
mov eax, dword [0x4ce028]
xor eax, esp
mov dword [esp + 0x228], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
xor eax, eax
push 0x40
mov esi, ecx
push eax
lea ecx, [esp + 0x90]
push ecx
mov edi, edx
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
call sub.MSVCR90.dll_memset
push 0x40
lea edx, [esp + 0x38]
push 0
push edx
call sub.MSVCR90.dll_memset
mov ebx, dword [esi + 8]
mov esi, dword [esi + 4]
add esp, 0x18
mov dword [esp + 0x68], 0
cmp ebx, 0x40
jbe 0x419304
lea eax, [esp + 0x6c]
call fcn.0041b7f0
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x6c]
lea ecx, [esp + 0x70]
push ecx
call fcn.0041b830
push esi
lea edx, [esp + 0x70]
push edx
mov eax, ebx
call fcn.0041b830
jmp 0x419313
push ebx
lea eax, [esp + 0x2c]
push esi
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
add dword [esp + 0x68], ebx
lea ecx, [esp + 0x28]
push ecx
lea ebx, [esp + 0x16c]
call fcn.00418950
mov edx, dword [edi + 4]
mov ebx, dword [edi + 8]
push edx
lea eax, [esp + 0x16c]
call fcn.0041ba10
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx + 8]
mov dword [esp + 0x24], eax
lea edx, [eax - 1]
mov eax, 0xcccccccd
mul edx
mov eax, dword [ecx + 4]
shr edx, 4
add edx, 1
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], eax
je 0x419554
lea ecx, [esp + 0x20c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ecx
xor eax, eax
lea edx, [esp + 0x168]
push edx
lea ebx, [esp + 0xcc]
mov dword [esp + 0x210], eax
mov dword [esp + 0x214], eax
mov dword [esp + 0x218], eax
mov dword [esp + 0x21c], eax
mov dword [esp + 0x220], eax
call fcn.00418950
mov eax, dword [esp + 0x18]
mov ecx, eax
shr ecx, 0x18
mov byte [esp + 0x220], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
shr ecx, 8
mov byte [esp + 0x221], dl
mov byte [esp + 0x222], cl
mov byte [esp + 0x223], al
mov ebx, 4
mov dword [esp + 0xc], 0x3e8
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0xcc]
call fcn.0041ba10
push 0x14
lea eax, [esp + 0x224]
push eax
lea edi, [esp + 0xd0]
call fcn.0041bac0
xor ebx, ebx
jmp 0x419430
movzx ecx, byte [esp + ebx + 0x220]
movzx edx, byte [esp + ebx + 0x221]
xor byte [esp + ebx + 0x20c], cl
xor byte [esp + ebx + 0x20d], dl
movzx ecx, byte [esp + ebx + 0x223]
movzx edx, byte [esp + ebx + 0x224]
mov al, byte [esp + ebx + 0x222]
xor byte [esp + ebx + 0x20e], al
xor byte [esp + ebx + 0x20f], cl
xor byte [esp + ebx + 0x210], dl
add ebx, 5
cmp ebx, 0x14
jb 0x419430
sub dword [esp + 0xc], 1
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x70]
mov ecx, 0x10
lea esi, [esp + 0x28]
lea edi, [esp + 0xc8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x10c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x118], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x110], edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x124], ecx
mov ecx, 0x10
lea esi, [esp + 0x88]
lea edi, [esp + 0x128]
mov dword [esp + 0x11c], edx
mov dword [esp + 0x120], eax
rep movsd dword es:[edi], dword [esi]
jne 0x4193f7
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, dword [esp + 0x24]
jae 0x419533
mov edx, dword [esp + 0x14]
mov dl, byte [edx + eax]
mov esi, dword [esp + 0x1c]
mov byte [eax + esi], dl
inc ecx
inc eax
cmp ecx, 0x14
jb 0x419518
mov eax, dword [esp + 0x18]
inc eax
mov ecx, 0x14
add dword [esp + 0x10], ecx
sub dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
dec eax
cmp eax, dword [esp + 0x20]
jb 0x419382
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042bebe
mov esp, ebp
pop ebp
ret