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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x67e2d4]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], eax
push edi
test esi, esi
jne 0x40e2e2
mov eax, 0xffffff9a
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x60]
or eax, dword [esi + 0x64]
je 0x40e2cb
cmp dword [esi + 0xe0], 0
je 0x40e2f8
call fcn.0040eb20
lea eax, [esp + 0x10]
mov ecx, esi
push eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x20]
call fcn.0040e030
add esp, 8
test eax, eax
je 0x40e32b
mov eax, 0xffffff99
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
push 0xd0
call fcn.0059b115
mov edi, eax
add esp, 4
test edi, edi
je 0x40e386
push 0x4000
call fcn.0059b115
mov ecx, dword [esp + 0x24]
add esp, 4
mov dword [edi + 0x50], ecx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x54], ecx
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x58], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edi], eax
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0xc8], ecx
test eax, eax
jne 0x40e39d
push edi
call fcn.00576006
add esp, 4
mov eax, 0xffffff98
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x14]
mov dword [edi + 0x48], 0
test edx, edx
je 0x40e3b4
mov eax, dword [esi + 0x8c]
mov dword [edx], eax
test ebx, ebx
je 0x40e3ec
mov dword [ebx], 6
mov eax, dword [esi + 0x88]
and eax, 6
sub eax, 2
je 0x40e3e6
sub eax, 2
je 0x40e3de
sub eax, 2
jne 0x40e3ec
mov dword [ebx], 1
jmp 0x40e3ec
mov dword [ebx], 2
jmp 0x40e3ec
mov dword [ebx], 9
mov eax, dword [esi + 0x94]
mov dword [edi + 0x74], eax
mov dword [edi + 0x70], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov eax, dword [esi + 0x8c]
mov dword [edi + 0xb8], eax
mov eax, dword [esi + 0x30]
mov dword [edi + 0xb4], eax
movups xmm0, xmmword [esi]
movups xmmword [edi + 0x88], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x98], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0xa8], xmm0
mov eax, dword [esi + 0x28]
mov dword [edi + 0xb0], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0xc0], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0xc4], eax
mov dword [edi + 0x18], 0
mov eax, dword [esi + 0x8c]
cmp eax, 0xc
jne 0x40e5d2
test ecx, ecx
jne 0x40e5d2
mov dword [edi + 0xc8], 1
mov eax, dword [esi + 0x98]
xor ecx, ecx
mov dword [edi + 0x78], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0xa0]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0xa4]
mov dword [edi + 0x84], eax
mov eax, dword [esp + 0x18]
add eax, dword [esi + 0xd8]
adc ecx, dword [esi + 0xdc]
add eax, 0x1e
mov dword [edi + 0x40], eax
mov eax, dword [esp + 0x1c]
adc ecx, 0
mov dword [edi + 0x44], ecx
mov dword [edi + 8], 0
mov dword [esi + 0xe0], edi
mov dword [esi + 0xe4], 0
test eax, eax
je 0x40e5be
push 0x648300
lea edx, [esi + 0xec]
mov dword [esi + 0xf8], 0x648300
mov ecx, eax
call fcn.0040c2b0
mov ecx, dword [esi + 0xe0]
add esp, 4
mov edx, dword [ecx + 0xc0]
add edx, dword [ecx + 0x40]
mov eax, dword [ecx + 0xc4]
adc eax, dword [ecx + 0x44]
mov ecx, esi
push 0
push eax
push edx
mov edx, dword [esi + 0x30]
call fcn.00407370
add esp, 0xc
test eax, eax
jne 0x40e386
push 0xc
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x30]
mov eax, dword [esi + 4]
push dword [esi + 0x1c]
call eax
add esp, 0x10
cmp eax, 0xc
jb 0x40e386
xor edi, edi
nop
mov ecx, dword [esi + 0xf4]
mov edx, dword [esi + 0xf8]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
movzx ecx, al
movsx eax, byte [esp + edi + 0x28]
xor ecx, eax
movsx eax, cl
mov byte [esp + edi + 0x28], cl
lea ecx, [esi + 0xec]
push eax
call fcn.0040c260
inc edi
add esp, 4
cmp edi, 0xc
jl 0x40e560
mov eax, dword [esi + 0xe0]
add dword [eax + 0x40], 0xc
adc dword [eax + 0x44], 0
mov dword [esi + 0xe4], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x40e484
test ecx, ecx
jne 0x40e484
mov dword [edi + 0x24], ecx
lea edx, [eax - 0x17]
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], ecx
lea ecx, [edi + 4]
push 0x38
push 0x6482a0
mov dword [ecx], 0
mov dword [edi + 8], 0
call fcn.0040f590
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40e620
mov dword [edi + 0x48], 8
jmp 0x40e484
push edi
call fcn.00576006
mov ecx, dword [esp + 0x38]
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00506d7f
mov esp, ebp
pop ebp
ret