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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, ecx
push edi
je case.default.0x100321c7
mov ebx, dword [esi + 0x1c]
cmp ebx, ecx
je case.default.0x100321c7
cmp dword [esi + 0xc], ecx
je case.default.0x100321c7
cmp dword [esi], ecx
jne 0x1003218b
cmp dword [esi + 4], ecx
jne case.default.0x100321c7
cmp dword [ebx], 0xb
jne 0x10032196
mov dword [ebx], 0xc
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x10033187
jmp dword [eax*4 + 0x100332b0]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x10032200
mov dword [ebx], 0xc
jmp 0x10033187
cmp dword [ebp - 0xc], 0
je 0x100331db
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
dec dword [ebp - 0xc]
mov ecx, edi
shl edx, cl
add dword [ebp - 4], edx
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x100321e0
test al, 2
je 0x1003223c
cmp dword [ebp - 4], 0x8b1f
jne 0x1003223c
xor edi, edi
push 2
lea edx, [ebp - 0x18]
xor eax, eax
mov dword [ebx + 0x18], edi
mov byte [ebp - 0x18], 0x1f
mov byte [ebp - 0x17], 0x8b
call fcn.10014918
mov dword [ebx + 0x18], eax
mov dword [ebp - 4], edi
mov dword [ebx], 1
jmp 0x10033187
mov eax, dword [ebx + 0x20]
and dword [ebx + 0x10], 0
test eax, eax
je 0x1003224b
or dword [eax + 0x30], 0xffffffff
test byte [ebx + 8], 1
je 0x100322cb
movzx eax, byte [ebp - 4]
mov ecx, dword [ebp - 4]
shl eax, 8
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x100322cb
mov eax, dword [ebp - 4]
and al, 0xf
cmp al, 8
je 0x10032280
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x10033181
shr dword [ebp - 4], 4
mov ecx, dword [ebp - 4]
and ecx, 0xf
add ecx, 8
sub edi, 4
cmp ecx, dword [ebx + 0x24]
jbe 0x100322a1
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x10033181
xor eax, eax
inc eax
mov edx, eax
shl edx, cl
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], edx
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 4]
shr eax, 8
not eax
and eax, 2
or eax, 9
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
jmp 0x10033187
mov dword [esi + 0x18], str.incorrect_header_check
jmp 0x10033181
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x100322d7
mov ecx, dword [ebp - 4]
cmp cl, 8
mov dword [ebx + 0x10], ecx
jne 0x10032274
test cx, 0xe000
je 0x1003231e
mov dword [esi + 0x18], str.unknown_header_flags_set
jmp 0x10033181
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1003232d
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test word [ebx + 0x10], 0x200
je 0x10032351
mov eax, dword [ebp - 4]
mov byte [ebp - 0x18], al
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, dword [ebx + 0x18]
push 2
lea edx, [ebp - 0x18]
call fcn.10014918
mov dword [ebx + 0x18], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], 2
jmp case.0x100321c7.2
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x1003235e
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10032390
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
test word [ebx + 0x10], 0x200
je 0x100323c4
mov eax, dword [ebp - 4]
mov ecx, eax
shr ecx, 8
mov byte [ebp - 0x17], cl
mov ecx, eax
mov byte [ebp - 0x18], al
shr eax, 0x18
shr ecx, 0x10
mov byte [ebp - 0x15], al
mov eax, dword [ebx + 0x18]
push 4
lea edx, [ebp - 0x18]
mov byte [ebp - 0x16], cl
call fcn.10014918
mov dword [ebx + 0x18], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], 3
jmp case.0x100321c7.3
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x100323d1
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10032415
mov ecx, dword [ebp - 4]
and ecx, 0xff
mov dword [eax + 8], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebx + 0x20]
shr eax, 8
mov dword [ecx + 0xc], eax
test word [ebx + 0x10], 0x200
je 0x10032439
mov eax, dword [ebp - 4]
mov byte [ebp - 0x18], al
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, dword [ebx + 0x18]
push 2
lea edx, [ebp - 0x18]
call fcn.10014918
mov dword [ebx + 0x18], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], 4
test word [ebx + 0x10], 0x400
jne 0x100324d5
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x1003245b
and dword [eax + 0x10], 0
mov dword [ebx], 5
test word [ebx + 0x10], 0x400
je 0x1003255c
mov edx, dword [ebx + 0x40]
mov eax, dword [ebp - 0xc]
cmp edx, eax
mov dword [ebp - 0x10], edx
jbe 0x1003247d
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10032552
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x1003252d
mov eax, dword [ecx + 0x10]
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x1003252d
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
sub eax, edx
mov edx, dword [ebp - 0x10]
add edx, eax
cmp edx, ecx
jbe 0x10032518
sub ecx, eax
jmp 0x1003251b
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x100324b5
mov eax, dword [ebx + 0x20]
test eax, eax
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x40], ecx
je 0x100324ea
mov dword [eax + 0x14], ecx
test word [ebx + 0x10], 0x200
je 0x1003250e
mov eax, dword [ebp - 4]
mov byte [ebp - 0x18], al
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, dword [ebx + 0x18]
push 2
lea edx, [ebp - 0x18]
call fcn.10014918
mov dword [ebx + 0x18], eax
xor edi, edi
mov dword [ebp - 4], edi
jmp 0x1003245b
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x2c]
push dword [ebp - 8]
add ecx, eax
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
test word [ebx + 0x10], 0x200
je 0x10032546
push dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
call fcn.10014918
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
add dword [ebp - 8], eax
sub dword [ebx + 0x40], eax
cmp dword [ebx + 0x40], 0
jne 0x100331db
and dword [ebx + 0x40], 0
mov dword [ebx], 6
test word [ebx + 0x10], 0x800
je 0x100325e5
cmp dword [ebp - 0xc], 0
je 0x100331db
xor eax, eax
mov ecx, dword [ebp - 8]
movzx edx, byte [eax + ecx]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x20]
test eax, eax
mov dword [ebp - 0x28], edx
je 0x100325aa
mov ecx, dword [eax + 0x1c]
test ecx, ecx
mov dword [ebp - 0x2c], ecx
je 0x100325aa
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x100325aa
mov eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
inc dword [ebx + 0x40]
test edx, edx
je 0x100325b6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jb 0x1003257a
test word [ebx + 0x10], 0x200
je 0x100325d2
push dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
call fcn.10014918
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
add dword [ebp - 8], eax
test edx, edx
jne 0x100331db
jmp 0x100325f0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x100325f0
and dword [eax + 0x1c], 0
and dword [ebx + 0x40], 0
mov dword [ebx], 7
test word [ebx + 0x10], 0x1000
je 0x1003267d
cmp dword [ebp - 0xc], 0
je 0x100331db
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx + eax]
mov eax, dword [ebx + 0x20]
inc dword [ebp - 0x10]
test eax, eax
mov dword [ebp - 0x28], edx
je 0x10032642
mov ecx, dword [eax + 0x24]
test ecx, ecx
mov dword [ebp - 0x2c], ecx
je 0x10032642
mov ecx, dword [ebx + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x10032642
mov eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
inc dword [ebx + 0x40]
test edx, edx
je 0x1003264e
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jb 0x10032610
test word [ebx + 0x10], 0x200
je 0x1003266a
push dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x18]
call fcn.10014918
mov edx, dword [ebp - 0x28]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
add dword [ebp - 8], eax
test edx, edx
jne 0x100331db
jmp 0x10032688
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x10032688
and dword [eax + 0x24], 0
mov dword [ebx], 8
test word [ebx + 0x10], 0x200
je 0x100326d7
jmp 0x100326b8
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x10032698
movzx eax, word [ebx + 0x18]
cmp dword [ebp - 4], eax
je 0x100326d2
mov dword [esi + 0x18], str.header_crc_mismatch
jmp 0x10033181
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x100326f2
mov edx, dword [ebx + 0x10]
xor ecx, ecx
inc ecx
sar edx, 9
and edx, ecx
mov dword [eax + 0x2c], edx
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x30], ecx
and dword [ebx + 0x18], 0
and dword [esi + 0x28], 0
jmp 0x10032def
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x100326ff
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
shl ecx, 0x10
and eax, 0xff00
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 2]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
add eax, ecx
mov dword [ebx + 0x18], eax
xor edi, edi
mov dword [esi + 0x28], eax
mov dword [ebp - 4], edi
mov dword [ebx], 0xa
cmp dword [ebx + 0xc], 0
je 0x1003319c
xor eax, eax
inc eax
mov dword [ebx + 0x18], eax
mov dword [esi + 0x28], eax
mov dword [ebx], 0xb
cmp dword [ebx + 4], 0
je 0x100327ab
mov ecx, edi
and ecx, 7
shr dword [ebp - 4], cl
sub edi, ecx
mov dword [ebx], 0x18
jmp 0x10033187
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x1003278b
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 1
and eax, 1
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
and eax, 3
dec edi
sub eax, 0
je 0x1003280c
dec eax
je 0x100327e8
dec eax
je 0x100327e0
dec eax
jne 0x10032812
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
jmp 0x10032812
mov dword [ebx], 0xf
jmp 0x10032812
mov dword [ebx + 0x4c], 0x100391c0
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x100399c0
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x10032812
mov dword [ebx], 0xd
shr dword [ebp - 4], 2
dec edi
dec edi
jmp 0x10033187
mov ecx, edi
and ecx, 7
shr dword [ebp - 4], cl
sub edi, ecx
jmp 0x10032849
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x10032829
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x1003286e
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x10033181
xor edi, edi
mov dword [ebx + 0x40], eax
mov dword [ebp - 4], edi
mov dword [ebx], 0xe
mov eax, dword [ebx + 0x40]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x10032def
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 0x10], eax
jbe 0x10032895
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0x10], eax
jbe 0x100328a0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x100331db
push dword [ebp - 0x10]
push dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x10]
sub dword [ebp - 0xc], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x14], eax
add dword [ebp - 0x1c], eax
add esp, 0xc
sub dword [ebx + 0x40], eax
jmp 0x10033187
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0xe
jb 0x100328d2
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 5
and eax, 0x1f
add eax, 0x101
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 5
and eax, 0x1f
inc eax
mov dword [ebx + 0x64], eax
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 4
and eax, 0xf
add eax, 4
sub edi, 0xe
cmp dword [ebx + 0x60], 0x11e
mov dword [ebx + 0x5c], eax
ja 0x10032945
cmp dword [ebx + 0x64], 0x1e
ja 0x10032945
and dword [ebx + 0x68], 0
mov dword [ebx], 0x10
jmp case.0x100321c7.16
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x10033181
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x10032951
mov ecx, dword [ebx + 0x68]
movzx eax, byte [ebp - 4]
movzx ecx, word [ecx*2 + 0x10039a40]
shr dword [ebp - 4], 3
and eax, 7
mov word [ebx + ecx*2 + 0x70], ax
inc dword [ebx + 0x68]
sub edi, 3
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x10032971
jmp 0x100329b5
mov eax, dword [ebx + 0x68]
movzx eax, word [eax*2 + 0x10039a40]
and word [ebx + eax*2 + 0x70], 0
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x100329a1
lea eax, [ebx + 0x530]
lea esi, [ebx + 0x6c]
mov dword [esi], eax
mov dword [ebx + 0x4c], eax
lea ecx, [ebx + 0x2f0]
push ecx
lea eax, [ebx + 0x54]
push eax
mov dword [eax], 7
push 0x13
lea eax, [ebx + 0x70]
push eax
push 0
call fcn.10033e57
test eax, eax
mov dword [ebp - 0x24], eax
je 0x100329ff
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
mov esi, eax
jmp 0x10033181
and dword [ebx + 0x68], 0
mov esi, dword [ebp + 8]
mov dword [ebx], 0x11
jmp case.0x100321c7.17
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
mov ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x4c]
dec eax
and eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
mov dword [ebp - 0x2c], eax
ja 0x10032a11
mov ecx, eax
shr ecx, 0x10
cmp cx, 0x10
jae 0x10032aaa
mov ecx, eax
shr ecx, 8
movzx ecx, cl
jmp 0x10032a8a
cmp dword [ebp - 0xc], 0
je 0x100331db
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
dec dword [ebp - 0xc]
mov ecx, edi
shl edx, cl
movzx ecx, ah
add dword [ebp - 4], edx
inc dword [ebp - 8]
add edi, 8
cmp edi, ecx
jb 0x10032a67
movzx ecx, ah
shr dword [ebp - 4], cl
mov eax, dword [ebx + 0x68]
sub edi, ecx
mov cx, word [ebp - 0x2a]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
jmp case.0x100321c7.17
cmp word [ebp - 0x2a], 0x10
jne 0x10032b0b
movzx eax, ah
jmp 0x10032ad6
cmp dword [ebp - 0xc], 0
je 0x100331db
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
dec dword [ebp - 0xc]
mov ecx, edi
shl edx, cl
add dword [ebp - 4], edx
inc dword [ebp - 8]
add edi, 8
lea ecx, [eax + 2]
cmp edi, ecx
jb 0x10032ab6
mov ecx, eax
shr dword [ebp - 4], cl
sub edi, eax
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x10032c25
movzx eax, word [ebx + eax*2 + 0x6e]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 4]
shr dword [ebp - 4], 2
and eax, 3
add eax, 3
dec edi
dec edi
jmp 0x10032b98
cmp word [ebp - 0x2a], 0x11
movzx edx, ah
jne 0x10032b74
jmp 0x10032b37
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
lea eax, [edx + 3]
cmp edi, eax
jb 0x10032b17
mov ecx, edx
shr dword [ebp - 4], cl
mov eax, dword [ebp - 4]
and eax, 7
add eax, 3
shr dword [ebp - 4], 3
push 0xfffffffffffffffd
jmp 0x10032b8f
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
lea eax, [edx + 7]
cmp edi, eax
jb 0x10032b54
mov ecx, edx
shr dword [ebp - 4], cl
mov eax, dword [ebp - 4]
and eax, 0x7f
add eax, 0xb
shr dword [ebp - 4], 7
push 0xfffffffffffffff9
and dword [ebp - 0x28], 0
pop ecx
sub ecx, edx
add edi, ecx
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x68]
add ecx, dword [ebx + 0x60]
add edx, eax
cmp edx, ecx
jbe 0x10032c10
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
cmp dword [ebx], 0x1b
je 0x10033187
lea eax, [ebx + 0x530]
lea esi, [ebx + 0x6c]
mov dword [esi], eax
mov dword [ebx + 0x4c], eax
lea ecx, [ebx + 0x2f0]
push ecx
lea eax, [ebx + 0x54]
push eax
push dword [ebx + 0x60]
mov dword [eax], 9
lea eax, [ebx + 0x70]
push eax
push 1
call fcn.10033e57
test eax, eax
mov dword [ebp - 0x24], eax
je 0x10032c31
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x100329f8
mov ecx, dword [ebx + 0x68]
mov dx, word [ebp - 0x28]
dec eax
mov word [ebx + ecx*2 + 0x70], dx
inc dword [ebx + 0x68]
test eax, eax
jne 0x10032c00
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp dword [ebx + 0x68], eax
jb 0x10032a31
jmp 0x10032bb4
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x10033181
mov eax, dword [esi]
mov dword [ebx + 0x50], eax
lea ecx, [ebx + 0x2f0]
push ecx
lea eax, [ebx + 0x58]
push eax
push dword [ebx + 0x64]
mov dword [eax], 6
mov eax, dword [ebx + 0x60]
lea eax, [ebx + eax*2 + 0x70]
push eax
push 2
call fcn.10033e57
test eax, eax
mov dword [ebp - 0x24], eax
je 0x10032c6f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x100329f8
mov esi, dword [ebp + 8]
mov dword [ebx], 0x12
cmp dword [ebp - 0xc], 6
jb 0x10032cd5
cmp dword [ebp - 0x14], 0x102
jb 0x10032cd5
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push esi
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edi
call fcn.10034200
mov eax, dword [esi + 0xc]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 4], eax
jmp 0x10033187
mov ecx, dword [ebx + 0x54]
mov eax, dword [ebx + 0x4c]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
jmp 0x10032d1b
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebx + 0x54]
add edi, 8
add dword [ebp - 4], eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x4c]
dec eax
and eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x10032ce9
test al, al
je 0x10032dc4
test al, 0xf0
jne 0x10032dc4
mov dword [ebp - 0x10], eax
shr dword [ebp - 0x10], 8
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x2c], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
shr eax, 0x10
dec edx
and edx, dword [ebp - 4]
shr edx, cl
add edx, eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0x10]
jmp 0x10032dad
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x28]
movzx edx, ch
add dword [ebp - 4], eax
inc dword [ebp - 8]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add edi, 8
mov ecx, edx
dec eax
and eax, dword [ebp - 4]
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [ebx + 0x4c]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, edi
ja 0x10032d6c
movzx ecx, byte [ebp - 0x27]
shr dword [ebp - 4], cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr dword [ebp - 4], cl
sub edi, ecx
mov dword [ebp - 0x2c], ecx
mov ecx, eax
shr ecx, 0x10
test al, al
mov dword [ebx + 0x40], ecx
jne 0x10032deb
mov dword [ebx], 0x17
jmp 0x10033187
test al, 0x20
je 0x10032dfa
mov dword [ebx], 0xb
jmp 0x10033187
test al, 0x40
je 0x10032e0a
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x10033181
and eax, 0xf
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x13
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x10032e59
cmp edi, eax
jae 0x10032e46
cmp dword [ebp - 0xc], 0
je 0x100331db
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
dec dword [ebp - 0xc]
mov ecx, edi
shl edx, cl
add edi, 8
add dword [ebp - 4], edx
inc dword [ebp - 8]
cmp edi, dword [ebx + 0x48]
jb 0x10032e21
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
dec edx
and edx, dword [ebp - 4]
shr dword [ebp - 4], cl
add dword [ebx + 0x40], edx
sub edi, eax
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
mov eax, dword [ebx + 0x50]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 4]
mov eax, dword [eax + edx*4]
jmp 0x10032ea5
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebx + 0x58]
add edi, 8
add dword [ebp - 4], eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x50]
dec eax
and eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x10032e73
test al, 0xf0
jne 0x10032f46
mov dword [ebp - 0x10], eax
shr dword [ebp - 0x10], 8
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x2c], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
shr eax, 0x10
dec edx
and edx, dword [ebp - 4]
shr edx, cl
add edx, eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0x10]
jmp 0x10032f2f
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x28]
movzx edx, ch
add dword [ebp - 4], eax
inc dword [ebp - 8]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add edi, 8
mov ecx, edx
dec eax
and eax, dword [ebp - 4]
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [ebx + 0x50]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, edi
ja 0x10032eee
movzx ecx, byte [ebp - 0x27]
shr dword [ebp - 4], cl
sub edi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr dword [ebp - 4], cl
sub edi, ecx
test al, 0x40
mov dword [ebp - 0x2c], ecx
je 0x10032f66
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x10033181
mov ecx, eax
shr ecx, 0x10
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x15
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x10032fbd
cmp edi, eax
jae 0x10032faa
cmp dword [ebp - 0xc], 0
je 0x100331db
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
dec dword [ebp - 0xc]
mov ecx, edi
shl edx, cl
add edi, 8
add dword [ebp - 4], edx
inc dword [ebp - 8]
cmp edi, dword [ebx + 0x48]
jb 0x10032f85
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
dec edx
and edx, dword [ebp - 4]
shr dword [ebp - 4], cl
add dword [ebx + 0x44], edx
sub edi, eax
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
cmp dword [ebx + 0x44], eax
jbe 0x10032fd7
mov dword [esi + 0x18], str.invalid_distance_too__back
jmp 0x10033181
mov dword [ebx], 0x16
cmp dword [ebp - 0x14], 0
je 0x100331db
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x44]
cmp ecx, eax
jbe 0x10033021
sub ecx, eax
mov eax, dword [ebx + 0x34]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx + 0x30]
cmp dword [ebp - 0x10], ecx
jbe 0x1003300f
add eax, dword [ebx + 0x28]
sub dword [ebp - 0x10], ecx
sub eax, dword [ebp - 0x10]
jmp 0x10033014
sub eax, dword [ebp - 0x10]
add eax, ecx
mov ecx, dword [ebx + 0x40]
cmp dword [ebp - 0x10], ecx
mov dword [ebp - 0x2c], ecx
jbe 0x1003302f
jmp 0x1003302c
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov ecx, dword [ebx + 0x40]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0x10], ecx
jbe 0x1003303a
mov dword [ebp - 0x10], ecx
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x10]
mov dword [ebx + 0x40], ecx
mov edx, dword [ebp - 0x1c]
mov cl, byte [eax]
inc dword [ebp - 0x1c]
inc eax
dec dword [ebp - 0x10]
mov byte [edx], cl
jne 0x10033049
cmp dword [ebx + 0x40], 0
jne 0x10033187
jmp 0x1003307d
cmp dword [ebp - 0x14], 0
je 0x100331db
mov ecx, dword [ebp - 0x1c]
mov al, byte [ebx + 0x40]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [ecx], al
mov dword [ebx], 0x12
jmp 0x10033187
cmp dword [ebx + 8], 0
je 0x10033135
jmp 0x100330b4
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x10033094
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
test eax, eax
mov dword [ebp - 0x20], eax
je 0x100330f4
cmp dword [ebx + 0x10], 0
push eax
mov eax, dword [ebx + 0x18]
je 0x100330e3
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x20]
call fcn.10014918
jmp 0x100330ee
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
call fcn.1003606f
mov dword [ebx + 0x18], eax
mov dword [esi + 0x28], eax
cmp dword [ebx + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
jne 0x10033122
mov ecx, dword [ebp - 4]
shl ecx, 0x10
and eax, 0xff00
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 2]
shl eax, 8
add eax, ecx
mov ecx, dword [ebp - 4]
shr ecx, 0x18
add eax, ecx
cmp eax, dword [ebx + 0x18]
je 0x10033130
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x10033181
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], 0x19
cmp dword [ebx + 8], 0
je 0x100331c5
cmp dword [ebx + 0x10], 0
je 0x100331c5
jmp 0x1003316d
cmp dword [ebp - 0xc], 0
je 0x100331db
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 0xc]
mov ecx, edi
shl eax, cl
add dword [ebp - 4], eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x1003314d
mov eax, dword [ebp - 4]
cmp eax, dword [ebx + 0x1c]
je 0x100331c0
mov dword [esi + 0x18], str.incorrect_length_check
mov dword [ebx], 0x1b
mov eax, dword [ebx]
cmp eax, 0x1c
jbe switch.0x100321c7
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edi
push 2
jmp 0x10033194
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x100331db
mov dword [ebp - 0x24], 0xfffffffd
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
cmp dword [ebx + 0x28], 0
mov eax, dword [ebp - 4]
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], edi
jne 0x1003320e
cmp dword [ebx], 0x18
jge 0x10033229
mov eax, dword [ebp - 0x20]
cmp eax, dword [esi + 0x10]
je 0x10033229
push dword [ebp - 0x20]
mov edi, esi
call fcn.10032080
test eax, eax
je 0x10033229
mov dword [ebx], 0x1c
push 0xfffffffffffffffc
jmp 0x10033194
mov eax, dword [ebp - 0x30]
sub eax, dword [esi + 4]
mov edi, dword [ebp - 0x20]
sub edi, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], edi
add dword [ebx + 0x1c], edi
cmp dword [ebx + 8], 0
mov dword [ebp - 0x30], eax
je 0x10033274
test edi, edi
je 0x10033274
cmp dword [ebx + 0x10], 0
mov eax, dword [ebx + 0x18]
push edi
je 0x10033261
mov edx, dword [esi + 0xc]
sub edx, edi
call fcn.10014918
jmp 0x1003326b
mov ecx, dword [esi + 0xc]
sub ecx, edi
call fcn.1003606f
mov dword [ebx + 0x18], eax
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x30]
cmp dword [ebx], 0xb
jne 0x10033280
mov ecx, 0x80
jmp 0x10033282
xor ecx, ecx
mov edx, dword [ebx + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, ecx
add edx, dword [ebx + 0x3c]
test eax, eax
mov dword [esi + 0x24], edx
jne 0x100332a8
test edi, edi
jne 0x100332a8
cmp dword [ebp - 0x24], edi
jne 0x100332a8
mov dword [ebp - 0x24], 0xfffffffb
mov eax, dword [ebp - 0x24]
jmp 0x10033195