Function at 0x494460
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x7ef784]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x4947a0
cmp dword [esi + 0x38], 0
je 0x4947a0
cmp dword [esi + 0x9c], 0
je 0x494493
call fcn.00494aa0
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
call fcn.00494260
add esp, 8
test eax, eax
je 0x4944c0
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0x90
call fcn.00664d80
mov edi, eax
add esp, 4
test edi, edi
je 0x49450e
push 0x4000
call fcn.00664d80
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi], eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], 0
mov dword [edi + 0x8c], 0
test eax, eax
jne 0x494524
push edi
call fcn.00662a80
add esp, 4
pop edi
pop ebx
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x40], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x84], ecx
mov dword [edi + 0x88], eax
mov dword [edi + 0x18], 0
movups xmmword [edi + 0x60], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x70], xmm0
cmp ecx, 0xc
jne 0x494739
mov dword [edi + 0x8c], 1
mov eax, dword [esi + 0x60]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x64]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
mov dword [edi + 8], 0
add eax, dword [esi + 0x98]
mov dword [edi + 0x3c], eax
mov dword [esi + 0x9c], edi
mov edi, dword [ebp + 0x10]
mov dword [esi + 0xa0], 0
test edi, edi
je 0x494726
mov dword [esi + 0xb0], 0x775100
mov dword [esi + 0xa4], 0x12345678
mov dword [esi + 0xa8], 0x23456789
mov dword [esi + 0xac], 0x34567890
mov al, byte [edi]
test al, al
je 0x49464b
mov ebx, 0x12345678
mov dword [ebp - 0x14], 0x23456789
mov edx, 0x34567890
movsx eax, al
lea edi, [edi + 1]
xor eax, ebx
mov ecx, ebx
movzx eax, al
shr ecx, 8
mov ebx, dword [eax*4 + 0x775100]
xor ebx, ecx
movzx eax, bl
add eax, dword [ebp - 0x14]
imul eax, eax, 0x8088405
mov dword [esi + 0xa4], ebx
inc eax
mov dword [esi + 0xa8], eax
mov dword [ebp - 0x14], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x775100]
mov dword [esi + 0xac], edx
mov al, byte [edi]
test al, al
jne 0x4945f8
mov ecx, dword [esi + 0x9c]
push 0
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 0x3c]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
push dword [esi + 0x1c]
call eax
add esp, 0x10
test eax, eax
jne 0x49450e
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x20]
mov eax, dword [esi + 4]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jb 0x49450e
mov edi, dword [esi + 0xb0]
xor edx, edx
nop dword [eax + eax]
mov ecx, dword [esi + 0xac]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
mov ecx, dword [esi + 0xa4]
shr eax, 8
xor byte [ebp + edx - 0x10], al
movsx eax, byte [ebp + edx - 0x10]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [edi + eax*4]
xor eax, ecx
mov ecx, dword [esi + 0xac]
mov dword [esi + 0xa4], eax
movzx eax, al
add eax, dword [esi + 0xa8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0xa8], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [edi + eax*4]
mov dword [esi + 0xac], ecx
cmp edx, 0xc
jl 0x4946a0
mov eax, dword [esi + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [esi + 0xa0], 1
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
cmp ecx, 8
jne 0x49457c
sub esp, 8
mov dword [edi + 0x24], 0
lea ecx, [edi + 4]
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ecx], 0
mov dword [edi + 8], 0
call fcn.00494d40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x494784
mov dword [edi + 0x40], 8
jmp 0x49457c
push edi
call fcn.00662a80
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006391b7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffff9a
xor ecx, ebp
pop esi
call fcn.006391b7
mov esp, ebp
pop ebp
ret