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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xorps xmm0, xmm0
mov ecx, dword [esp + 0x30]
push edi
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esi + 0xec]
mov dword [esi + 0xb8], edx
mov edx, dword [esi + 0xe8]
cmp ecx, edi
jb 0x41f22c
ja 0x41f226
mov eax, dword [esp + 0x30]
cmp eax, edx
jbe 0x41f230
mov eax, edx
mov ecx, edi
jmp 0x41f230
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc0], eax
or eax, ecx
mov dword [esi + 0xc4], ecx
je 0x41f5de
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], eax
nop dword [eax]
nop dword [eax + eax]
mov ecx, dword [esi + 0xa8]
mov eax, ecx
mov edx, dword [esi + 0xac]
or eax, edx
jne 0x41f3b9
mov ecx, dword [esi + 0xe0]
xorps xmm0, xmm0
mov edx, dword [esi + 0xe4]
mov eax, ecx
or eax, edx
movlpd qword [esp + 0x30], xmm0
je 0x41f3b1
xor ebp, ebp
mov edi, 0x4000
test edx, edx
ja 0x41f2aa
jb 0x41f2a6
cmp ecx, edi
jae 0x41f2aa
mov edi, ecx
mov ebp, edx
mov edx, dword [esi + 0x98]
mov ecx, esi
push edi
call fcn.0041e720
add esp, 4
test eax, eax
je 0x41f5a5
sub dword [esi + 0xe0], edi
mov ecx, edi
mov eax, dword [esi + 0x98]
mov edx, ebp
sbb dword [esi + 0xe4], ebp
test byte [esi + 0x54], 1
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa8], edi
mov dword [esi + 0xac], ebp
je 0x41f3b9
xor ebx, ebx
test ebp, ebp
jb 0x41f3b9
ja 0x41f310
test edi, edi
je 0x41f3b9
nop dword [eax]
mov edx, dword [esi + 0xf8]
mov ecx, dword [esi + 0x98]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor byte [ecx + ebx], al
mov eax, dword [esi + 0x98]
mov ecx, dword [esi + 0xf0]
movsx eax, byte [eax + ebx]
inc ebx
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x4bbe48]
xor eax, ecx
mov ecx, dword [esi + 0xf8]
mov dword [esi + 0xf0], eax
movzx eax, al
add eax, dword [esi + 0xf4]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0xf4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4bbe48]
xor eax, eax
mov dword [esi + 0xf8], ecx
cmp eax, ebp
jb 0x41f310
ja 0x41f3a3
cmp ebx, edi
jb 0x41f310
mov ecx, dword [esi + 0xa8]
mov edx, dword [esi + 0xac]
jmp 0x41f3b9
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esi + 0x104]
mov ebp, dword [esi + 0x100]
mov edi, ebp
mov dword [esp + 0x1c], ebx
cmp ebx, edx
jb 0x41f3dd
ja 0x41f3d5
cmp edi, ecx
jbe 0x41f3dd
mov edi, ecx
mov dword [esp + 0x1c], edx
mov ebx, edx
mov eax, edi
or eax, ebx
je 0x41f434
mov eax, dword [esi + 0xa0]
add eax, edi
sub ecx, edi
sbb edx, dword [esp + 0x1c]
sub ebp, edi
mov bl, byte [eax - 1]
mov dword [esi + 0xa0], eax
mov eax, dword [esi + 0x104]
sbb eax, dword [esp + 0x1c]
mov dword [esi + 0x100], ebp
or ebp, eax
mov byte [esp + 0x30], bl
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], edx
mov dword [esi + 0x104], eax
jne 0x41f434
mov al, bl
cmp al, byte [esi + 0x108]
jne 0x41f5b8
cmp word [esi + 0x56], 0
jne 0x41f4ef
mov ebp, dword [esi + 0xc4]
mov ebx, dword [esi + 0xc0]
cmp ebp, edx
ja 0x41f455
jb 0x41f459
cmp ebx, ecx
jb 0x41f459
mov ebx, ecx
mov ebp, edx
push ebx
push dword [esi + 0xa0]
push dword [esi + 0xb8]
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [esi + 0xb8]
add esp, 0xc
mov ecx, dword [esi + 0xd8]
mov edx, edi
push ebx
call fcn.0041e240
mov edx, dword [esp + 0x18]
add esp, 4
sub dword [esi + 0xe8], ebx
mov ecx, dword [esi + 0xe8]
sbb dword [esi + 0xec], ebp
sub dword [esi + 0xa8], ebx
mov dword [esi + 0xd8], eax
lea eax, [edi + ebx]
sbb dword [esi + 0xac], ebp
sub dword [esi + 0xc0], ebx
mov dword [esi + 0xb8], eax
sbb dword [esi + 0xc4], ebp
add dword [esi + 0xa0], ebx
add dword [esi + 0xc8], ebx
adc dword [esi + 0xcc], ebp
add edx, ebx
mov ebx, dword [esp + 0x18]
adc ebx, ebp
mov dword [esp + 0x14], edx
or ecx, dword [esi + 0xec]
mov dword [esp + 0x18], ebx
jmp 0x41f585
mov eax, dword [esi + 0xcc]
lea ecx, [esi + 0xa0]
mov edi, dword [esi + 0xc8]
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xb8]
mov dword [esp + 0x20], eax
call fcn.0041e330
mov ebp, eax
test ebp, ebp
je 0x41f523
cmp ebp, 1
jne 0x41f5cb
mov ebx, dword [esi + 0xc8]
mov edx, dword [esp + 0x20]
sub ebx, edi
mov edi, dword [esi + 0xcc]
mov ecx, dword [esi + 0xd8]
sbb edi, dword [esp + 0x30]
push ebx
call fcn.0041e240
mov ecx, dword [esi + 0xec]
add esp, 4
mov edx, dword [esp + 0x14]
mov dword [esi + 0xd8], eax
mov eax, dword [esi + 0xe8]
sub eax, ebx
mov dword [esi + 0xe8], eax
sbb ecx, edi
add edx, ebx
mov ebx, dword [esp + 0x18]
adc ebx, edi
mov dword [esi + 0xec], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ebx
cmp ebp, 1
je 0x41f5e6
or eax, ecx
je 0x41f5e6
mov eax, dword [esi + 0xc0]
or eax, dword [esi + 0xc4]
jne 0x41f260
mov eax, edx
mov edx, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
mov dword [esi + 8], 7
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
xor eax, eax
mov dword [esi + 8], 0x13
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov dword [esi + 8], 0x12
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov ebx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
pop edi
pop esi
mov eax, edx
mov edx, ebx
pop ebp
pop ebx
add esp, 0x1c
ret