Function at 0x4021a0
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2034
call fcn.00403840
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x2020], ebx
push 0x2000
push 0
mov dword [ebp - 0x2034], edi
lea eax, [ebx + edi]
mov dword [ebp - 0x2030], esi
mov dword [ebp - 0x2014], eax
add eax, 0xfffffff3
mov dword [ebp - 0x202c], eax
lea eax, [ebp - 0x2004]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, ebx
mov dword [ebp - 0x201c], edx
cmp edi, 0xd
ja 0x40220f
mov ecx, edi
jmp 0x4025aa
add ebx, 4
mov al, byte [ebx]
mov byte [ebp - 0x2006], al
nop word [eax + eax]
movzx ecx, byte [ebx + 2]
lea eax, [ebx + 1]
mov dword [ebp - 0x2028], eax
mov al, byte [eax]
mov byte [ebp - 0x2005], al
shl ecx, 5
movzx eax, al
xor ecx, eax
movzx eax, byte [ebp - 0x2006]
shl ecx, 3
xor ecx, eax
mov eax, ecx
shl eax, 5
add eax, ecx
lea ecx, [ebp - 0x2004]
shr eax, 5
and eax, 0x7ff
mov edi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
mov dword [ebp - 0x2010], ecx
mov ecx, ebx
sub ecx, dword [ebp - 0x2020]
mov dword [ebp - 0x2024], eax
cmp ecx, edi
jbe 0x402570
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x200c], eax
cmp eax, 0xbfff
ja 0x402570
mov edi, ebx
sub edi, eax
mov dword [ebp - 0x2018], edi
cmp eax, 0x800
jbe 0x402304
mov al, byte [ebx + 3]
cmp byte [edi + 3], al
je 0x402304
mov eax, dword [ebp - 0x2024]
lea edi, [ebp - 0x2004]
xor eax, 0x7ff
lea eax, [edi + eax*4]
mov edi, dword [eax]
mov dword [ebp - 0x2010], eax
cmp ecx, edi
jbe 0x402570
mov eax, ecx
sub eax, edi
mov dword [ebp - 0x200c], eax
cmp eax, 0xbfff
ja 0x402570
mov edi, ebx
sub edi, eax
mov dword [ebp - 0x2018], edi
cmp eax, 0x800
jbe 0x402304
mov al, byte [ebx + 3]
cmp byte [edi + 3], al
jne 0x402570
mov al, byte [ebp - 0x2006]
cmp byte [edi], al
mov al, byte [ebp - 0x2005]
jne 0x402576
cmp byte [edi + 1], al
jne 0x402576
mov ah, byte [ebx + 2]
cmp byte [edi + 2], ah
jne 0x402576
mov eax, dword [ebp - 0x2010]
mov dword [eax], ecx
mov ecx, ebx
sub ecx, edx
mov dword [ebp - 0x2028], ecx
test ecx, ecx
jle 0x4023e1
cmp ecx, 3
ja 0x402354
or byte [esi - 2], cl
jmp 0x4023d0
lea eax, [esi + 1]
mov dword [ebp - 0x2010], eax
cmp ecx, 0x12
ja 0x402370
mov al, cl
sub al, 3
mov byte [esi], al
mov esi, dword [ebp - 0x2010]
jmp 0x4023d0
lea eax, [ecx - 0x12]
mov byte [esi], 0
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2024], eax
cmp eax, 0xff
jbe 0x4023cc
lea ecx, [eax - 0x100]
mov eax, 0x80808081
mul ecx
mov edi, edx
shr edi, 7
inc edi
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x2024]
add esp, 0xc
add esi, edi
sub eax, 0xff
sub edi, 1
jne 0x4023b0
mov ecx, dword [ebp - 0x2028]
mov edx, dword [ebp - 0x201c]
mov edi, dword [ebp - 0x2018]
mov byte [esi], al
inc esi
nop
mov al, byte [edx]
inc edx
mov byte [esi], al
inc esi
sub ecx, 1
jne 0x4023d0
mov dword [ebp - 0x201c], edx
mov al, byte [ebx + 3]
add ebx, 4
cmp byte [edi + 3], al
jne 0x4024f5
mov al, byte [ebx]
inc ebx
cmp byte [edi + 4], al
jne 0x4024f5
mov al, byte [ebx]
inc ebx
cmp byte [edi + 5], al
jne 0x4024f5
mov al, byte [ebx]
inc ebx
cmp byte [edi + 6], al
jne 0x4024f5
mov al, byte [ebx]
inc ebx
cmp byte [edi + 7], al
jne 0x4024f5
mov al, byte [ebx]
inc ebx
cmp byte [edi + 8], al
jne 0x4024f5
lea ecx, [edi + 9]
mov edi, dword [ebp - 0x2014]
cmp ebx, edi
jae 0x40244c
nop dword [eax]
mov al, byte [ecx]
cmp al, byte [ebx]
jne 0x40244c
inc ebx
inc ecx
cmp ebx, edi
jb 0x402440
mov ecx, dword [ebp - 0x200c]
lea edi, [esi + 1]
mov eax, ebx
sub eax, edx
cmp ecx, 0x4000
ja 0x40247d
dec ecx
mov dword [ebp - 0x200c], ecx
cmp eax, 0x21
ja 0x402476
sub al, 2
or al, 0x20
jmp 0x402549
sub eax, 0x21
mov dl, 0x20
jmp 0x4024a3
sub ecx, 0x4000
mov edx, ecx
mov dword [ebp - 0x200c], ecx
shr edx, 0xb
and dl, 8
cmp eax, 9
ja 0x40249d
sub al, 2
jmp 0x402545
sub eax, 9
or dl, 0x10
mov dword [ebp - 0x2018], eax
mov byte [esi], dl
cmp eax, 0xff
jbe 0x4024f0
lea ecx, [eax - 0x100]
mov eax, 0x80808081
mul ecx
mov esi, edx
shr esi, 7
inc esi
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x2018]
add esp, 0xc
add edi, esi
nop dword [eax]
sub eax, 0xff
sub esi, 1
jne 0x4024e0
mov ecx, dword [ebp - 0x200c]
mov byte [edi], al
inc edi
jmp 0x40254b
mov ecx, dword [ebp - 0x200c]
lea edi, [esi + 1]
dec ebx
mov dl, bl
sub dl, byte [ebp - 0x201c]
cmp ecx, 0x800
ja 0x402525
dec ecx
dec dl
mov al, cl
shl dl, 3
and al, 7
or dl, al
shl dl, 2
mov byte [esi], dl
shr ecx, 3
jmp 0x402556
sub dl, 2
cmp ecx, 0x4000
ja 0x402538
dec ecx
or dl, 0x20
mov byte [esi], dl
jmp 0x40254b
sub ecx, 0x4000
mov eax, ecx
shr eax, 0xb
and al, 8
or al, dl
or al, 0x10
mov byte [esi], al
mov al, cl
shl al, 2
mov byte [edi], al
inc edi
shr ecx, 6
lea esi, [edi + 1]
mov edx, ebx
mov byte [edi], cl
mov dword [ebp - 0x201c], edx
cmp ebx, dword [ebp - 0x202c]
jae 0x402596
jmp 0x402212
mov al, byte [ebp - 0x2005]
mov ebx, dword [ebp - 0x2010]
mov byte [ebp - 0x2006], al
mov dword [ebx], ecx
mov ebx, dword [ebp - 0x2028]
cmp ebx, dword [ebp - 0x202c]
jb 0x402220
mov ecx, dword [ebp - 0x2014]
mov ebx, dword [ebp - 0x2020]
sub ecx, edx
mov edi, dword [ebp - 0x2034]
mov dword [ebp - 0x2014], ecx
test ecx, ecx
je 0x40264d
sub ebx, ecx
add ebx, edi
mov dword [ebp - 0x2020], ebx
cmp esi, dword [ebp - 0x2030]
jne 0x4025da
cmp ecx, 0xee
ja 0x4025da
mov al, cl
add al, 0x11
mov byte [esi], al
jmp 0x40263a
cmp ecx, 3
ja 0x4025e4
or byte [esi - 2], cl
jmp 0x402640
cmp ecx, 0x12
ja 0x4025f1
mov al, cl
sub al, 3
mov byte [esi], al
jmp 0x40263a
lea ebx, [ecx - 0x12]
mov byte [esi], 0
inc esi
cmp ebx, 0xff
jbe 0x402632
lea ecx, [ebx - 0x100]
mov eax, 0x80808081
mul ecx
mov edi, edx
shr edi, 7
inc edi
push edi
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add esi, edi
sub ebx, 0xff
sub edi, 1
jne 0x402621
mov ecx, dword [ebp - 0x2014]
mov byte [esi], bl
mov ebx, dword [ebp - 0x2020]
inc esi
nop dword [eax + eax]
mov al, byte [ebx]
lea ebx, [ebx + 1]
mov byte [esi], al
inc esi
sub ecx, 1
jne 0x402640
mov ecx, dword [ebp - 4]
mov word [esi], 0x11
xor ecx, ebp
add esi, 2
pop edi
mov byte [esi], 0
sub esi, dword [ebp - 0x2030]
lea eax, [esi + 1]
pop esi
pop ebx
call fcn.00402a06
mov esp, ebp
pop ebp
ret