Function at 0x52c860
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 [0x60a070]
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 0x52c891
mov eax, 0xffffff9a
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x38], 0
je 0x52c87d
cmp dword [edi + 0x9c], 0
je 0x52c8a5
call fcn.0052ce10
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x1c]
call fcn.0052c660
add esp, 8
test eax, eax
je 0x52c8d2
mov eax, 0xffffff99
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
push esi
push 0x90
call fcn.00576bf8
mov esi, eax
add esp, 4
test esi, esi
je 0x52c91f
push 0x4000
call fcn.00576bf8
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 0x52c934
push esi
call fcn.00571f41
add esp, 4
pop esi
mov eax, 0xffffff98
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
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 0x52ca42
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 0x52cb37
lea ebx, [edi + 0xa4]
mov dword [edi + 0xb0], 0x5be860
push 0x5be860
mov edx, ebx
mov ecx, eax
call fcn.0052bce0
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 0x52ca2c
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 0x52caac
pop ebx
pop esi
mov eax, 0xffffff98
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x52c990
sub esp, 8
mov dword [esi + 0x24], 0
lea ecx, [esi + 4]
mov dword [esi + 0x28], 0
lea edx, [eax - 0x17]
mov dword [esi + 0x2c], 0
mov dword [ecx], 0
mov dword [esi + 8], 0
call fcn.005243e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x52ca90
mov dword [esi + 0x40], 8
jmp 0x52c990
push esi
call fcn.00571f41
add esp, 4
mov eax, ebx
pop ebx
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055eeb4
mov esp, ebp
pop ebp
ret
xor edx, edx
mov dword [ebp - 0x14], edx
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 0x52cab1
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.0055eeb4
mov esp, ebp
pop ebp
ret