Function at 0x64f970
Capabilities:
Compress data via zlib inflate or deflate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test eax, eax
jne 0x64f9a0
mov dword [ebp - 0x68], 0xfffffffe
mov eax, dword [ebp - 0x68]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x1c]
test edi, edi
je case.default.0x64fa15
mov edx, dword [eax + 0xc]
test edx, edx
mov dword [ebp - 0x7c], edx
je case.default.0x64fa15
mov ecx, dword [eax]
test ecx, ecx
mov dword [ebp - 0x80], ecx
je 0x650938
mov eax, dword [edi]
cmp eax, 0xb
je 0x65090b
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov ecx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
mov ebx, dword [ebx + 0x10]
mov edx, dword [edx + 4]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x78], edx
lea edx, [edi + 0x2f0]
mov dword [ebp - 0x70], ebx
lea ebx, [edi + 0x530]
mov dword [ebp - 0xa4], ebx
mov dword [ebp - 0xa8], edx
cmp eax, 0x1c
ja case.default.0x64fa15
jmp dword [eax*4 + 0xafc7cc]
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0xf
jbe 0x64fa1c
mov ebx, dword [ebp - 0x34]
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x650e32
mov eax, dword [ebp + 8]
mov dword [edi], 0x1b
mov dword [eax + 0x18], str.unknown_compression_method
mov eax, dword [edi]
jmp 0x64fa0c
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0xd
jbe 0x64fa67
mov eax, dword [ebp - 0x34]
sub esi, 0xe
and eax, 0x1f
add eax, 0x101
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x34]
shr dword [ebp - 0x34], 0xa
shr eax, 5
and eax, 0x1f
add eax, 1
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x34]
shr dword [ebp - 0x34], 4
and eax, 0xf
add eax, 4
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x5c], eax
ja 0x650c92
cmp dword [edi + 0x64], 0x1e
ja 0x650c92
mov dword [edi + 0x68], 0
mov dword [edi], 0x10
mov eax, dword [edi + 0x68]
cmp dword [edi + 0x5c], eax
mov dword [ebp - 0xbc], eax
lea ebx, [eax + eax + 0xafc840]
jbe 0x64fb54
cmp esi, 2
ja 0x64fb26
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
movzx eax, word [ebp - 0x34]
sub esi, 3
movzx edx, word [ebx]
add ebx, 2
add dword [ebp - 0xbc], 1
shr dword [ebp - 0x34], 3
and eax, 7
mov word [edi + edx*2 + 0x70], ax
mov eax, dword [ebp - 0xbc]
cmp dword [edi + 0x5c], eax
mov dword [edi + 0x68], eax
ja 0x64fafc
cmp dword [ebp - 0xbc], 0x12
ja 0x64fb8c
mov ebx, dword [ebp - 0xbc]
lea edx, [ebx + ebx + 0xafc840]
movzx eax, word [edx]
add edx, 2
add dword [ebp - 0xbc], 1
mov word [edi + eax*2 + 0x70], 0
mov eax, dword [ebp - 0xbc]
cmp eax, 0x13
mov dword [edi + 0x68], eax
jne 0x64fb6a
mov eax, dword [ebp - 0xa4]
mov edx, dword [ebp - 0xa8]
mov dword [edi + 0x54], 7
mov dword [edi + 0x6c], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x54]
mov dword [esp + 0x10], eax
lea eax, [edi + 0x6c]
mov dword [esp + 0xc], eax
lea eax, [edi + 0x70]
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0x13
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.00651890
test eax, eax
mov dword [ebp - 0x68], eax
je 0x6504b7
mov ecx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x64fa0c
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0x1f
jbe 0x64fbf4
mov eax, dword [ebp - 0x34]
xor esi, esi
mov edx, dword [ebp - 0x34]
mov ebx, dword [ebp + 8]
mov dword [edi], 0xa
shr eax, 8
shr edx, 0x18
and eax, 0xff00
add eax, edx
mov edx, dword [ebp - 0x34]
shl dword [ebp - 0x34], 0x18
and edx, 0xff00
shl edx, 8
add eax, edx
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x34], 0
mov dword [edi + 0x18], eax
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0xc]
test eax, eax
je 0x65110e
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.006523b0
mov ebx, dword [ebp + 8]
mov dword [edi], 0xb
mov dword [edi + 0x18], eax
mov dword [ebx + 0x30], eax
cmp dword [ebp + 0xc], 5
jne case.0x64fa15.12
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x7c]
mov ebx, dword [ebp - 0x74]
mov eax, dword [ebp - 0x80]
mov dword [edx + 0xc], ecx
mov ecx, dword [ebp - 0x78]
mov dword [edx + 0x10], ebx
mov ebx, dword [ebp - 0x34]
mov dword [edx], eax
mov dword [edx + 4], ecx
mov eax, dword [edi + 0x28]
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
test eax, eax
jne 0x64fcd3
cmp dword [edi], 0x17
ja 0x64fce6
mov eax, dword [ebp - 0x70]
cmp dword [edx + 0x10], eax
je 0x64fce6
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp + 8]
call fcn.0064f6c0
test eax, eax
jne 0x650444
mov edx, dword [ebp + 8]
mov eax, dword [edi + 8]
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x70]
sub ebx, dword [edx + 0x10]
sub esi, dword [edx + 4]
add dword [edx + 0x14], ebx
add dword [edx + 8], esi
add dword [edi + 0x1c], ebx
test eax, eax
je 0x64fd38
test ebx, ebx
je 0x64fd38
mov eax, dword [edi + 0x10]
test eax, eax
je 0x650918
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x18]
mov dword [esp + 8], ebx
mov eax, dword [ecx + 0xc]
mov dword [esp], edx
sub eax, ebx
mov dword [esp + 4], eax
call fcn.006511a0
mov edx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
cmp dword [edi + 4], 1
mov ecx, pe_nt_image_headers32
mov edx, 0
sbb eax, eax
not eax
and eax, 0x40
cmp dword [edi], 0xb
cmovne ecx, edx
add eax, dword [edi + 0x3c]
add eax, ecx
mov ecx, dword [ebp + 8]
or ebx, esi
mov dword [ecx + 0x2c], eax
je 0x64fd6c
cmp dword [ebp + 0xc], 4
jne 0x64f990
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x64f990
mov dword [ebp - 0x68], 0xfffffffb
nop
jmp 0x64f990
mov edx, dword [edi + 0x20]
test edx, edx
je 0x64fd97
mov eax, dword [ebp - 0x34]
shr eax, 8
and eax, 1
mov dword [edx], eax
test byte [edi + 0x11], 2
jne 0x65113d
mov dword [edi], 2
xor esi, esi
mov dword [ebp - 0x34], 0
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0x1f
jbe 0x64fdb0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x64fde7
mov ebx, dword [ebp - 0x34]
mov dword [eax + 4], ebx
test byte [edi + 0x11], 2
jne 0x650e55
mov dword [edi], 3
xor esi, esi
mov dword [ebp - 0x34], 0
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0xf
jbe 0x64fe00
mov edx, dword [edi + 0x20]
test edx, edx
je 0x64fe41
movzx eax, byte [ebp - 0x34]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x34]
shr eax, 8
mov dword [edx + 0xc], eax
test byte [edi + 0x11], 2
jne 0x650d1d
mov dword [edi], 4
xor esi, esi
mov dword [ebp - 0x34], 0
test byte [edi + 0x11], 4
jne 0x6500c2
mov eax, dword [edi + 0x20]
test eax, eax
je 0x64fe72
mov dword [eax + 0x10], 0
mov dword [edi], 5
mov eax, dword [edi + 0x10]
test ah, 4
je 0x64fefc
mov edx, dword [edi + 0x40]
mov ecx, dword [ebp - 0x78]
cmp dword [ebp - 0x78], edx
cmova ecx, edx
test ecx, ecx
mov dword [ebp - 0x40], ecx
je 0x64fef4
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x64feda
mov ebx, dword [ecx + 0x10]
test ebx, ebx
mov dword [ebp - 0x9c], ebx
je 0x64feda
mov eax, dword [ecx + 0x14]
mov ebx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x18]
sub eax, edx
add ebx, eax
mov edx, ecx
sub edx, eax
cmp ebx, ecx
cmovbe edx, dword [ebp - 0x40]
add eax, dword [ebp - 0x9c]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x80]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi + 0x10]
test ah, 2
jne 0x650d9a
mov eax, dword [ebp - 0x40]
mov edx, dword [edi + 0x40]
sub dword [ebp - 0x78], eax
add dword [ebp - 0x80], eax
sub edx, eax
mov dword [edi + 0x40], edx
test edx, edx
jne 0x64fc9c
mov dword [edi + 0x40], 0
mov dword [edi], 6
test byte [edi + 0x11], 8
je 0x650965
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
xor ebx, ebx
mov edx, dword [ebp - 0x80]
movzx edx, byte [ebx + edx]
add ebx, 1
mov byte [ebp - 0x95], dl
mov edx, dword [edi + 0x20]
test edx, edx
je 0x64ff56
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x64ff56
mov eax, dword [edi + 0x40]
cmp eax, dword [edx + 0x20]
jae 0x64ff56
movzx edx, byte [ebp - 0x95]
mov byte [ecx + eax], dl
add eax, 1
mov dword [edi + 0x40], eax
cmp byte [ebp - 0x95], 0
jne 0x6508fb
test byte [edi + 0x11], 2
jne 0x650c74
sub dword [ebp - 0x78], ebx
add dword [ebp - 0x80], ebx
cmp byte [ebp - 0x95], 0
jne 0x64fc9c
mov dword [edi + 0x40], 0
mov dword [edi], 7
test byte [edi + 0x11], 0x10
je 0x650948
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
xor ebx, ebx
mov eax, dword [ebp - 0x80]
mov edx, dword [edi + 0x20]
movzx eax, byte [ebx + eax]
add ebx, 1
test edx, edx
mov byte [ebp - 0x2d], al
je 0x64ffd4
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x64ffd4
mov eax, dword [edi + 0x40]
cmp eax, dword [edx + 0x28]
jae 0x64ffd4
movzx edx, byte [ebp - 0x2d]
mov byte [ecx + eax], dl
add eax, 1
mov dword [edi + 0x40], eax
cmp byte [ebp - 0x2d], 0
jne 0x6508ed
test byte [edi + 0x11], 2
jne 0x650b82
sub dword [ebp - 0x78], ebx
add dword [ebp - 0x80], ebx
cmp byte [ebp - 0x2d], 0
jne 0x64fc9c
mov dword [edi], 8
mov edx, dword [edi + 0x10]
test dh, 2
jne 0x650074
mov eax, dword [edi + 0x20]
test eax, eax
je 0x65001d
sar edx, 9
and edx, 1
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.006511a0
mov edx, dword [ebp + 8]
mov dword [edi], 0xb
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
mov eax, dword [edi]
jmp 0x64fa0c
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov ebx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [ebx]
add ebx, 1
mov dword [ebp - 0x80], ebx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0xf
jbe 0x65004f
movzx eax, word [edi + 0x18]
cmp eax, dword [ebp - 0x34]
je 0x650ca9
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], str.header_crc_mismatch
jmp 0x64fa0c
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0xf
jbe 0x65009d
mov eax, dword [edi + 0x20]
mov ebx, dword [ebp - 0x34]
test eax, eax
mov dword [edi + 0x40], ebx
je 0x6500d7
mov dword [eax + 0x14], ebx
test byte [edi + 0x11], 2
je 0x65010c
movzx eax, byte [ebp - 0x34]
shr dword [ebp - 0x34], 8
movzx edx, byte [ebp - 0x34]
mov dword [esp + 8], 2
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov byte [ebp - 0x1b], dl
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi + 0x18], eax
xor esi, esi
mov dword [ebp - 0x34], 0
jmp 0x64fe72
mov eax, dword [edi + 4]
test eax, eax
jne 0x65097c
cmp esi, 2
ja 0x65014f
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, 1
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x34]
shr eax, 1
mov ebx, eax
and ebx, 3
cmp ebx, 1
je 0x650d5c
jae 0x650cde
mov dword [edi], 0xd
shr eax, 2
sub esi, 3
mov dword [ebp - 0x34], eax
mov eax, dword [edi]
jmp 0x64fa0c
and ebx, 0xf
mov dword [edi + 0x48], ebx
mov dword [edi], 0x13
mov ebx, dword [edi + 0x48]
test ebx, ebx
je 0x6501dc
cmp esi, ebx
jae 0x6501c5
mov edx, dword [ebp - 0x78]
test edx, edx
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
add dword [ebp - 0x34], eax
cmp ebx, esi
ja 0x65019e
mov ecx, ebx
mov eax, 1
shl eax, cl
sub esi, ebx
sub eax, 1
and eax, dword [ebp - 0x34]
shr dword [ebp - 0x34], cl
add dword [edi + 0x40], eax
mov dword [edi], 0x14
mov ecx, dword [edi + 0x58]
mov eax, 1
mov ebx, dword [edi + 0x50]
shl eax, cl
mov dword [ebp - 0x84], ebx
lea ebx, [eax - 1]
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x84]
and eax, ebx
lea eax, [edx + eax*4]
movzx ecx, word [eax + 2]
mov word [ebp - 0x46], cx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
mov byte [ebp - 0xb8], al
movzx eax, dl
cmp esi, eax
jae 0x650271
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
mov edx, dword [ebp - 0x84]
shl eax, cl
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, ebx
lea eax, [edx + eax*4]
movzx ecx, word [eax + 2]
mov word [ebp - 0x46], cx
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
mov byte [ebp - 0xb8], al
movzx eax, dl
cmp eax, esi
ja 0x650222
movzx ebx, byte [ebp - 0xb8]
mov dword [ebp - 0x38], ebx
and ebx, 0xf0
je 0x650ba0
movzx ebx, dl
movzx eax, dl
mov ecx, ebx
sub esi, eax
shr dword [ebp - 0x34], cl
test byte [ebp - 0x38], 0x40
je 0x6503b6
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], 0xafc769
jmp 0x64fa0c
mov ebx, dword [edi + 8]
test ebx, ebx
jne 0x650755
mov dword [edi], 0x19
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x650628
mov edx, dword [edi + 0x10]
test edx, edx
jne 0x650305
jmp 0x650628
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0x1f
jbe 0x6502e0
mov ebx, dword [ebp - 0x34]
cmp dword [edi + 0x1c], ebx
je 0x65061f
mov eax, dword [ebp + 8]
mov dword [edi], 0x1b
mov dword [eax + 0x18], str.incorrect_length_check
mov eax, dword [edi]
jmp 0x64fa0c
mov dword [edi], 0x16
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x64fc9c
mov edx, dword [ebp - 0x70]
mov eax, dword [edi + 0x44]
sub edx, dword [ebp - 0x74]
cmp edx, eax
jae 0x6508de
sub eax, edx
mov edx, eax
mov eax, dword [edi + 0x30]
cmp edx, eax
jbe 0x650cb7
mov ebx, dword [edi + 0x28]
sub edx, eax
sub ebx, edx
add ebx, dword [edi + 0x34]
mov eax, dword [edi + 0x40]
cmp edx, eax
ja 0x6508e6
cmp edx, dword [ebp - 0x74]
cmova edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x7c]
sub dword [ebp - 0x74], edx
sub eax, edx
mov dword [ebp - 0x6c], edx
mov dword [edi + 0x40], eax
movzx eax, byte [ebx]
add ebx, 1
mov byte [ecx], al
add ecx, 1
sub edx, 1
jne 0x650388
mov edx, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x6c]
lea edx, [eax + edx]
mov eax, dword [edi + 0x40]
mov dword [ebp - 0x7c], edx
test eax, eax
je 0x6508d1
mov eax, dword [edi]
jmp 0x64fa0c
movzx ebx, byte [ebp - 0xb8]
movzx eax, word [ebp - 0x46]
mov dword [edi], 0x15
and ebx, 0xf
mov dword [edi + 0x44], eax
mov dword [edi + 0x48], ebx
mov ebx, dword [edi + 0x48]
test ebx, ebx
je 0x65041b
cmp esi, ebx
jae 0x650404
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp ebx, esi
ja 0x6503db
mov ecx, ebx
mov eax, 1
shl eax, cl
sub esi, ebx
sub eax, 1
and eax, dword [ebp - 0x34]
shr dword [ebp - 0x34], cl
add dword [edi + 0x44], eax
mov eax, dword [ebp - 0x70]
add eax, dword [edi + 0x2c]
sub eax, dword [ebp - 0x74]
cmp dword [edi + 0x44], eax
jbe 0x65032d
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], 0xafc77f
jmp 0x64fa0c
mov dword [edi], 0x1c
mov dword [ebp - 0x68], 0xfffffffc
jmp 0x64f990
mov dword [edi + 0x40], edx
xor esi, esi
mov dword [edi], 0xe
mov dword [ebp - 0x34], 0
mov eax, dword [edi + 0x40]
test eax, eax
je 0x650b75
mov ebx, dword [ebp - 0x78]
cmp dword [ebp - 0x74], eax
cmovbe eax, dword [ebp - 0x74]
cmp eax, dword [ebp - 0x78]
cmovbe ebx, eax
test ebx, ebx
je 0x64fc9c
mov eax, dword [ebp - 0x80]
mov edx, dword [ebp - 0x7c]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [edi]
sub dword [ebp - 0x78], ebx
add dword [ebp - 0x80], ebx
sub dword [ebp - 0x74], ebx
add dword [ebp - 0x7c], ebx
sub dword [edi + 0x40], ebx
jmp 0x64fa0c
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x64]
mov edx, dword [edi + 0x60]
mov ebx, dword [edi + 0x68]
add eax, edx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x64]
cmp dword [ebp - 0xa0], eax
jbe 0x651029
mov ecx, dword [edi + 0x54]
mov eax, 1
mov edx, dword [edi + 0x4c]
shl eax, cl
sub eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 0x60]
mov dword [ebp - 0x5c], edx
lea eax, [edx + eax*4]
movzx ecx, byte [eax + 1]
movzx edx, word [eax + 2]
movzx ebx, cl
cmp esi, ebx
jae 0x650553
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
mov ebx, dword [ebp - 0x5c]
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 0x60]
lea eax, [ebx + eax*4]
movzx ecx, byte [eax + 1]
movzx edx, word [eax + 2]
movzx ebx, cl
cmp ebx, esi
ja 0x650515
cmp dx, 0xf
jbe 0x650cc3
cmp dx, 0x10
je 0x650dbb
cmp dx, 0x11
nop
lea esi, [esi]
je 0x650ee4
movzx ecx, cl
mov edx, ecx
add edx, 7
cmp esi, edx
mov dword [ebp - 0xbc], ecx
jae 0x6505af
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, edx
jb 0x650588
mov eax, dword [ebp - 0x34]
movzx ecx, byte [ebp - 0xbc]
shr eax, cl
mov ecx, esi
mov edx, eax
sub ecx, ebx
and edx, 0x7f
shr eax, 7
add edx, 0xb
lea esi, [ecx - 7]
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x64]
lea eax, [edx + ebx]
cmp dword [ebp - 0xa0], eax
jb 0x6510f7
mov eax, dword [edi + 0x68]
mov word [ebp - 0xbe], cx
mov word [edi + eax*2 + 0x70], cx
add eax, 1
mov ecx, 1
mov dword [edi + 0x68], eax
movzx ebx, word [ebp - 0xbe]
add ecx, 1
mov word [edi + eax*2 + 0x70], bx
add eax, 1
cmp ecx, edx
mov dword [ebp - 0x64], eax
mov dword [edi + 0x68], eax
jne 0x6505fe
jmp 0x6504d8
mov dword [ebp - 0x34], 0
xor esi, esi
mov dword [edi], 0x1a
mov dword [ebp - 0x68], 1
jmp 0x64fc9c
mov dword [edi], 0x12
cmp dword [ebp - 0x78], 5
jbe 0x650994
cmp dword [ebp - 0x74], 0x101
jbe 0x650994
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x7c]
mov edx, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x78]
mov dword [ebx + 0x10], edx
mov edx, dword [ebp - 0x34]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x70]
mov dword [ebx + 4], eax
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], esi
mov dword [esp + 4], ecx
mov dword [esp], ebx
call fcn.00651e50
mov eax, dword [ebp + 8]
mov ebx, dword [ebx + 0xc]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x7c], ebx
mov esi, dword [edi + 0x3c]
mov edx, dword [edx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x74], eax
mov ebx, dword [edi + 0x38]
mov eax, dword [edi]
mov dword [ebp - 0x80], edx
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x34], ebx
jmp 0x64fa0c
mov dword [ebp - 0x68], 0xfffffffd
jmp 0x64fc9c
mov ecx, esi
and esi, 0xfffffff8
and ecx, 7
shr dword [ebp - 0x34], cl
cmp esi, 0x1f
ja 0x6506ff
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0x1f
jbe 0x6506d5
mov eax, dword [ebp - 0x34]
movzx edx, word [ebp - 0x34]
shr eax, 0x10
xor eax, 0xffff
cmp edx, eax
je 0x650456
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], str.invalid_stored_block_lengths
jmp 0x64fa0c
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x64fc9c
mov ebx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [ebx]
add ebx, 1
mov dword [ebp - 0x80], ebx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0x1f
jbe 0x650730
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x74]
add dword [ebx + 0x14], eax
add dword [edi + 0x1c], eax
test eax, eax
je 0x650799
mov edx, dword [edi + 0x10]
test edx, edx
je 0x650e9f
mov ecx, dword [ebp - 0x7c]
mov edx, dword [edi + 0x18]
mov dword [esp + 8], eax
sub ecx, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.006511a0
mov edx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
mov ebx, dword [edi + 0x10]
mov eax, dword [ebp - 0x34]
test ebx, ebx
jne 0x6507c9
mov edx, eax
shr edx, 8
shr eax, 0x18
and edx, 0xff00
add edx, eax
mov eax, dword [ebp - 0x34]
and eax, 0xff00
shl eax, 8
add edx, eax
mov eax, dword [ebp - 0x34]
shl eax, 0x18
lea eax, [edx + eax]
cmp eax, dword [edi + 0x18]
je 0x650ed0
mov ecx, dword [ebp + 8]
mov dword [edi], 0x1b
mov ebx, dword [ebp - 0x74]
mov eax, dword [edi]
mov dword [ecx + 0x18], str.incorrect_data_check
mov dword [ebp - 0x70], ebx
jmp 0x64fa0c
mov edx, dword [edi + 8]
test edx, edx
jne 0x650826
mov dword [edi], 0xc
mov eax, dword [edi]
jmp 0x64fa0c
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, 0xf
jbe 0x650803
and edx, 2
je 0x65083d
cmp dword [ebp - 0x34], 0x8b1f
je 0x650f4f
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], 0
test eax, eax
je 0x650852
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x650d83
movzx ecx, byte [ebp - 0x34]
mov edx, 0x8421085
mov eax, dword [ebp - 0x34]
shl ecx, 8
shr eax, 8
add ecx, eax
mov eax, ecx
mul edx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 4
mov eax, edx
shl eax, 5
sub eax, edx
cmp ecx, eax
jne 0x650d83
mov eax, dword [ebp - 0x34]
and eax, 0xf
cmp eax, 8
je 0x650fa9
mov ecx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x64fa0c
mov eax, dword [ebp - 0x74]
test eax, eax
je 0x64fc9c
mov ecx, dword [ebp - 0x7c]
mov eax, dword [edi + 0x40]
mov byte [ecx], al
add ecx, 1
sub dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ecx
mov dword [edi], 0x12
mov eax, dword [edi]
jmp 0x64fa0c
mov ebx, dword [ebp - 0x7c]
sub ebx, eax
mov eax, dword [edi + 0x40]
mov edx, eax
jmp 0x650373
cmp ebx, dword [ebp - 0x78]
jb 0x64ffa4
jmp 0x64ffde
cmp ebx, dword [ebp - 0x78]
nop
jb 0x64ff20
jmp 0x64ff63
mov al, 0xc
mov dword [edi], 0xc
jmp 0x64f9cc
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x18]
mov dword [esp + 8], ebx
mov eax, dword [ecx + 0xc]
mov dword [esp], edx
sub eax, ebx
mov dword [esp + 4], eax
call fcn.006523b0
jmp 0x64fd2f
mov eax, dword [eax + 4]
test eax, eax
je 0x64f9c1
jmp case.default.0x64fa15
mov eax, dword [edi + 0x20]
test eax, eax
lea esi, [esi]
je 0x64fff8
mov dword [eax + 0x24], 0
lea esi, [esi]
jmp 0x64fff8
mov eax, dword [edi + 0x20]
test eax, eax
je 0x64ff80
mov dword [eax + 0x1c], 0
jmp 0x64ff80
mov ecx, esi
and esi, 0xfffffff8
and ecx, 7
mov dword [edi], 0x18
mov eax, dword [edi]
shr dword [ebp - 0x34], cl
jmp 0x64fa0c
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x54]
mov dword [ebp - 0x94], eax
mov eax, 1
mov edx, dword [ebp - 0x94]
shl eax, cl
sub eax, 1
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 0xbc]
lea eax, [edx + eax*4]
movzx ecx, word [eax + 2]
mov word [ebp - 0x44], cx
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
movzx eax, dl
cmp esi, eax
jae 0x650a25
mov ebx, dword [ebp - 0x78]
test ebx, ebx
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
mov ebx, dword [ebp - 0x94]
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 0xbc]
lea eax, [ebx + eax*4]
movzx edx, word [eax + 2]
mov word [ebp - 0x44], dx
movzx edx, byte [eax + 1]
movzx ebx, byte [eax]
movzx eax, dl
cmp eax, esi
ja 0x6509d8
test bl, bl
je 0x650d01
movzx ecx, bl
mov dword [ebp - 0x3c], ecx
and ecx, 0xf0
jne 0x650ebc
movzx eax, dl
movzx ebx, word [ebp - 0x44]
mov ecx, eax
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x8c], eax
mov eax, 1
mov dword [ebp - 0x90], ebx
shl eax, cl
movzx ecx, byte [ebp - 0x8c]
sub eax, 1
mov dword [ebp - 0x88], eax
and eax, dword [ebp - 0x34]
shr eax, cl
add eax, ebx
mov ebx, dword [ebp - 0x94]
lea eax, [ebx + eax*4]
movzx ecx, word [eax + 2]
mov word [ebp - 0x42], cx
movzx ebx, byte [eax + 1]
mov byte [ebp - 0x55], bl
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x55]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0xbc]
cmp esi, eax
jae 0x650b1a
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
mov ebx, dword [ebp - 0x94]
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
movzx ecx, byte [ebp - 0x8c]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 0x88]
shr eax, cl
add eax, dword [ebp - 0x90]
lea eax, [ebx + eax*4]
movzx ecx, word [eax + 2]
mov word [ebp - 0x42], cx
movzx ebx, byte [eax + 1]
mov byte [ebp - 0x55], bl
movzx ebx, byte [eax]
movzx eax, byte [ebp - 0x55]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0x8c]
add eax, dword [ebp - 0xbc]
cmp eax, esi
ja 0x650aaa
movzx eax, dl
movzx ecx, byte [ebp - 0x8c]
sub esi, eax
movzx eax, byte [ebp - 0x55]
shr dword [ebp - 0x34], cl
movzx ecx, byte [ebp - 0xbc]
shr dword [ebp - 0x34], cl
sub esi, eax
movzx eax, word [ebp - 0x42]
test bl, bl
mov dword [edi + 0x40], eax
je 0x650d10
movzx eax, bl
mov dword [ebp - 0x3c], eax
test byte [ebp - 0x3c], 0x20
jne 0x650b75
test byte [ebp - 0x3c], 0x40
je 0x650187
mov edx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [edx + 0x18], 0xafc74d
jmp 0x64fa0c
mov dword [edi], 0xb
mov eax, dword [edi]
jmp 0x64fa0c
mov ecx, dword [ebp - 0x80]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi + 0x18], eax
jmp 0x64ffe8
movzx eax, word [ebp - 0x46]
movzx ecx, dl
mov dword [ebp - 0x50], ecx
mov ebx, dword [ebp - 0x84]
add ecx, dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
mov eax, 1
shl eax, cl
movzx ecx, byte [ebp - 0x50]
sub eax, 1
mov dword [ebp - 0x54], eax
and eax, dword [ebp - 0x34]
shr eax, cl
add eax, dword [ebp - 0x4c]
lea eax, [ebx + eax*4]
movzx ecx, word [eax + 2]
mov word [ebp - 0x46], cx
movzx ebx, byte [eax + 1]
mov byte [ebp - 0x56], bl
movzx eax, byte [eax]
movzx ebx, bl
mov byte [ebp - 0xb8], al
mov eax, dword [ebp - 0x50]
add eax, ebx
cmp esi, eax
jae 0x650c55
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov ecx, dword [ebp - 0x80]
sub dword [ebp - 0x78], 1
mov ebx, dword [ebp - 0x84]
movzx eax, byte [ecx]
mov ecx, esi
add esi, 8
add dword [ebp - 0x80], 1
shl eax, cl
movzx ecx, byte [ebp - 0x50]
add dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
and eax, dword [ebp - 0x54]
shr eax, cl
add eax, dword [ebp - 0x4c]
lea eax, [ebx + eax*4]
movzx ecx, word [eax + 2]
mov word [ebp - 0x46], cx
movzx ebx, byte [eax + 1]
mov byte [ebp - 0x56], bl
movzx eax, byte [eax]
movzx ebx, bl
mov byte [ebp - 0xb8], al
mov eax, dword [ebp - 0x50]
add eax, ebx
cmp eax, esi
ja 0x650bf6
movzx eax, dl
movzx ecx, byte [ebp - 0x50]
sub esi, eax
movzx edx, byte [ebp - 0x56]
movzx eax, byte [ebp - 0xb8]
shr dword [ebp - 0x34], cl
mov dword [ebp - 0x38], eax
jmp 0x65028a
mov ecx, dword [ebp - 0x80]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi + 0x18], eax
jmp 0x64ff6d
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x64fa0c
xor esi, esi
mov dword [ebp - 0x34], 0
jmp 0x650006
mov ebx, eax
sub ebx, edx
add ebx, dword [edi + 0x34]
jmp 0x650368
sub esi, ebx
mov ebx, dword [ebp - 0x64]
shr dword [ebp - 0x34], cl
mov word [edi + ebx*2 + 0x70], dx
add ebx, 1
mov dword [ebp - 0x64], ebx
mov dword [edi + 0x68], ebx
jmp 0x6504d8
cmp ebx, 2
je 0x650d51
cmp ebx, 3
jne 0x650177
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov dword [ebx + 0x18], str.invalid_block_type
jmp 0x650177
movzx eax, word [ebp - 0x44]
movzx ecx, dl
shr dword [ebp - 0x34], cl
sub esi, ecx
mov dword [edi + 0x40], eax
mov dword [edi], 0x17
mov eax, dword [edi]
jmp 0x64fa0c
movzx ebx, byte [ebp - 0x34]
shr dword [ebp - 0x34], 8
movzx eax, byte [ebp - 0x34]
mov dword [esp + 8], 2
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi + 0x18], eax
jmp 0x64fe4b
mov dword [edi], 0xf
jmp 0x650177
mov dword [edi + 0x4c], 0xafc900
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0xafc880
mov dword [edi + 0x58], 5
mov dword [edi], 0x12
jmp 0x650177
mov edx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x64fa0c
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x80]
mov dword [esp + 8], ecx
mov dword [esp + 4], ebx
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi + 0x18], eax
jmp 0x64fee3
movzx ecx, cl
mov dword [ebp - 0xbc], ecx
add ecx, 2
cmp esi, ecx
mov dword [ebp - 0xc4], ecx
jae 0x650dfe
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, dword [ebp - 0xc4]
jb 0x650dd1
mov eax, dword [ebp - 0x64]
sub esi, ebx
movzx ecx, byte [ebp - 0xbc]
shr dword [ebp - 0x34], cl
test eax, eax
je 0x651171
mov eax, dword [ebp - 0x64]
sub esi, 2
movzx ecx, word [edi + eax*2 + 0x6e]
mov eax, dword [ebp - 0x34]
shr dword [ebp - 0x34], 2
and eax, 3
lea edx, [eax + 3]
jmp 0x6505d2
test word [ebp - 0x34], 0xe000
je 0x64fd85
mov edx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x64fa0c
movzx eax, byte [ebp - 0x34]
shr dword [ebp - 0x34], 8
movzx edx, byte [ebp - 0x34]
shr dword [ebp - 0x34], 8
movzx ecx, byte [ebp - 0x34]
shr dword [ebp - 0x34], 8
movzx ebx, byte [ebp - 0x34]
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1b], dl
mov byte [ebp - 0x1a], cl
mov byte [ebp - 0x19], bl
mov dword [esp + 8], 4
mov dword [esp + 4], eax
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi + 0x18], eax
jmp 0x64fdf1
mov ebx, dword [ebp - 0x7c]
mov edx, dword [edi + 0x18]
mov dword [esp + 8], eax
sub ebx, eax
mov dword [esp + 4], ebx
mov dword [esp], edx
call fcn.006523b0
jmp 0x650790
movzx ecx, dl
movzx eax, word [ebp - 0x44]
shr dword [ebp - 0x34], cl
sub esi, ecx
mov dword [edi + 0x40], eax
jmp 0x650b4e
mov eax, dword [ebp - 0x74]
xor esi, esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x70], eax
jmp 0x6502c0
movzx ecx, cl
mov dword [ebp - 0xbc], ecx
add ecx, 3
cmp esi, ecx
mov dword [ebp - 0xc4], ecx
jae 0x650f27
mov eax, dword [ebp - 0x78]
test eax, eax
je 0x64fc9c
mov edx, dword [ebp - 0x80]
mov ecx, esi
add esi, 8
sub dword [ebp - 0x78], 1
movzx eax, byte [edx]
add edx, 1
mov dword [ebp - 0x80], edx
shl eax, cl
add dword [ebp - 0x34], eax
cmp esi, dword [ebp - 0xc4]
jb 0x650efa
mov eax, dword [ebp - 0x34]
movzx ecx, byte [ebp - 0xbc]
shr eax, cl
mov ecx, esi
mov edx, eax
sub ecx, ebx
and edx, 7
shr eax, 3
add edx, 3
lea esi, [ecx - 3]
xor ecx, ecx
mov dword [ebp - 0x34], eax
jmp 0x6505d2
mov dword [esp + 8], 0
xor esi, esi
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.006511a0
mov dword [edi + 0x18], eax
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0x1f
mov byte [ebp - 0x1b], 0x8b
mov dword [esp + 8], 2
mov dword [esp + 4], eax
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi], 1
mov dword [ebp - 0x34], 0
mov dword [edi + 0x18], eax
mov eax, dword [edi]
jmp 0x64fa0c
shr dword [ebp - 0x34], 4
mov eax, dword [ebp - 0x34]
and eax, 0xf
lea ecx, [eax + 8]
cmp ecx, dword [edi + 0x24]
jbe 0x650fd5
mov ebx, dword [ebp + 8]
sub esi, 4
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], str.invalid_window_size
jmp 0x64fa0c
mov eax, 1
shl eax, cl
mov dword [edi + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.006523b0
mov edx, dword [ebp + 8]
and dword [ebp - 0x34], 0x200
cmp dword [ebp - 0x34], 1
mov dword [ebp - 0x34], 0
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
sbb eax, eax
xor esi, esi
and eax, 2
add eax, 9
mov dword [edi], eax
mov eax, dword [edi]
jmp 0x64fa0c
cmp dword [edi], 0x1b
je 0x64fa63
mov ecx, dword [ebp - 0xa4]
lea ebx, [edi + 0x6c]
mov eax, dword [ebp - 0xa8]
mov dword [edi + 0x54], 9
mov dword [edi + 0x6c], ecx
mov dword [edi + 0x4c], ecx
mov dword [esp + 0x14], eax
lea eax, [edi + 0x54]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x60]
mov dword [esp], 1
mov dword [esp + 8], eax
lea eax, [edi + 0x70]
mov dword [esp + 4], eax
call fcn.00651890
test eax, eax
mov dword [ebp - 0x68], eax
je 0x651095
mov edx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
jmp 0x64fa0c
mov eax, dword [edi + 0x6c]
mov ecx, dword [ebp - 0xa8]
mov dword [edi + 0x58], 6
mov dword [edi + 0x50], eax
lea eax, [edi + 0x58]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 0x64]
mov dword [esp + 8], eax
mov eax, dword [edi + 0x60]
mov dword [esp], 2
lea eax, [edi + eax*2 + 0x70]
mov dword [esp + 4], eax
call fcn.00651890
test eax, eax
mov dword [ebp - 0x68], eax
je 0x65063a
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], str.invalid_distances_set
jmp 0x64fa0c
mov eax, dword [ebp + 8]
mov dword [edi], 0x1b
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov eax, dword [edi]
jmp 0x64fa0c
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x7c]
mov ecx, dword [ebp - 0x74]
mov ebx, dword [ebp - 0x80]
mov dword [ebp - 0x68], 2
mov dword [eax + 0xc], edx
mov edx, dword [ebp - 0x78]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x34]
mov dword [eax], ebx
mov dword [eax + 4], edx
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], esi
jmp 0x64f990
movzx ecx, byte [ebp - 0x34]
lea eax, [ebp - 0x1c]
shr dword [ebp - 0x34], 8
movzx ebx, byte [ebp - 0x34]
mov dword [esp + 8], 2
mov byte [ebp - 0x1c], cl
mov dword [esp + 4], eax
mov byte [ebp - 0x1b], bl
mov eax, dword [edi + 0x18]
mov dword [esp], eax
call fcn.006511a0
mov dword [edi + 0x18], eax
jmp 0x64fda1
mov ebx, dword [ebp + 8]
mov dword [edi], 0x1b
mov eax, dword [edi]
mov dword [ebx + 0x18], str.invalid_bit_length_repeat
jmp 0x64fa0c