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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [ebp - 0x10], edx
xor edi, edi
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], 0
mov esi, edi
mov eax, edi
shr eax, 1
and esi, 1
neg esi
and esi, 0xedb88320
xor esi, eax
mov eax, esi
shr esi, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, esi
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edi*4 + 0x43f7b8], eax
inc edi
cmp edi, 0x100
jb 0x417385
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41742c
mov dword [eax], 0
mov ebx, dword [ebp + 0xc]
push 0x4b0
call fcn.0041c36a
add esp, 4
mov esi, eax
test ebx, ebx
jne 0x4174dc
test esi, esi
je 0x4175cf
push 0x6f28
mov dword [esi + 0x20], ebx
call fcn.0041c36a
add esp, 4
test eax, eax
jne 0x41747a
mov dword [esi + 0x4a8], 0
push esi
call fcn.0041bffb
add esp, 4
jmp 0x4175cf
mov dword [eax + 0x3c], 0
mov dword [eax + 0x34], 0
push 0x60
mov dword [esi + 0x4a8], eax
lea eax, [esi + 0x40]
push 0
push eax
mov dword [esi], 0
mov byte [esi + 0x24], 0
mov dword [esi + 4], 0
mov dword [esi + 0x18], 0
call fcn.00418c40
mov edi, dword [ebp + 0x10]
add esp, 0xc
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xc
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], 0xffffffff
jmp 0x417578
test esi, esi
je 0x4175cf
push 0x6f28
mov dword [esi + 0x20], 2
call fcn.0041c36a
add esp, 4
test eax, eax
je 0x417462
mov dword [eax + 0x3c], 2
mov dword [eax + 0x34], 0xffffffff
mov dword [eax + 0x18], 0
mov dword [eax + 0x38], 0
push 0x60
mov dword [esi + 0x4a8], eax
lea eax, [esi + 0x40]
push 0
push eax
mov dword [esi], 0
mov byte [esi + 0x24], 0
mov dword [esi + 4], 0
mov dword [esi + 0x18], 0
call fcn.00418c40
push 0x1000
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0xc
mov dword [ebp - 0x14], 0x1000
call fcn.0041c36a
mov edi, eax
add esp, 0x10
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x4175a4
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4175eb
push 0x1000
mov byte [ebp - 5], 1
call fcn.0041c36a
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x4175eb
test ebx, ebx
je 0x4175a4
push edi
call fcn.0041bffb
add esp, 4
mov edi, dword [esi + 0x4a8]
cmp dword [edi + 0x3c], 0
je 0x4175c0
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4175c0
push eax
call fcn.0041bffb
add esp, 4
push edi
call fcn.0041bffb
push esi
call fcn.0041bffb
add esp, 8
push str.XZ_decompressor_ran_out_of_memory
push 0x436cc0
call fcn.0040f530
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
test ebx, ebx
jne 0x417614
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00416590
mov edi, eax
jmp 0x41766c
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00416590
mov ebx, dword [ebp - 0x18]
mov edi, eax
cmp ebx, dword [ebp - 0x14]
je 0x417630
test edi, edi
je 0x417614
test ebx, ebx
je 0x41764f
push ebx
push dword [ebp - 0x1c]
call dword [ebp + 0xc]
add esp, 8
mov dword [ebp - 0x18], 0
cmp eax, ebx
mov eax, 8
cmovne edi, eax
test edi, edi
je 0x417614
cmp byte [ebp - 5], 0
je 0x417661
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0041bffb
add esp, 4
push dword [ebp - 0x1c]
call fcn.0041bffb
add esp, 4
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x417678
mov eax, dword [ebp - 0x24]
add dword [ecx], eax
mov ebx, dword [esi + 0x4a8]
cmp dword [ebx + 0x3c], 0
je 0x417694
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x417694
push eax
call fcn.0041bffb
add esp, 4
push ebx
call fcn.0041bffb
push esi
call fcn.0041bffb
dec edi
add esp, 8
cmp edi, 7
ja case.0x4176a9.2
jmp dword [edi*4 + 0x4176f0]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, str.XZ_decompressor_ran_out_of_memory
push eax
jmp 0x4175d4
mov eax, str.Input_is_not_in_the_XZ_format__wrong_magic_bytes_
push eax
jmp 0x4175d4
mov eax, str.Input_was_encoded_with_settings_that_are_not_supported_by_this_XZ_decoder
push eax
jmp 0x4175d4
mov eax, str.XZ_compressed_data_is_corrupt
push eax
jmp 0x4175d4
mov eax, str.Bug_in_the_XZ_decompressor
push eax
jmp 0x4175d4