Function at 0x10117474
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]
push edi
test esi, esi
je case.0x101174f6.1
mov ebx, dword [esi + 0x1c]
mov dword [ebp - 0x20], ebx
test ebx, ebx
je case.0x101174f6.1
xor eax, eax
cmp dword [esi + 0xc], eax
je case.0x101174f6.1
cmp dword [esi], eax
jne 0x101174ae
cmp dword [esi + 4], eax
jne case.0x101174f6.1
cmp dword [ebx], 0xb
jne 0x101174b9
mov dword [ebx], 0xc
mov ecx, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x24], esi
cmp eax, 0x1e
ja case.0x101174f6.1
mov esi, dword [ebp + 8]
jmp dword [eax*4 + 0x10118324]
cmp dword [ebx + 8], 0
jne 0x1011750e
mov dword [ebx], 0xc
jmp 0x10117998
push 0x10
pop eax
cmp edi, eax
jae 0x10117545
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x10118229
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x10
jb 0x10117518
movzx ecx, dl
mov eax, edx
shl ecx, 8
xor edx, edx
shr eax, 8
add eax, ecx
push 0x1f
pop ecx
div ecx
test edx, edx
mov edx, dword [ebp - 8]
je 0x10117572
mov dword [esi + 0x18], str.incorrect_header_check
mov dword [ebx], 0x1d
jmp 0x10117995
mov eax, edx
and al, 0xf
cmp al, 8
je 0x10117583
mov dword [esi + 0x18], str.unknown_compression_method
jmp 0x10117567
shr edx, 4
sub edi, 4
mov ecx, edx
mov dword [ebp - 8], edx
and ecx, 0xf
mov dword [ebp - 0x10], edi
add ecx, 8
cmp dword [ebx + 0x24], 0
jne 0x101175d8
mov dword [ebx + 0x24], ecx
xor edi, edi
xor eax, eax
push edi
inc eax
shl eax, cl
push edi
push edi
mov dword [ebx + 0x14], eax
call fcn.101186f5
mov edx, dword [ebp - 8]
add esp, 0xc
shr edx, 8
not edx
mov dword [ebx + 0x18], eax
and edx, 2
mov dword [esi + 0x30], eax
or edx, 9
mov dword [ebx], edx
mov edx, edi
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
jmp 0x10117995
cmp ecx, dword [ebx + 0x24]
jbe 0x101175a0
mov dword [esi + 0x18], str.invalid_window_size
jmp 0x10117567
cmp edi, 0x20
jae 0x10117618
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x10118229
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edi, 0x20
jb 0x101175ee
mov ecx, edx
mov edi, 0xff00
and ecx, edi
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, edi
shl ecx, 8
add eax, ecx
shr edx, 0x18
mov ecx, dword [ebp - 4]
add eax, edx
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
xor eax, eax
mov edx, eax
mov dword [ebx], 0xa
mov dword [ebp - 8], edx
mov edi, eax
jmp 0x10117655
xor eax, eax
cmp dword [ebx + 0xc], eax
je 0x101181f0
push eax
push eax
push eax
call fcn.101186f5
mov edx, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
cmp dword [ebp + 0xc], 5
je 0x10118229
cmp dword [ebp + 0xc], 6
je 0x10118229
cmp dword [ebx + 4], 0
je 0x101176af
mov ecx, edi
mov dword [ebx], 0x1a
and ecx, 7
shr edx, cl
sub edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
jmp 0x10117995
cmp edi, 3
jae 0x101176e1
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x10118229
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edi, 3
jb 0x101176b7
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x10117750
sub eax, 1
je 0x1011771a
sub eax, 1
je 0x10117713
sub eax, 1
jne 0x10117756
mov dword [esi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1d
jmp 0x10117756
push 0x10
pop eax
mov dword [ebx], eax
jmp 0x10117756
cmp dword [ebp + 0xc], 6
mov dword [ebx + 0x4c], 0x102af3d8
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x102afbd8
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x13
jne 0x10117756
shr edx, 2
sub edi, 3
mov dword [ebp - 8], edx
jmp 0x10118229
mov dword [ebx], 0xd
shr edx, 2
sub edi, 3
jmp 0x101175cd
mov ecx, edi
and ecx, 7
sub edi, ecx
shr edx, cl
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jae 0x101177a5
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1011822c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
add edx, eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edi, 0x20
jb 0x10117778
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x101177bf
mov dword [esi + 0x18], str.invalid_stored_block_lengths
jmp 0x10117567
xor eax, eax
mov dword [ebx + 0x40], ecx
cmp dword [ebp + 0xc], 6
mov edx, eax
mov ecx, dword [ebp - 4]
mov edi, eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
mov dword [ebx], 0xe
je 0x1011822c
mov dword [ebx], 0xf
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x10117834
cmp eax, ecx
cmova eax, ecx
cmp eax, dword [ebp - 0x14]
cmova eax, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x10118229
mov ecx, dword [ebp - 0xc]
push eax
push ecx
push dword [ebp - 0x18]
call fcn.10128bc0
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 4]
add dword [ebp - 0xc], eax
sub ecx, eax
sub dword [ebp - 0x14], eax
add dword [ebp - 0x18], eax
sub dword [ebx + 0x40], eax
mov edx, dword [ebp - 8]
mov dword [ebp - 4], ecx
jmp 0x10117998
mov dword [ebx], 0xb
jmp 0x10117998
cmp edi, 0xe
jae 0x10117871
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x10118229
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edi, 0xe
jb 0x10117847
mov eax, edx
sub edi, 0xe
and eax, 0x1f
shr edx, 5
add eax, 0x101
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x60], eax
mov eax, edx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebx + 0x64], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 8], edx
cmp dword [ebx + 0x60], 0x11e
mov dword [ebx + 0x5c], eax
ja 0x101178be
cmp dword [ebx + 0x64], 0x1e
ja 0x101178be
and dword [ebx + 0x68], 0
push 0x11
pop eax
mov dword [ebx], eax
jmp case.0x101174f6.17
mov dword [esi + 0x18], str.too_many_length_or_distance_symbols
mov dword [ebx], 0x1d
jmp 0x10117998
cmp edi, 3
jae 0x10117902
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x10118229
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edi, 3
jb 0x101178d8
mov eax, dword [ebx + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 8], edx
movzx eax, word [eax*2 + 0x102afc58]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
sub edi, 3
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x101178d0
jmp 0x10117948
mov eax, dword [ebx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x102afc58]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x10117933
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [edx], 7
push eax
push edx
push ecx
push 0x13
lea eax, [ebx + 0x70]
push eax
push 0
call fcn.10118952
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x101179ad
mov dword [esi + 0x18], str.invalid_code_lengths_set
mov dword [ebx], 0x1d
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
cmp eax, 0x1e
jbe switch.0x101174f6
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and dword [ebx + 0x68], 0
mov dword [ebx], 0x12
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp dword [ebx + 0x68], eax
jae 0x10117ba9
jmp 0x101179eb
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1011822c
mov edx, dword [ebp - 0xc]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
movzx eax, byte [edx]
shl eax, cl
add dword [ebp - 8], eax
inc edx
mov dword [ebp - 0xc], edx
add edi, 8
mov ecx, dword [ebx + 0x54]
xor edx, edx
mov eax, dword [ebx + 0x4c]
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x2c], eax
cmp ecx, edi
ja 0x101179c8
mov edx, eax
push 0x10
shr edx, 0x10
pop ecx
cmp dx, cx
jae 0x10117a3a
shr eax, 8
movzx ecx, al
mov eax, dword [ebx + 0x68]
sub edi, ecx
shr dword [ebp - 8], cl
mov dword [ebp - 0x10], edi
mov word [ebx + eax*2 + 0x70], dx
inc dword [ebx + 0x68]
mov ecx, dword [ebx + 0x68]
jmp 0x10117b80
jne 0x10117aae
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, 2
mov dword [ebp - 0x2c], ecx
cmp edi, ecx
jae 0x10117a75
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1011822c
dec ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
mov ecx, edi
shl edx, cl
add edi, 8
add dword [ebp - 8], edx
inc dword [ebp - 0xc]
cmp edi, dword [ebp - 0x2c]
jb 0x10117a4e
mov edx, dword [ebp - 8]
movzx ecx, ah
mov eax, dword [ebx + 0x68]
sub edi, ecx
shr edx, cl
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
test eax, eax
je 0x10117b90
movzx eax, word [ebx + eax*2 + 0x6e]
mov ecx, edx
and ecx, 3
shr edx, 2
add ecx, 3
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
sub edi, 2
jmp 0x10117b4f
mov edx, dword [ebp - 8]
push 0x11
pop ecx
cmp word [ebp - 0x2a], cx
movzx ecx, ah
jne 0x10117b01
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 3]
cmp edi, eax
jae 0x10117af0
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1011822c
dec ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ecx]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x2c]
add edx, eax
inc dword [ebp - 0xc]
add edi, 8
mov dword [ebp - 8], edx
jmp 0x10117ac0
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x10117b43
mov dword [ebp - 0x2c], ecx
lea eax, [ecx + 7]
cmp edi, eax
jae 0x10117b34
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1011822c
dec ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
movzx eax, byte [ecx]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x2c]
add edx, eax
inc dword [ebp - 0xc]
add edi, 8
mov dword [ebp - 8], edx
jmp 0x10117b04
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
push 0xfffffffffffffff9
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], eax
pop eax
sub eax, ecx
add edi, eax
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
mov dword [ebp - 8], edx
mov edx, dword [ebp - 0x28]
add ecx, edx
mov dword [ebp - 0x10], edi
cmp ecx, eax
ja 0x10117b9c
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebx + 0x68]
mov word [ebx + eax*2 + 0x70], si
inc dword [ebx + 0x68]
mov ecx, dword [ebx + 0x68]
sub edx, 1
jne 0x10117b6a
mov esi, dword [ebp + 8]
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp ecx, eax
jb 0x101179eb
jmp 0x10117ba9
mov dword [esi + 0x18], str.invalid_bit_length_repeat
jmp 0x10117567
mov dword [esi + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1d
cmp dword [ebx], 0x1d
je 0x10117992
xor eax, eax
cmp word [ebx + 0x270], ax
jne 0x10117bc9
mov dword [esi + 0x18], str.invalid_code____missing_end_of_block
jmp 0x1011798c
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [edx], 9
push eax
push edx
push ecx
push dword [ebx + 0x60]
lea eax, [ebx + 0x70]
push eax
push 1
call fcn.10118952
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10117c0d
mov dword [esi + 0x18], str.invalid_literal_lengths_set
jmp 0x1011798c
lea ecx, [ebx + 0x6c]
mov eax, dword [ecx]
lea edx, [ebx + 0x58]
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x2f0]
push eax
mov eax, dword [ebx + 0x60]
push edx
push ecx
push dword [ebx + 0x64]
add eax, 0x38
mov dword [edx], 6
lea eax, [ebx + eax*2]
push eax
push 2
call fcn.10118952
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10117c51
mov dword [esi + 0x18], str.invalid_distances_set
jmp 0x1011798c
cmp dword [ebp + 0xc], 6
mov ecx, dword [ebp - 4]
mov dword [ebx], 0x13
je 0x1011822c
mov edx, dword [ebp - 8]
mov dword [ebx], 0x14
cmp ecx, 6
jb 0x10117cd9
mov eax, dword [ebp - 0x14]
cmp eax, 0x102
jb 0x10117cd9
mov ebx, dword [ebp - 0x18]
push dword [ebp - 0x24]
mov dword [esi + 0xc], ebx
mov ebx, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [esi + 4], ecx
push esi
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
call fcn.10118d4f
cmp dword [ebx], 0xb
mov eax, dword [esi + 0xc]
mov edx, dword [ebx + 0x38]
mov edi, dword [ebx + 0x3c]
pop ecx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x10]
pop ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
jne 0x10117998
or dword [ebx + 0x1bc4], 0xffffffff
jmp 0x10117998
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x54]
and dword [ebx + 0x1bc4], 0
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebx + 0x4c]
dec eax
and eax, edx
mov eax, dword [ecx + eax*4]
jmp 0x10117d35
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1011822c
mov eax, dword [ebp - 0xc]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
add edi, 8
mov dword [ebp - 0x10], edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x54]
add edx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebx + 0x4c]
mov dword [ebp - 8], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
mov edx, dword [ebp - 8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x10117cf9
test al, al
je 0x10117dfd
test al, 0xf0
jne 0x10117dfd
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x2c], edx
and edi, dword [ebp - 8]
shr edi, cl
mov ecx, dword [ebp - 0x28]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x10]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jbe 0x10117dea
mov esi, dword [ebp - 4]
test esi, esi
je 0x10118229
dec esi
mov ecx, edi
mov dword [ebp - 4], esi
add edi, 8
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
movzx edi, dh
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 8], eax
inc esi
movzx eax, word [ebp - 0x2a]
mov dword [ebp - 0xc], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 8]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x10117d92
mov esi, dword [ebp + 8]
movzx ecx, dh
mov edx, dword [ebp - 8]
shr edx, cl
sub edi, ecx
mov dword [ebx + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc4], ecx
sub edi, ecx
shr edx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x40], ecx
test al, al
jne 0x10117e2c
mov dword [ebx], 0x19
jmp 0x10117995
test al, 0x20
je 0x10117e42
or dword [ebx + 0x1bc4], 0xffffffff
mov dword [ebx], 0xb
jmp 0x10117995
mov ecx, dword [ebp - 4]
test al, 0x40
je 0x10117e55
mov dword [esi + 0x18], str.invalid_literal_length_code
jmp 0x101178c5
movzx eax, al
and eax, 0xf
mov dword [ebx], 0x15
mov dword [ebx + 0x48], eax
mov esi, dword [ebx + 0x48]
test esi, esi
je 0x10117eb8
cmp edi, esi
jae 0x10117e9b
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x10118229
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edi, esi
jb 0x10117e72
xor eax, eax
mov ecx, esi
inc eax
sub edi, esi
shl eax, cl
dec eax
mov dword [ebp - 0x10], edi
and eax, edx
shr edx, cl
add dword [ebx + 0x40], eax
add dword [ebx + 0x1bc4], esi
mov dword [ebp - 8], edx
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x1bc8], eax
mov dword [ebx], 0x16
mov ecx, dword [ebx + 0x58]
xor eax, eax
mov esi, dword [ebx + 0x50]
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x28], esi
and eax, edx
mov eax, dword [esi + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x10117f2f
mov esi, dword [ebp - 4]
test esi, esi
je 0x10118229
mov eax, dword [ebp - 0xc]
mov ecx, edi
dec esi
add edi, 8
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], edi
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x58]
add edx, eax
inc dword [ebp - 0xc]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 8], edx
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, dword [ebp - 8]
mov eax, dword [eax + edx*4]
mov ecx, eax
mov edx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x10117eea
test al, 0xf0
jne 0x10117fe0
xor edi, edi
movzx ecx, al
mov ebx, eax
inc edi
shr ebx, 8
mov edx, eax
movzx esi, bl
add ecx, esi
shr eax, 0x10
shl edi, cl
mov ecx, esi
dec edi
mov dword [ebp - 0x2c], edx
and edi, dword [ebp - 8]
shr edi, cl
mov ecx, dword [ebp - 0x28]
add edi, eax
mov eax, dword [ecx + edi*4]
mov ecx, eax
mov edi, dword [ebp - 0x10]
shr ecx, 8
movzx esi, cl
movzx ecx, bl
mov ebx, dword [ebp - 0x20]
add esi, ecx
cmp esi, edi
jbe 0x10117fd0
mov esi, dword [ebp - 4]
test esi, esi
je 0x10118229
dec esi
mov ecx, edi
mov dword [ebp - 4], esi
add edi, 8
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x10], edi
movzx edi, dh
movzx eax, byte [esi]
shl eax, cl
add dword [ebp - 8], eax
inc esi
movzx eax, word [ebp - 0x2a]
mov dword [ebp - 0xc], esi
xor esi, esi
inc esi
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 8]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + esi*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
mov edi, dword [ebp - 0x10]
cmp ecx, edi
ja 0x10117f78
movzx ecx, dh
mov edx, dword [ebp - 8]
sub edi, ecx
shr edx, cl
add dword [ebx + 0x1bc4], ecx
mov esi, dword [ebp + 8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [ebx + 0x1bc4], ecx
sub edi, ecx
shr edx, cl
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], edi
test al, 0x40
je 0x1011800b
mov dword [esi + 0x18], str.invalid_distance_code
jmp 0x10117567
mov ecx, eax
mov dword [ebx], 0x17
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x10118077
cmp edi, ecx
jae 0x1011805c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1011822c
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebx + 0x48]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
cmp edi, ecx
jb 0x10118030
xor eax, eax
sub edi, ecx
inc eax
mov dword [ebp - 0x10], edi
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
add dword [ebx + 0x1bc4], ecx
mov dword [ebp - 8], edx
mov dword [ebx], 0x18
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x10118229
mov eax, dword [ebp - 0x24]
sub eax, ecx
mov ecx, dword [ebx + 0x44]
cmp ecx, eax
jbe 0x101180d3
sub ecx, eax
cmp ecx, dword [ebx + 0x2c]
jbe 0x101180b0
cmp dword [ebx + 0x1bc0], 0
je 0x101180b0
mov dword [esi + 0x18], str.invalid_distance_too_far_back
jmp 0x10117567
mov eax, dword [ebx + 0x34]
cmp ecx, dword [ebx + 0x30]
jbe 0x101180c2
sub ecx, dword [ebx + 0x30]
add eax, dword [ebx + 0x28]
sub eax, ecx
jmp 0x101180c7
sub eax, ecx
add eax, dword [ebx + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x40]
cmp ecx, eax
jbe 0x101180e0
jmp 0x101180de
mov eax, dword [ebp - 0x18]
sub eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x40]
mov ecx, eax
mov esi, dword [ebp - 0x14]
cmp ecx, esi
cmova ecx, esi
sub esi, ecx
sub eax, ecx
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x2c]
mov dword [ebx + 0x40], eax
mov ebx, dword [ebp - 0x18]
sub esi, ebx
mov al, byte [esi + ebx]
mov byte [ebx], al
inc ebx
sub ecx, 1
jne 0x101180fa
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x20]
cmp dword [ebx + 0x40], ecx
jne 0x10117995
mov dword [ebx], 0x14
jmp 0x10117995
cmp dword [ebp - 0x14], 0
je 0x10118229
mov esi, dword [ebp - 0x18]
mov al, byte [ebx + 0x40]
inc dword [ebp - 0x18]
dec dword [ebp - 0x14]
mov byte [esi], al
mov esi, dword [ebp + 8]
mov dword [ebx], 0x14
jmp 0x10117998
cmp dword [ebx + 8], 0
je 0x10118218
cmp edi, 0x20
jae 0x10118187
mov eax, dword [ebp - 0xc]
test ecx, ecx
je 0x10118229
movzx eax, byte [eax]
dec ecx
mov dword [ebp - 4], ecx
mov ecx, edi
shl eax, cl
add edi, 8
mov ecx, dword [ebp - 4]
add edx, eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edi
cmp edi, 0x20
jb 0x1011815a
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
sub ecx, eax
add dword [esi + 0x14], ecx
add dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x101181b7
mov eax, dword [ebp - 0x18]
push ecx
sub eax, ecx
push eax
push dword [ebx + 0x18]
call fcn.101186f5
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, 0xff00
shl ecx, 8
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp ecx, dword [ebx + 0x18]
je 0x10118211
mov dword [esi + 0x18], str.incorrect_data_check
jmp 0x10117567
mov eax, dword [ebp - 0x18]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
mov dword [esi + 4], ecx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edi
push 2
jmp 0x101179a5
xor eax, eax
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebx], 0x1c
xor eax, eax
inc eax
jmp 0x10118226
push 0xfffffffffffffffd
pop eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x10], edx
xor edx, edx
mov dword [esi], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], ecx
mov dword [ebx + 0x3c], edi
mov edi, dword [ebp - 0x24]
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0x28], edx
jne 0x1011826b
cmp edi, dword [esi + 0x10]
je 0x10118290
cmp dword [ebx], 0x1d
jge 0x10118290
cmp dword [ebx], 0x1a
jl 0x1011826b
cmp dword [ebp + 0xc], 4
je 0x10118290
mov eax, edi
sub eax, dword [esi + 0x10]
push eax
push dword [esi + 0xc]
push esi
call fcn.1011858e
add esp, 0xc
test eax, eax
je 0x1011828e
mov dword [ebx], 0x1e
push 0xfffffffffffffffc
jmp 0x101179a5
xor edx, edx
mov eax, dword [ebp - 0x30]
sub eax, dword [esi + 4]
sub edi, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], edi
add dword [ebx + 0x1c], edi
mov dword [ebp - 0x30], eax
cmp dword [ebx + 8], edx
je 0x101182c8
test edi, edi
je 0x101182c8
mov eax, dword [esi + 0xc]
push edi
sub eax, edi
push eax
push dword [ebx + 0x18]
call fcn.101186f5
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
xor edx, edx
cmp dword [ebx], 0x13
je 0x101182d2
cmp dword [ebx], 0xe
jne 0x101182d7
mov edx, 0x100
mov ecx, dword [ebx + 4]
neg ecx
mov dword [ebp + 8], 0x80
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx], 0xb
cmove eax, dword [ebp + 8]
add ecx, edx
add eax, ecx
add eax, dword [ebx + 0x3c]
mov dword [esi + 0x2c], eax
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x10118306
test edi, edi
je 0x1011830c
cmp dword [ebp + 0xc], 4
jne 0x1011831c
mov eax, dword [ebp - 0x1c]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x101179a6
mov eax, dword [ebp - 0x1c]
jmp 0x101179a6