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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5df3f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
test edi, edi
jne 0x48d521
mov eax, 0xffffff9a
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ad85
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x38], 0
je 0x48d50d
cmp dword [edi + 0x9c], 0
je 0x48d535
call fcn.0048daa0
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
call fcn.0048d2f0
add esp, 8
test eax, eax
je 0x48d562
mov eax, 0xffffff99
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ad85
mov esp, ebp
pop ebp
ret
push esi
push 0x90
call fcn.0052416a
mov esi, eax
add esp, 4
test esi, esi
je 0x48d5af
push 0x4000
call fcn.0052416a
mov ecx, dword [ebp - 0x14]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 0x18]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
mov dword [esi + 0x8c], 0
test eax, eax
jne 0x48d5c4
push esi
call fcn.00524165
add esp, 4
pop esi
mov eax, 0xffffff98
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ad85
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x40], 0
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x54], eax
mov dword [esi + 0x50], 0
mov eax, dword [edi + 0x54]
mov dword [esi + 0x84], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x80], eax
movups xmm0, xmmword [edi]
push ebx
movups xmmword [esi + 0x60], xmm0
movups xmm0, xmmword [edi + 0x10]
movups xmmword [esi + 0x70], xmm0
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x88], eax
mov dword [esi + 0x18], 0
mov eax, dword [edi + 0x54]
cmp eax, 0xc
jne 0x48d6ce
mov dword [esi + 0x8c], 1
mov eax, dword [edi + 0x60]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x64]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x1e
add eax, dword [edi + 0x98]
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 8], 0
mov dword [edi + 0x9c], esi
mov dword [edi + 0xa0], 0
test eax, eax
je 0x48d7c6
lea ebx, [edi + 0xa4]
mov dword [edi + 0xb0], 0x5b1a70
push 0x5b1a70
mov edx, ebx
mov ecx, eax
call fcn.0048c990
mov ecx, dword [edi + 0x9c]
push 0
mov eax, dword [ecx + 0x88]
add eax, dword [ecx + 0x3c]
push eax
push dword [edi + 0x20]
mov eax, dword [edi + 0x10]
push dword [edi + 0x1c]
call eax
add esp, 0x14
test eax, eax
jne 0x48d6b8
push 0xc
lea eax, [ebp - 0x10]
push eax
push dword [edi + 0x20]
mov eax, dword [edi + 4]
push dword [edi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jae 0x48d735
pop ebx
pop esi
mov eax, 0xffffff98
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ad85
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x48d620
sub esp, 8
mov dword [esi + 0x24], 0
lea ecx, [esi + 4]
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [ecx], 0
mov dword [esi + 8], 0
call fcn.0048dcd0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x48d719
mov dword [esi + 0x40], 8
jmp 0x48d620
push esi
call fcn.00524165
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0050ad85
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp - 0x14], edx
nop word [eax + eax]
mov ecx, dword [edi + 0xac]
mov esi, dword [edi + 0xb0]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
movzx ecx, al
movsx eax, byte [ebp + edx - 0x10]
xor ecx, eax
mov byte [ebp + edx - 0x10], cl
mov edx, dword [ebx]
movsx eax, cl
xor eax, edx
mov ecx, dword [ebx + 8]
movzx eax, al
shr edx, 8
mov eax, dword [esi + eax*4]
xor eax, edx
mov edx, dword [ebp - 0x14]
mov dword [ebx], eax
inc edx
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
mov dword [ebp - 0x14], edx
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [esi + eax*4]
mov dword [ebx + 8], ecx
cmp edx, 0xc
jl 0x48d740
mov eax, dword [edi + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [edi + 0xa0], 1
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop esi
xor ecx, ebp
pop edi
call fcn.0050ad85
mov esp, ebp
pop ebp
ret