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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6815b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x783760]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
mov dword [ebp - 0x18], vtable.CZipAutoBuffer.0
call fcn.0056e306
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0xc
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00410720
push 0
call fcn.00652075
push eax
call fcn.00652deb
add esp, 8
mov dword [ebp + 8], 0
nop dword [eax]
call fcn.00652dca
mov ecx, eax
mov edx, dword [edi + 0xc]
movzx eax, al
mov esi, edx
sar ecx, 6
test cl, cl
movzx ebx, cl
mov ecx, dword [edi + 4]
cmove ebx, eax
and esi, 0xfffd
movsx eax, bl
or esi, 2
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x732320]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], eax
movzx eax, al
add eax, dword [edi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 8], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x732320]
mov eax, esi
xor eax, 1
mov dword [edi + 0xc], edx
mov edx, dword [ebp + 8]
imul eax, esi
sar eax, 8
xor al, bl
mov byte [ecx + edx], al
inc edx
mov dword [ebp + 8], edx
cmp edx, 0xa
jl 0x410550
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov esi, edx
and esi, 0xfffd
movzx eax, word [eax + 0x10]
or esi, 2
shl eax, 0x10
mov ebx, eax
mov dword [ebp + 8], eax
sar ebx, 0x10
movsx eax, bl
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x732320]
xor eax, ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], eax
movzx eax, al
add eax, dword [edi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 8], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x732320]
mov eax, esi
xor eax, 1
mov dword [edi + 0xc], edx
imul eax, esi
sar eax, 8
xor al, bl
mov ebx, dword [ebp + 8]
mov byte [ecx + 0xa], al
mov ecx, dword [edi + 4]
mov edx, dword [edi + 0xc]
mov esi, edx
sar ebx, 0x18
and esi, 0xfffd
movsx eax, bl
or esi, 2
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x732320]
xor eax, ecx
mov ecx, dword [ebp + 0x10]
mov dword [edi + 4], eax
movzx eax, al
add eax, dword [edi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 8], eax
shr eax, 0x18
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x732320]
mov eax, esi
xor eax, 1
mov dword [edi + 0xc], edx
imul eax, esi
sar eax, 8
xor al, bl
mov ebx, dword [ebp - 0x14]
mov byte [ebx + 0xb], al
mov eax, dword [ecx + 0x3c]
shr eax, 4
test al, 1
jne 0x4106c4
push 0xc
push ebx
call fcn.0040b3f0
jmp 0x4106f0
xor esi, esi
push 1
call fcn.0040b300
mov ecx, dword [ebp + 0x10]
mov edi, 0xc
sub edi, esi
cmp eax, edi
cmovb edi, eax
lea eax, [ebx + esi]
push edi
push eax
call fcn.0040b3f0
mov ecx, dword [ebp + 0x10]
add esi, edi
cmp esi, 0xc
jb 0x4106c6
mov eax, dword [ebp + 0xc]
push ebx
add dword [eax + 0x18], 0xc
call fcn.0056e30f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc