Function at 0x402b2f
Capabilities:
Decompress data using quicklz
Encode data using xor

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
mov edi, 2
push esi
push ebx
sub esp, 0x220
mov dword [ebp - 0x214], eax
add eax, 0x548
mov dword [ebp - 0x210], eax
mov eax, dword [ebp - 0x214]
mov dword [eax + 0xc0], ecx
add eax, 0x219c
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x22c]
movzx ecx, byte [eax + edi + 0x2a9c]
mov eax, ecx
shr ecx, 1
and eax, 1
dec ecx
or eax, 2
shl eax, cl
lea esi, [esi + eax*4]
add eax, edi
mov dword [ebp - 0x21c], esi
mov esi, 1
shl esi, cl
mov dword [ebp - 0x220], eax
mov eax, 1
mov dword [ebp - 0x228], esi
test ecx, ecx
je 0x402c04
mov dword [ebp - 0x218], edi
xor ebx, ebx
mov esi, dword [ebp - 0x218]
add eax, eax
shr dword [ebp - 0x218], 1
and esi, 1
mov dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x21c]
movzx edx, word [esi + eax]
mov esi, dword [ebp - 0x224]
neg esi
and esi, 0x7ff
xor edx, esi
mov esi, dword [ebp - 0x210]
shr edx, 4
add ebx, dword [esi + edx*4]
mov esi, dword [ebp - 0x224]
add eax, esi
dec ecx
jne 0x402bba
mov ecx, ebx
mov esi, dword [ebp - 0x21c]
mov ebx, dword [ebp - 0x210]
inc edi
movzx eax, word [esi + eax*2]
mov esi, dword [ebp - 0x210]
shr eax, 4
mov edx, dword [esi + eax*4]
mov esi, dword [ebp - 0x220]
xor eax, 0x7f
add edx, ecx
add ecx, dword [ebx + eax*4]
mov dword [ebp + esi*4 - 0x20c], edx
mov edx, dword [ebp - 0x228]
add edx, esi
mov dword [ebp + edx*4 - 0x20c], ecx
cmp edi, 0x40
jne 0x402b6a
mov edi, dword [ebp - 0x214]
mov eax, dword [ebp - 0x214]
lea esi, [edi + 0x141c]
add edi, 0x1f9c
add eax, 0x101c
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x228], esi
mov edi, dword [ebp - 0x214]
mov edi, dword [edi + 0xc8]
lea edx, [edi + 1]
shr edx, 1
mov dword [ebp - 0x224], edx
xor edx, edx
mov dword [ebp - 0x21c], edx
mov edi, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], edi
je 0x402dd1
mov ebx, dword [ebp - 0x21c]
lea edi, [ebx + 0x20]
mov dword [ebp - 0x220], edi
mov ecx, dword [ebp - 0x220]
mov edx, edi
mov edi, dword [ebp - 0x218]
shr edx, 1
and ecx, 1
movzx ebx, word [edi + edx*2]
neg ecx
and edx, 1
and ecx, 0x7ff
neg edx
xor ebx, ecx
mov ecx, dword [ebp - 0x220]
and edx, 0x7ff
shr ebx, 4
shr ecx, 2
movzx edi, word [edi + ecx*2]
and ecx, 1
neg ecx
xor edi, edx
mov edx, dword [ebp - 0x210]
and ecx, 0x7ff
shr edi, 4
mov edx, dword [edx + edi*4]
mov edi, dword [ebp - 0x210]
add edx, dword [edi + ebx*4]
mov ebx, dword [ebp - 0x220]
mov edi, dword [ebp - 0x218]
shr ebx, 3
movzx edi, word [edi + ebx*2]
and ebx, 1
neg ebx
xor edi, ecx
mov ecx, dword [ebp - 0x210]
and ebx, 0x7ff
shr edi, 4
add edx, dword [ecx + edi*4]
mov ecx, dword [ebp - 0x220]
mov edi, dword [ebp - 0x218]
shr ecx, 4
movzx edi, word [edi + ecx*2]
and ecx, 1
neg ecx
xor edi, ebx
mov ebx, dword [ebp - 0x210]
and ecx, 0x7ff
shr edi, 4
add edx, dword [ebx + edi*4]
mov ebx, dword [ebp - 0x220]
mov edi, dword [ebp - 0x218]
shr ebx, 5
movzx ebx, word [edi + ebx*2]
mov edi, dword [ebp - 0x210]
xor ebx, ecx
shr ebx, 4
add edx, dword [edi + ebx*4]
mov ebx, dword [ebp - 0x218]
mov edi, dword [ebp - 0x21c]
movzx ecx, word [ebx + edi*2 + 0x40]
mov edi, dword [ebp - 0x210]
shr ecx, 4
mov ebx, dword [edi + ecx*4]
mov edi, dword [ebp - 0x21c]
xor ecx, 0x7f
add ebx, edx
mov dword [eax + edi*8], ebx
mov ebx, dword [ebp - 0x210]
inc dword [ebp - 0x21c]
add edx, dword [ebx + ecx*4]
mov dword [eax + edi*8 + 4], edx
jmp 0x402c96
mov edx, 7
mov ecx, edx
mov ebx, dword [ebp - 0x224]
shl ecx, 4
sub ecx, 0x50
cmp edx, ebx
jae 0x402df2
add dword [eax + edx*8], ecx
add dword [eax + edx*8 + 4], ecx
inc edx
jmp 0x402dd6
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov edx, dword [eax + 8]
mov dword [esi + 8], edx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
mov edx, 4
mov ebx, dword [ebp - 0x214]
movzx ecx, byte [ebx + edx + 0x2a9c]
mov ebx, dword [ebp + edx*4 - 0x20c]
mov ecx, dword [eax + ecx*4]
add ebx, ecx
add ecx, dword [ebp + edx*4 - 0x208]
mov dword [esi + edx*4], ebx
mov dword [esi + edx*4 + 4], ecx
add edx, 2
cmp edx, 0x80
jne 0x402e0d
sub dword [ebp - 0x218], 0xffffff80
add eax, 0x100
add esi, 0x200
cmp dword [ebp - 0x228], eax
jne 0x402c77
add esp, 0x220
pop ebx
pop esi
pop edi
pop ebp
ret