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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
push ebp
push edi
test eax, eax
je 0x1001e9cf
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x1001e9cf
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1001e9cf
mov ebp, dword [eax]
test ebp, ebp
jne 0x1001d5b6
cmp dword [eax + 4], ebp
jne 0x1001e9cf
cmp dword [edi], 0xb
jne 0x1001d5c1
mov dword [edi], 0xc
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
push ebx
mov ebx, dword [edi + 0x38]
push esi
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x38], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], 0
cmp eax, 0x1c
ja case.default.0x1001d5f6
jmp dword [eax*4 + 0x1001e9dc]
cmp dword [edi + 8], 0
jne 0x1001d60e
mov dword [edi], 0xc
jmp 0x1001e88b
cmp esi, 0x10
jae 0x1001d633
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x1001d613
test byte [edi + 8], 2
je 0x1001d67d
cmp ebx, 0x8b1f
jne 0x1001d67d
push 0
push 0
xor ecx, ecx
call fcn.100233d0
push 2
lea ecx, [esp + 0x28]
mov dword [edi + 0x18], eax
mov byte [esp + 0x28], 0x1f
mov byte [esp + 0x29], 0x8b
call fcn.100233f0
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor ebx, ebx
mov dword [edi + 0x18], eax
xor esi, esi
mov dword [edi], 1
jmp 0x1001e88b
mov eax, dword [edi + 0x20]
mov dword [edi + 0x10], 0
test eax, eax
je 0x1001d692
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x1001d73b
movzx eax, bl
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
jne 0x1001d73b
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x1001d6d8
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x1001e885
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub esi, 4
cmp ecx, dword [edi + 0x24]
jbe 0x1001d6ff
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x1001e885
mov edx, 1
shl edx, cl
push 0
xor eax, eax
xor ecx, ecx
mov dword [edi + 0x14], edx
call fcn.10022830
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi], ebx
add esp, 4
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
xor esi, esi
jmp 0x1001e88b
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [esp + 0x10]
jmp 0x1001e885
cmp esi, 0x10
jae 0x1001d774
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x1001d754
mov dword [edi + 0x10], ebx
cmp bl, 8
je 0x1001d78c
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x1001e885
test ebx, 0xe000
je 0x1001d7a4
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x1001e885
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001d7b5
mov ecx, ebx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test dword [edi + 0x10], 0x200
je 0x1001d7e1
mov eax, dword [edi + 0x18]
mov byte [esp + 0x1c], bl
shr ebx, 8
push 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.100233f0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x1001d7f2
cmp esi, 0x20
jae 0x1001d812
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x1001d7f2
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001d81c
mov dword [eax + 4], ebx
test dword [edi + 0x10], 0x200
je 0x1001d85a
mov eax, dword [edi + 0x18]
mov ecx, ebx
shr ecx, 8
mov edx, ebx
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], cl
shr edx, 0x10
shr ebx, 0x18
push 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x22], dl
mov byte [esp + 0x23], bl
call fcn.100233f0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x1001d870
cmp esi, 0x10
jae 0x1001d890
jmp 0x1001d870
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x1001d870
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001d8ad
mov ecx, ebx
and ecx, 0xff
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x20]
mov eax, ebx
shr eax, 8
mov dword [ecx + 0xc], eax
test dword [edi + 0x10], 0x200
je 0x1001d8d9
mov eax, dword [edi + 0x18]
mov byte [esp + 0x1c], bl
shr ebx, 8
push 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.100233f0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x1001d950
cmp esi, 0x10
jae 0x1001d911
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x1001d8f1
mov eax, dword [edi + 0x20]
mov dword [edi + 0x40], ebx
test eax, eax
je 0x1001d91e
mov dword [eax + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x1001d94a
mov eax, dword [edi + 0x18]
mov byte [esp + 0x1c], bl
shr ebx, 8
push 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.100233f0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
jmp 0x1001d95e
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001d95e
mov dword [eax + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x1001da14
mov eax, dword [edi + 0x40]
mov dword [esp + 0x14], eax
cmp eax, edx
jbe 0x1001d982
mov eax, edx
mov dword [esp + 0x14], edx
test eax, eax
je 0x1001da0a
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x1001d9d8
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x1001d9d8
mov ecx, dword [edi + 0x20]
mov ecx, dword [ecx + 0x14]
sub ecx, dword [edi + 0x40]
mov edx, dword [edi + 0x20]
mov edx, dword [edx + 0x18]
mov dword [esp + 0x20], ecx
add ecx, eax
cmp ecx, edx
jbe 0x1001d9bb
sub edx, dword [esp + 0x20]
mov eax, edx
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x24]
add edx, eax
push ebp
push edx
call fcn.10059a80
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x1001d9ff
mov ecx, dword [esp + 0x14]
mov edx, dword [edi + 0x18]
push ecx
push edx
mov ecx, ebp
call fcn.100233d0
mov edx, dword [esp + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x1c]
add esp, 8
sub edx, eax
add ebp, eax
sub dword [edi + 0x40], eax
mov dword [esp + 0x10], edx
cmp dword [edi + 0x40], 0
jne 0x1001e8e9
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x1001dacb
test edx, edx
je 0x1001e8e9
xor eax, eax
jmp 0x1001da40
movzx ecx, byte [eax + ebp]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x1001da79
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x1001da79
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x1001da79
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x20]
mov byte [edx + ecx], al
inc dword [edi + 0x40]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
je 0x1001da88
cmp eax, edx
jb 0x1001da40
test dword [edi + 0x10], 0x200
je 0x1001dab6
mov eax, dword [edi + 0x18]
test ebp, ebp
jne 0x1001da9c
xor eax, eax
jmp 0x1001daaf
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.100233f0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x10], edx
jne 0x1001e8e9
jmp 0x1001dad9
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001dad9
mov dword [eax + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x1001db8b
test edx, edx
je 0x1001e8e9
xor eax, eax
lea ecx, [ecx]
movzx ecx, byte [eax + ebp]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x20], ecx
test eax, eax
je 0x1001db39
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x1001db39
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x1001db39
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x20]
mov byte [edx + ecx], al
inc dword [edi + 0x40]
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], 0
mov eax, dword [esp + 0x14]
je 0x1001db48
cmp eax, edx
jb 0x1001db00
test dword [edi + 0x10], 0x200
je 0x1001db76
mov eax, dword [edi + 0x18]
test ebp, ebp
jne 0x1001db5c
xor eax, eax
jmp 0x1001db6f
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.100233f0
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x20], 0
mov dword [esp + 0x10], edx
jne 0x1001e8e9
jmp 0x1001db99
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001db99
mov dword [eax + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x1001dbec
cmp esi, 0x10
jae 0x1001dbd0
lea ecx, [ecx]
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x10
jb 0x1001dbb0
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x1001dbe8
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x1001e885
xor ebx, ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x1001dc09
mov ecx, dword [edi + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov edx, dword [edi + 0x20]
mov dword [edx + 0x30], 1
push 0
push 0
xor ecx, ecx
call fcn.100233d0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x18]
add esp, 8
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [edi], 0xb
jmp 0x1001e88b
cmp esi, 0x20
jae 0x1001dc55
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x1001dc35
mov ecx, ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
mov eax, ebx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
shr ebx, 0x18
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x40]
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x1001e8a3
push 0
xor eax, eax
xor ecx, ecx
call fcn.10022830
mov edx, dword [esp + 0x44]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [edi + 0x18], eax
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x1001dcd3
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
jmp 0x1001e88b
cmp esi, 3
jae 0x1001dcf8
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 3
jb 0x1001dcd8
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
dec esi
mov dword [edi + 4], ecx
cmp eax, 3
ja case.default.0x1001dd0d
jmp dword [eax*4 + 0x1001ea50]
shr ebx, 2
mov dword [edi], 0xd
sub esi, 2
jmp 0x1001e88b
shr ebx, 2
mov dword [edi + 0x4c], 0x100c5b78
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x100c4870
mov dword [edi + 0x58], 5
mov dword [edi], 0x12
sub esi, 2
jmp 0x1001e88b
shr ebx, 2
mov dword [edi], 0xf
sub esi, 2
jmp 0x1001e88b
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edi], 0x1b
shr ebx, 2
sub esi, 2
jmp 0x1001e88b
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
cmp esi, 0x20
jae 0x1001ddb0
lea ecx, [ecx]
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x1001dd90
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x1001ddd2
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x1001e885
xor ebx, ebx
mov dword [edi + 0x40], eax
xor esi, esi
mov dword [edi], 0xe
mov eax, dword [edi + 0x40]
mov dword [esp + 0x14], eax
test eax, eax
je 0x1001e445
cmp eax, edx
jbe 0x1001ddf8
mov eax, edx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1001de06
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x1001e8e9
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
push ecx
push ebp
push edx
call fcn.10059a80
mov eax, dword [esp + 0x20]
sub dword [esp + 0x1c], eax
sub dword [esp + 0x24], eax
add dword [esp + 0x30], eax
mov edx, dword [esp + 0x1c]
add esp, 0xc
add ebp, eax
sub dword [edi + 0x40], eax
jmp 0x1001e88b
cmp esi, 0xe
jae 0x1001de64
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0xe
jb 0x1001de44
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [edi + 0x60], ecx
shr ebx, 5
mov ecx, ebx
and eax, 0x1f
and ecx, 0xf
inc eax
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], ecx
ja 0x1001df84
cmp eax, 0x1e
ja 0x1001df84
mov dword [edi + 0x68], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x68]
cmp ecx, dword [edi + 0x5c]
jae 0x1001df0b
lea ecx, [ecx]
cmp esi, 3
jae 0x1001dee5
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 3
jb 0x1001dec5
mov eax, dword [edi + 0x68]
movzx eax, word [eax*2 + 0x100c6378]
mov ecx, ebx
and ecx, 7
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
mov ecx, dword [edi + 0x68]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x5c]
jb 0x1001dec0
mov eax, 0x13
cmp dword [edi + 0x68], eax
jae 0x1001df3a
jmp 0x1001df20
mov edx, dword [edi + 0x68]
movzx ecx, word [edx*2 + 0x100c6378]
xor edx, edx
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], eax
jb 0x1001df20
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
push 0x13
lea eax, [edi + 0x70]
push eax
lea edx, [edi + 0x54]
push 0
mov dword [edx], 7
call fcn.10022ef0
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x1001df94
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x1001e885
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x1001e885
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jae 0x1001e1c5
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
jbe 0x1001e011
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
dec edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
ja 0x1001dfd3
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x1001e069
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x1001e04d
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov eax, dword [esp + 0x14]
movzx ecx, ah
mov dword [esp + 0x10], edx
cmp esi, ecx
jb 0x1001e027
movzx ecx, ah
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
mov cx, word [esp + 0x16]
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
jmp 0x1001e1b6
mov cx, word [esp + 0x16]
cmp cx, 0x10
jne 0x1001e0d7
movzx ecx, ah
lea eax, [ecx + 2]
mov dword [esp + 0x2c], ecx
cmp esi, eax
jae 0x1001e0a8
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
lea eax, [ecx + 2]
inc ebp
mov dword [esp + 0x10], edx
cmp esi, eax
jb 0x1001e082
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
test eax, eax
je 0x1001e21a
movzx ecx, word [edi + eax*2 + 0x6e]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], eax
sub esi, 2
jmp 0x1001e181
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x2c], ecx
jne 0x1001e12e
lea eax, [ecx + 3]
cmp esi, eax
jae 0x1001e116
jmp 0x1001e0f0
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
lea eax, [ecx + 3]
inc ebp
mov dword [esp + 0x10], edx
cmp esi, eax
jb 0x1001e0f0
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [esp + 0x14], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x1001e171
lea eax, [ecx + 7]
cmp esi, eax
jae 0x1001e15b
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
lea eax, [ecx + 7]
inc ebp
mov dword [esp + 0x10], edx
cmp esi, eax
jb 0x1001e135
shr ebx, cl
mov eax, ebx
and eax, 0x7f
add eax, 0xb
mov dword [esp + 0x14], eax
shr ebx, 7
mov eax, 0xfffffff9
sub eax, ecx
add esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0
mov ecx, dword [edi + 0x68]
add ecx, eax
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp ecx, eax
ja 0x1001e22a
cmp dword [esp + 0x14], 0
je 0x1001e1b6
mov eax, dword [esp + 0x20]
nop
mov ecx, dword [edi + 0x68]
dec dword [esp + 0x14]
mov word [edi + ecx*2 + 0x70], ax
inc dword [edi + 0x68]
cmp dword [esp + 0x14], 0
jne 0x1001e1a0
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jb 0x1001dfb0
cmp dword [edi], 0x1b
je 0x1001e88b
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
mov eax, dword [edi + 0x60]
push eax
lea eax, [edi + 0x70]
push eax
lea edx, [edi + 0x54]
push 1
mov dword [edx], 9
call fcn.10022ef0
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x1001e23a
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [ecx + 0x18], str.invalid_literal_lengths_set
jmp 0x1001e885
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x1001e885
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x1001e885
mov edx, dword [edi + 0x6c]
lea eax, [edi + 0x2f0]
push eax
mov eax, dword [edi + 0x64]
push eax
mov eax, dword [edi + 0x60]
lea ecx, [edi + 0x6c]
lea eax, [edi + eax*2 + 0x70]
mov dword [edi + 0x50], edx
push eax
lea edx, [edi + 0x58]
push 2
mov dword [edx], 6
call fcn.10022ef0
mov edx, dword [esp + 0x20]
add esp, 0x10
mov dword [esp + 0x30], eax
test eax, eax
je 0x1001e285
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_distances_set
jmp 0x1001e885
mov dword [edi], 0x12
cmp edx, 6
jb 0x1001e2ef
cmp dword [esp + 0x18], 0x102
jb 0x1001e2ef
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x10]
push ecx
push eax
mov dword [eax], ebp
mov dword [eax + 4], edx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.10022a90
mov eax, dword [esp + 0x48]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov ebp, dword [eax]
mov ebx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 4]
add esp, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edx
jmp 0x1001e88b
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
jbe 0x1001e352
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
dec edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
ja 0x1001e314
test al, al
je 0x1001e41a
test al, 0xf0
jne 0x1001e41a
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x20], ecx
movzx ecx, al
add ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x1001e40d
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
movzx eax, ch
mov dword [esp + 0x20], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x2e]
add eax, ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x20]
cmp eax, esi
ja 0x1001e3b3
movzx ecx, byte [esp + 0x2d]
mov eax, dword [esp + 0x14]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x20], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [edi + 0x40], ecx
test al, al
jne 0x1001e441
mov dword [edi], 0x17
jmp 0x1001e88b
test al, 0x20
je 0x1001e450
mov dword [edi], 0xb
jmp 0x1001e88b
test al, 0x40
je 0x1001e464
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x1001e885
movzx ecx, al
and ecx, 0xf
mov dword [edi + 0x48], ecx
mov dword [edi], 0x13
mov eax, dword [edi + 0x48]
test eax, eax
je 0x1001e4b4
cmp esi, eax
jae 0x1001e4a0
mov edi, edi
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, dword [edi + 0x48]
jb 0x1001e480
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x40], eax
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x14
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
jbe 0x1001e51e
nop
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x58]
dec edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [esp + 0x14], eax
cmp ecx, esi
ja 0x1001e4e0
test al, 0xf0
jne 0x1001e5de
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x20], ecx
movzx ecx, al
add ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x1001e5d1
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x2c]
dec edx
add esi, 8
add ebx, eax
movzx eax, ch
mov dword [esp + 0x20], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x20]
inc ebp
mov dword [esp + 0x10], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x2e]
add eax, ecx
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x20]
cmp eax, esi
ja 0x1001e577
movzx ecx, byte [esp + 0x2d]
mov eax, dword [esp + 0x14]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x20], ecx
test al, 0x40
je 0x1001e602
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x1001e885
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], eax
mov dword [edi], 0x15
mov eax, dword [edi + 0x48]
test eax, eax
je 0x1001e658
cmp esi, eax
jae 0x1001e644
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, dword [edi + 0x48]
jb 0x1001e624
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x44], eax
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x2c]
sub ecx, dword [esp + 0x18]
add ecx, dword [esp + 0x28]
cmp dword [edi + 0x44], ecx
jbe 0x1001e678
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x1001e885
mov dword [edi], 0x16
cmp dword [esp + 0x18], 0
je 0x1001e8e9
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x18]
mov eax, dword [edi + 0x44]
cmp eax, ecx
jbe 0x1001e6d4
sub eax, ecx
mov ecx, dword [edi + 0x30]
mov dword [esp + 0x14], eax
cmp eax, ecx
jbe 0x1001e6b5
sub eax, ecx
mov ecx, dword [edi + 0x34]
add ecx, dword [edi + 0x28]
mov dword [esp + 0x14], eax
sub ecx, eax
jmp 0x1001e6c1
mov ecx, dword [edi + 0x34]
sub ecx, eax
add ecx, dword [edi + 0x30]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x40]
mov dword [esp + 0x34], ecx
cmp eax, ecx
jbe 0x1001e6e9
mov eax, ecx
jmp 0x1001e6e5
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [edi + 0x40]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jbe 0x1001e6f7
mov eax, ecx
mov dword [esp + 0x14], eax
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
sub ecx, eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x40], ecx
lea ebx, [ebx]
mov ecx, dword [esp + 0x2c]
mov cl, byte [ecx]
inc dword [esp + 0x2c]
mov byte [eax], cl
inc eax
sub dword [esp + 0x14], 1
jne 0x1001e710
cmp dword [edi + 0x40], 0
mov dword [esp + 0x24], eax
jne 0x1001e88b
mov dword [edi], 0x12
jmp 0x1001e88b
cmp dword [esp + 0x18], 0
je 0x1001e8e9
mov eax, dword [esp + 0x24]
mov cl, byte [edi + 0x40]
mov byte [eax], cl
inc eax
dec dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [edi], 0x12
jmp 0x1001e88b
cmp dword [edi + 8], 0
je 0x1001e836
cmp esi, 0x20
jae 0x1001e794
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x1001e774
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add dword [ecx + 0x14], eax
add dword [edi + 0x1c], eax
mov dword [esp + 0x28], eax
test eax, eax
je 0x1001e7ed
cmp dword [edi + 0x10], 0
je 0x1001e7c9
mov edx, dword [edi + 0x18]
mov ecx, dword [esp + 0x24]
push eax
sub ecx, eax
push edx
call fcn.100233d0
add esp, 8
jmp 0x1001e7df
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
sub eax, ecx
mov ecx, dword [edi + 0x18]
call fcn.10022830
add esp, 4
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
mov eax, ebx
jne 0x1001e820
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
mov ecx, ebx
shr ecx, 8
and ecx, 0xff00
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [edi + 0x18]
je 0x1001e832
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x1001e885
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x1001e8d1
cmp dword [edi + 0x10], 0
je 0x1001e8d1
cmp esi, 0x20
jae 0x1001e875
test edx, edx
je 0x1001e8e9
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
dec edx
add esi, 8
inc ebp
add ebx, eax
mov dword [esp + 0x10], edx
cmp esi, 0x20
jb 0x1001e855
cmp ebx, dword [edi + 0x1c]
je 0x1001e8cd
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1b
mov eax, dword [edi]
cmp eax, 0x1c
jbe switch.0x1001d5f6
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x3c], esi
pop esi
mov dword [edi + 0x38], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x14]
pop ebx
mov dword [eax], ebp
pop edi
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov eax, 2
pop ebp
add esp, 0x2c
ret
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1a
mov dword [esp + 0x30], 1
jmp 0x1001e8e9
mov dword [esp + 0x30], 0xfffffffd
cmp dword [edi + 0x28], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0x10], ecx
mov dword [eax], ebp
mov dword [eax + 4], edx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x1001e919
cmp dword [edi], 0x18
jge 0x1001e93d
mov edx, ecx
cmp dword [esp + 0x28], edx
je 0x1001e93d
push eax
mov eax, dword [esp + 0x2c]
call fcn.1001d490
add esp, 4
test eax, eax
je 0x1001e93d
mov dword [edi], 0x1c
pop esi
pop ebx
pop edi
mov eax, 0xfffffffc
pop ebp
add esp, 0x2c
ret
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x28]
sub edx, dword [esi + 0x10]
sub eax, dword [esi + 4]
add dword [esi + 0x14], edx
add dword [esi + 8], eax
add dword [edi + 0x1c], edx
cmp dword [edi + 8], 0
je 0x1001e995
test edx, edx
je 0x1001e995
cmp dword [edi + 0x10], 0
je 0x1001e97e
mov ecx, dword [esi + 0xc]
sub ecx, edx
mov eax, dword [edi + 0x18]
jne 0x1001e976
xor eax, eax
jmp 0x1001e98f
push edx
call fcn.100233f0
jmp 0x1001e98c
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x18]
push edx
sub eax, edx
call fcn.10022830
add esp, 4
mov dword [edi + 0x18], eax
mov dword [esi + 0x30], eax
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x30]
neg ecx
sbb ecx, ecx
and ecx, 0x40
xor edx, edx
cmp dword [edi], 0xb
setne dl
dec edx
and edx, 0x80
add ecx, edx
add ecx, dword [edi + 0x3c]
mov dword [esi + 0x2c], ecx
test eax, eax
jne 0x1001e89b
pop esi
pop ebx
pop edi
mov eax, 0xfffffffb
pop ebp
add esp, 0x2c
ret
pop edi
mov eax, 0xfffffffe
pop ebp
add esp, 0x2c
ret