Function at 0x402b4b
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, 0x224
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 0x402c20
mov dword [ebp - 0x218], edi
xor ebx, ebx
mov esi, dword [ebp - 0x218]
shr dword [ebp - 0x218], 1
and esi, 1
mov dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x21c]
movzx edx, word [esi + eax*2]
mov esi, dword [ebp - 0x224]
add eax, eax
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 0x402bd6
mov ecx, ebx
mov esi, dword [ebp - 0x21c]
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
mov dword [ebp + esi*4 - 0x20c], edx
mov edx, dword [ebp - 0x228]
add edx, esi
mov esi, dword [ebp - 0x210]
add ecx, dword [esi + eax*4]
mov dword [ebp + edx*4 - 0x20c], ecx
cmp edi, 0x40
jne 0x402b86
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 - 0x22c], 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 ebx, dword [ebp - 0x224]
cmp dword [ebp - 0x21c], ebx
je 0x402e0f
mov edi, dword [ebp - 0x21c]
add edi, 0x20
mov dword [ebp - 0x220], edi
mov edx, dword [ebp - 0x220]
mov ebx, edi
mov edi, dword [ebp - 0x218]
shr ebx, 1
and edx, 1
movzx ecx, word [edi + ebx*2]
neg edx
and ebx, 1
and edx, 0x7ff
neg ebx
xor ecx, edx
mov edx, dword [ebp - 0x220]
and ebx, 0x7ff
mov edi, ecx
mov ecx, dword [ebp - 0x220]
shr edx, 2
shr edi, 4
shr ecx, 3
mov dword [ebp - 0x228], ecx
mov ecx, dword [ebp - 0x218]
movzx ecx, word [ecx + edx*2]
and edx, 1
neg edx
xor ecx, ebx
mov ebx, dword [ebp - 0x218]
and edx, 0x7ff
shr ecx, 4
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebp - 0x228]
movzx ebx, word [ebx + ecx*2]
mov ecx, dword [ebp - 0x210]
xor ebx, edx
shr ebx, 4
mov edx, dword [ecx + ebx*4]
mov ebx, ecx
mov ecx, dword [ebp - 0x230]
add edx, dword [ebx + ecx*4]
mov ecx, dword [ebp - 0x220]
add edx, dword [ebx + edi*4]
mov ebx, dword [ebp - 0x228]
mov edi, dword [ebp - 0x218]
shr ecx, 4
and ebx, 1
movzx edi, word [edi + ecx*2]
neg ebx
and ecx, 1
and ebx, 0x7ff
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 edi, dword [ebp - 0x218]
mov ebx, dword [ebp - 0x21c]
movzx ecx, word [edi + ebx*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 edi, dword [ebp - 0x210]
add edx, dword [edi + ecx*4]
mov edi, dword [ebp - 0x21c]
inc dword [ebp - 0x21c]
mov dword [eax + edi*8 + 4], edx
jmp 0x402cb2
mov edx, 7
mov ecx, edx
mov edi, dword [ebp - 0x224]
shl ecx, 4
sub ecx, 0x50
cmp edx, edi
jae 0x402e30
add dword [eax + edx*8], ecx
add dword [eax + edx*8 + 4], ecx
inc edx
jmp 0x402e14
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 edi, dword [ebp - 0x214]
mov ebx, dword [ebp + edx*4 - 0x20c]
movzx ecx, byte [edi + edx + 0x2a9c]
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 0x402e4b
sub dword [ebp - 0x218], 0xffffff80
add eax, 0x100
add esi, 0x200
cmp dword [ebp - 0x22c], eax
jne 0x402c93
add esp, 0x224
pop ebx
pop esi
pop edi
pop ebp
ret