Function at 0x41fe90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x504608]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 0x18], eax
test esi, esi
jne 0x41fec1
mov eax, 0xffffff9a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a134
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x38], 0
je 0x41fead
cmp dword [esi + 0x9c], 0
je 0x41fed5
call fcn.004203d0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.0041fc90
add esp, 8
test eax, eax
je 0x41ff02
mov eax, 0xffffff99
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a134
mov esp, ebp
pop ebp
ret
push edi
push 0x90
call fcn.0049f9e0
mov edi, eax
add esp, 4
test edi, edi
je 0x41ff4f
push 0x4000
call fcn.0049f9e0
mov ecx, dword [ebp - 0x1c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x20]
add esp, 4
mov dword [edi], eax
mov dword [edi + 0x48], ecx
mov dword [edi + 0x4c], 0
mov dword [edi + 0x8c], 0
test eax, eax
jne 0x41ff64
push edi
call fcn.0049bb15
add esp, 4
pop edi
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a134
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x40], 0
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x54], eax
mov dword [edi + 0x50], 0
mov eax, dword [esi + 0x54]
mov dword [edi + 0x84], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x80], eax
movq xmm0, qword [esi]
movq qword [edi + 0x60], xmm0
movq xmm0, qword [esi + 8]
movq qword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [edi + 0x70], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [edi + 0x78], xmm0
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x88], eax
mov dword [edi + 0x18], 0
mov eax, dword [esi + 0x54]
push ebx
cmp eax, 0xc
jne 0x420084
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 - 0x14]
add eax, 0x1e
add eax, dword [esi + 0x98]
mov dword [edi + 8], 0
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x9c], edi
mov dword [esi + 0xa0], 0
test eax, eax
je 0x42014c
push 0x4edf78
lea edx, [esi + 0xa4]
mov ecx, eax
mov dword [esi + 0xb0], 0x4edf78
call fcn.0041f360
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, 0x14
test eax, eax
jne 0x42006e
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
jae 0x4200eb
pop ebx
pop edi
mov eax, 0xffffff98
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a134
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x41ffd8
lea ecx, [edi + 4]
sub esp, 8
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [ecx], 0
mov dword [edi + 8], 0
call fcn.004214e0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4200cf
mov dword [edi + 0x40], 8
jmp 0x41ffd8
push edi
call fcn.0049bb15
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049a134
mov esp, ebp
pop ebp
ret
xor edi, edi
lea ecx, [ecx]
mov eax, dword [esi + 0xac]
and eax, 0xfffd
mov edx, dword [esi + 0xb0]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
movsx eax, byte [ebp + edi - 0x10]
shr ecx, 8
and ecx, 0xff
xor ecx, eax
movsx eax, cl
mov byte [ebp + edi - 0x10], cl
push eax
lea ecx, [esi + 0xa4]
call fcn.0041f310
inc edi
add esp, 4
cmp edi, 0xc
jl 0x4200f0
mov eax, dword [esi + 0x9c]
add dword [eax + 0x3c], 0xc
mov dword [esi + 0xa0], 1
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0049a134
mov esp, ebp
pop ebp
ret