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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef380
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x42231b
cmp dword [ebp + 0x18], ebx
je 0x42231b
lea eax, [ebp - 0x2c]
push eax
call fcn.0049c860
mov edx, dword [ebp - 0x2c]
mov esi, 0x10
or eax, 0xffffffff
cmp dword [ebp - 0x18], esi
jae 0x422080
lea edx, [ebp - 0x2c]
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x4220ab
jmp 0x422090
movzx edi, byte [edx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x50ca80]
dec ecx
inc edx
cmp ecx, ebx
jne 0x422090
not eax
mov dword [ebp - 0x8c], eax
mov eax, 0xf
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], 2
push 7
push str.t_psp
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.00402a50
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x64]
push edx
mov byte [ebp - 4], 3
call fcn.0040fa90
add esp, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], esi
jb 0x422106
mov eax, dword [ebp - 0x64]
push eax
call fcn.00482674
add esp, 4
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
cmp dword [ebp - 0x34], esi
jae 0x42211d
lea ecx, [ebp - 0x48]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x422128
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x88]
push ecx
push edx
push eax
lea ecx, [ebp - 0x84]
call fcn.004022f0
mov edi, dword [ebp - 0x88]
add edi, 8
push edi
call fcn.00483145
mov ecx, dword [ebp - 0x88]
mov edx, dword [ebp - 0x84]
mov esi, eax
mov eax, dword [ebp - 0x8c]
push ecx
mov dword [esi + 4], eax
push edx
lea eax, [esi + 8]
push eax
mov dword [esi], edi
call fcn.00486940
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.00483528
add esp, 0x28
push edi
push esi
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
call fcn.00402a50
mov byte [ebp - 4], 4
cmp dword [ebp + 0x1c], 0x10
mov edx, dword [ebp + 8]
jae 0x4221ad
lea edx, [ebp + 8]
mov eax, edx
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
lea edi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4221c0
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x64]
call fcn.00402a50
lea edx, [ebp - 0x80]
push edx
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.0044c460
mov edi, 0x10
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x50], edi
jb 0x422206
mov eax, dword [ebp - 0x64]
push eax
call fcn.00482674
add esp, 4
push esi
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.00483528
add esp, 4
mov byte [ebp - 4], 2
cmp dword [ebp - 0x84], ebx
je 0x4222a5
cmp dword [ebp - 0x6c], edi
jb 0x422239
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.00482674
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0x34], edi
jb 0x42225c
mov edx, dword [ebp - 0x48]
push edx
call fcn.00482674
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x422279
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00482674
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x1c], edi
jb 0x42229a
mov ecx, dword [ebp + 8]
push ecx
call fcn.00482674
add esp, 4
mov eax, dword [ebp - 0x84]
jmp 0x422339
cmp dword [ebp - 0x6c], edi
jb 0x4222b6
mov edx, dword [ebp - 0x80]
push edx
call fcn.00482674
add esp, 4
mov esi, 0xf
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0x34], edi
jb 0x4222d9
mov eax, dword [ebp - 0x48]
push eax
call fcn.00482674
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
cmp dword [ebp - 0x18], edi
jb 0x4222f6
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00482674
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [ebp + 0x1c], edi
jb 0x422317
mov edx, dword [ebp + 8]
push edx
call fcn.00482674
add esp, 4
xor eax, eax
jmp 0x422339
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x422334
mov eax, dword [ebp + 8]
push eax
call fcn.00482674
add esp, 4
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret