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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44539a
mov eax, dword fs:[0]
push eax
sub esp, 0x504
mov eax, dword [0x45d074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], edi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0xf4], 0
xor eax, eax
push 0xd
push str.SCI_multipart
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.0040ed10
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x28]
call fcn.004070a0
add esp, 4
xor esi, esi
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
and dl, 1
cmove eax, ecx
mov dword [ebp + esi*4 - 0x510], eax
inc esi
cmp esi, 0x100
jb 0x4071e1
mov edx, dword [ebp - 0x18]
or esi, 0xffffffff
xor ecx, ecx
test edx, edx
je 0x4072b6
mov ebx, dword [ebp - 0x14]
cmp ebx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
movzx eax, word [eax + ecx*2]
inc ecx
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [ebp + eax*4 - 0x510]
cmp ecx, edx
jb 0x407294
push 0xb0
lea eax, [ebp - 0xf0]
not esi
push 0
push eax
call fcn.00424f60
mov dword [ebp - 0xf0], 0x456f08
mov dword [ebp - 0xe0], 0x456fbc
add esp, 8
mov byte [ebp - 4], 2
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xf4], 4
xorps xmm0, xmm0
mov dword [ebp - 0x88], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x50
push eax
movlpd qword [ebp - 0xe8], xmm0
call fcn.004114d0
lea eax, [ebp - 0xe0]
mov dword [ebp - 0xf8], eax
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xe0], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xe0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xe4], eax
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ebp + ecx - 0xf4], eax
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0xf0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xf0], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebp - 0xf0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xf4], eax
lea ecx, [ebp - 0xd8]
call fcn.00411410
mov dword [ebp - 0xd8], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xcc]
mov eax, dword [ebp - 0xe0]
push 0
push 8
mov eax, dword [eax + 4]
or dword [ecx + eax], 4
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ecx], eax
lea eax, [ebp - 0x110]
push eax
call fcn.0042204c
mov ecx, eax
lea edx, [ebp - 0xe0]
mov eax, dword [ebp - 0xe0]
add esp, 0xc
push dword [ecx + 0xc]
mov eax, dword [eax + 4]
push dword [ecx + 8]
add eax, edx
push eax
mov eax, dword [ecx]
call eax
add esp, 0xc
mov eax, dword [ebp - 0xe0]
mov ecx, 0x30
push esi
mov eax, dword [eax + 4]
mov word [ebp + eax - 0xa0], cx
lea ecx, [ebp - 0xe0]
call fcn.0040c9e0
mov byte [ebp - 4], 9
xor eax, eax
mov cl, byte [ebp - 0x9c]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0xf4], 0x84
test cl, 2
jne 0x4074ac
mov eax, dword [ebp - 0xb8]
mov edx, dword [eax]
test edx, edx
je 0x4074ac
cmp edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0xc8]
cmovb edx, dword [ebp - 0xa0]
mov ecx, dword [eax]
sub edx, ecx
sar edx, 1
push edx
jmp 0x4074d6
test cl, 4
jne 0x4074de
mov eax, dword [ebp - 0xbc]
mov edx, dword [eax]
test edx, edx
je 0x4074de
mov eax, dword [ebp - 0xcc]
mov ecx, dword [eax]
mov eax, dword [ebp - 0xac]
mov eax, dword [eax]
add eax, eax
sub eax, ecx
add eax, edx
sar eax, 1
push eax
push ecx
mov ecx, edi
call fcn.0040ed10
lea ecx, [ebp - 0xf0]
call fcn.00407590
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40751f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x407515
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407587
push edx
push ecx
call fcn.004230a3
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x407569
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40755f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407587
push edx
push ecx
call fcn.004230a3
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422e0c
mov esp, ebp
pop ebp
ret
call fcn.0042fe3b
int3