Function at 0x4227b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x20
mov eax, dword [0x4e5b00]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
xor ebp, ebp
mov dword [esp + 8], eax
cmp ebx, ebp
jne 0x4227e8
pop ebp
mov eax, 0xffffff9a
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004606fe
add esp, 0x20
ret
cmp dword [ebx + 0x18], ebp
je 0x4227d2
cmp dword [ebx + 0x7c], ebp
je 0x4227fb
push ebx
call fcn.00422bf0
add esp, 4
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.004225c0
add esp, 0x10
test eax, eax
je 0x42282d
pop ebp
mov eax, 0xffffff99
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004606fe
add esp, 0x20
ret
push edi
push 0x70
call fcn.0046110e
mov edi, eax
add esp, 4
cmp edi, ebp
je 0x42286e
push 0x4000
call fcn.0046110e
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi], eax
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], edx
mov dword [edi + 0x4c], ebp
mov dword [edi + 0x6c], ebp
cmp eax, ebp
jne 0x422885
push edi
call fcn.004611d8
add esp, 4
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004606fe
add esp, 0x20
ret
mov dword [edi + 0x40], ebp
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], ebp
mov ecx, dword [ebx + 0x34]
mov dword [edi + 0x64], ecx
mov edx, dword [ebx]
mov dword [edi + 0x60], edx
mov eax, dword [ebx + 0xc]
mov dword [edi + 0x68], eax
mov dword [edi + 0x18], ebp
cmp dword [ebx + 0x34], 8
push esi
jne 0x4228d3
lea esi, [edi + 4]
mov dword [edi + 0x24], ebp
mov dword [edi + 0x28], ebp
mov dword [edi + 0x2c], ebp
mov dword [esi], ebp
mov dword [edi + 8], ebp
call fcn.0041ed10
mov esi, eax
cmp esi, ebp
jne 0x422999
mov dword [edi + 0x40], 1
mov ecx, dword [ebx + 0x40]
mov dword [edi + 0x58], ecx
mov edx, dword [ebx + 0x44]
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x5c], edx
mov eax, dword [ebx + 0x78]
lea edx, [eax + ecx + 0x1e]
mov dword [edi + 0x3c], edx
mov dword [edi + 8], ebp
mov dword [ebx + 0x7c], edi
cmp dword [esp + 0x10], ebp
je 0x422984
mov eax, dword [esp + 0x10]
mov edi, 0x4ce658
lea esi, [ebx + 0x84]
mov edx, esi
mov dword [ebx + 0x90], edi
call fcn.00421f60
mov eax, dword [ebx + 0x7c]
mov ecx, dword [eax + 0x68]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov edx, dword [eax + ecx + 4]
add eax, ecx
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov edi, edi
mov eax, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x90]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
xor byte [esp + ebp + 0x20], cl
movsx eax, byte [esp + ebp + 0x20]
call fcn.00421f20
inc ebp
cmp ebp, 0xc
jl 0x422940
mov eax, dword [ebx + 0x7c]
add dword [eax + 0x3c], 0xc
mov dword [ebx + 0x80], 1
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004606fe
add esp, 0x20
ret
push edi
call fcn.004611d8
mov ecx, dword [esp + 0x30]
add esp, 4
mov eax, esi
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.004606fe
add esp, 0x20
ret