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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [ebp + 8]
push ebx
xor ecx, ecx
cmp edx, ecx
push esi
push edi
je case.default.0x49f50f
mov esi, dword [edx + 0x1c]
cmp esi, ecx
je case.default.0x49f50f
cmp dword [edx + 0xc], ecx
je case.default.0x49f50f
cmp dword [edx], ecx
jne 0x49f4d3
cmp dword [edx + 4], ecx
jne case.default.0x49f50f
cmp dword [esi], 0xb
jne 0x49f4de
mov dword [esi], 0xc
mov eax, dword [edx + 0xc]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov eax, dword [edx + 4]
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
jmp 0x49f591
jmp dword [eax*4 + 0x4a0500]
cmp dword [esi + 8], 0
jne 0x49f546
mov dword [esi], 0xc
jmp 0x49f591
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x49f524
mov eax, dword [esi + 8]
test al, 2
je 0x49f5a4
cmp ebx, 0x8b1f
jne 0x49f5a4
xor edi, edi
push edi
push edi
push edi
call fcn.0049f2af
mov dword [esi + 0x14], eax
push 2
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 0x18], 0x1f
mov byte [ebp - 0x17], 0x8b
push dword [esi + 0x14]
call fcn.0049f2af
add esp, 0x18
xor ebx, ebx
mov dword [esi + 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [esi], 1
mov edx, dword [ebp + 8]
mov eax, dword [esi]
cmp eax, 0x1c
jbe switch.0x0049f50f
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
and dword [esi + 0x10], 0
test al, 1
je 0x49f635
mov eax, ebx
and eax, 0xff
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x49f635
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x49f5e3
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x49fe97
shr ebx, 4
mov eax, ebx
and eax, 0xf
add eax, 8
sub edi, 4
cmp eax, dword [esi + 0x1c]
mov dword [ebp - 0x10], ebx
jbe 0x49f608
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x49fe97
xor edi, edi
push edi
push edi
push edi
call fcn.004a0cfb
mov ecx, dword [ebp + 8]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], ebx
xor ebx, ebx
mov dword [ebp - 0x10], ebx
jmp 0x49f58e
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x4a03d0
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x49f644
cmp bl, 8
mov dword [esi + 0x10], ebx
je 0x49f67f
mov dword [edx + 0x18], str.unknown_compression_method
jmp 0x4a03d0
test bh, 0xe0
je 0x49f690
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x4a03d0
test bh, 2
je 0x49f6b5
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.0049f2af
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 2
jmp case.0x49f50f.2
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
jb 0x49f6c1
test byte [esi + 0x11], 2
je 0x49f71b
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp - 0x16], al
mov byte [ebp - 0x18], bl
push 4
lea eax, [ebp - 0x18]
shr ebx, 0x18
push eax
mov byte [ebp - 0x15], bl
push dword [esi + 0x14]
call fcn.0049f2af
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 3
jmp case.0x49f50f.3
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x49f727
test byte [esi + 0x11], 2
je 0x49f771
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.0049f2af
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 4
test byte [esi + 0x11], 4
je 0x49f7da
jmp 0x49f7a5
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x10
jb 0x49f786
test byte [esi + 0x11], 2
mov dword [esi + 0x38], ebx
je 0x49f7d3
mov byte [ebp - 0x18], bl
push 2
lea eax, [ebp - 0x18]
shr ebx, 8
push eax
mov byte [ebp - 0x17], bl
push dword [esi + 0x14]
call fcn.0049f2af
mov edx, dword [ebp + 8]
add esp, 0xc
mov dword [esi + 0x14], eax
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 5
test byte [esi + 0x11], 4
je 0x49f82e
mov eax, dword [esi + 0x38]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jbe 0x49f7f7
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x49f824
test byte [esi + 0x11], 2
je 0x49f81b
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.0049f2af
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [esi + 0x38], eax
cmp dword [esi + 0x38], 0
jne 0x4a041e
mov dword [esi], 6
test byte [esi + 0x11], 8
je 0x49f88d
cmp dword [ebp - 4], 0
je 0x4a041e
xor eax, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
inc eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
je 0x49f85d
cmp eax, dword [ebp - 4]
jb 0x49f846
test byte [esi + 0x11], 0x20
je 0x49f87d
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.0049f2af
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jne 0x4a041e
mov dword [esi], 7
test byte [esi + 0x11], 0x10
je 0x49f8ec
cmp dword [ebp - 4], 0
je 0x4a041e
xor eax, eax
mov ecx, dword [ebp - 8]
movzx ecx, byte [eax + ecx]
inc eax
test ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], eax
je 0x49f8bc
cmp eax, dword [ebp - 4]
jb 0x49f8a5
test byte [esi + 0x11], 0x20
je 0x49f8dc
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.0049f2af
mov edx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
cmp dword [ebp - 0x28], 0
jne 0x4a041e
mov dword [esi], 8
test byte [esi + 0x11], 2
je 0x49f940
jmp 0x49f91c
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x10
jb 0x49f8fa
mov eax, dword [esi + 0x14]
and eax, 0xffff
cmp ebx, eax
je 0x49f939
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x4a03d0
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
xor eax, eax
push eax
push eax
push eax
call fcn.0049f2af
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
jmp 0x49f58e
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x49f961
mov eax, ebx
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xe]
shl eax, 8
shr ebx, 0x18
add eax, ecx
add eax, ebx
mov dword [esi + 0x14], eax
mov dword [edx + 0x30], eax
xor ebx, ebx
xor edi, edi
mov dword [esi], 0xa
cmp dword [esi + 0xc], 0
je 0x4a03db
xor eax, eax
push eax
push eax
push eax
call fcn.004a0cfb
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
mov edx, ecx
cmp dword [ebp + 0xc], 5
je 0x4a041e
cmp dword [esi + 4], 0
je 0x49fa23
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x49f591
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x49fa04
mov eax, ebx
and eax, 1
shr ebx, 1
mov dword [esi + 4], eax
mov eax, ebx
and eax, 3
dec edi
sub eax, 0
je 0x49fa81
dec eax
je 0x49fa5d
dec eax
je 0x49fa55
dec eax
jne 0x49fa87
mov dword [edx + 0x18], str.invalid_block_type
mov dword [esi], 0x1b
jmp 0x49fa87
mov dword [esi], 0xf
jmp 0x49fa87
mov dword [esi + 0x44], 0x4bbf48
mov dword [esi + 0x4c], 9
mov dword [esi + 0x48], 0x4bc748
mov dword [esi + 0x50], 5
mov dword [esi], 0x12
jmp 0x49fa87
mov dword [esi], 0xd
shr ebx, 2
dec edi
mov dword [ebp - 0x10], ebx
dec edi
jmp 0x49f591
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x49fabe
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0x20
mov dword [ebp - 0x10], ebx
jb 0x49fa9f
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x49fae4
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x4a03d0
xor ebx, ebx
mov dword [esi + 0x38], eax
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0xe
mov eax, dword [esi + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x4a0052
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
jbe 0x49fb0d
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jbe 0x49fb18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a041e
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0x1c]
call sub.MSVCR71.dll_memcpy
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x14], eax
add dword [ebp - 0x1c], eax
add esp, 0xc
sub dword [esi + 0x38], eax
jmp 0x49f58e
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 0xe
jb 0x49fb4a
mov eax, ebx
and eax, 0x1f
add eax, 0x101
mov dword [esi + 0x58], eax
shr ebx, 5
mov eax, ebx
and eax, 0x1f
inc eax
shr ebx, 5
mov dword [esi + 0x5c], eax
mov eax, ebx
and eax, 0xf
add eax, 4
shr ebx, 4
sub edi, 0xe
cmp dword [esi + 0x58], 0x11e
mov dword [esi + 0x54], eax
mov dword [ebp - 0x10], ebx
ja 0x49fbb9
cmp dword [esi + 0x5c], 0x1e
ja 0x49fbb9
and dword [esi + 0x60], 0
mov dword [esi], 0x10
jmp case.0x49f50f.16
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4a03d0
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, 3
jb 0x49fbc5
mov ecx, dword [esi + 0x60]
movzx ecx, word [ecx*2 + 0x4bc7c8]
xor eax, eax
mov al, bl
shr ebx, 3
mov dword [ebp - 0x10], ebx
and eax, 7
mov word [esi + ecx*2 + 0x68], ax
inc dword [esi + 0x60]
sub edi, 3
mov eax, dword [esi + 0x60]
cmp eax, dword [esi + 0x54]
jb 0x49fbe4
jmp 0x49fc2a
mov eax, dword [esi + 0x60]
movzx eax, word [eax*2 + 0x4bc7c8]
and word [esi + eax*2 + 0x68], 0
inc dword [esi + 0x60]
cmp dword [esi + 0x60], 0x13
jb 0x49fc16
lea eax, [esi + 0x528]
lea ecx, [esi + 0x64]
mov dword [ecx], eax
mov dword [esi + 0x44], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x4c]
push eax
push ecx
mov dword [eax], 7
push 0x13
lea eax, [esi + 0x68]
push eax
push 0
call fcn.004a097f
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x49fc78
mov eax, edx
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x4a03d0
and dword [esi + 0x60], 0
mov dword [esi], 0x11
jmp case.0x49f50f.17
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
add edi, 8
mov ecx, dword [esi + 0x4c]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x44]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x49fc87
cmp word [ebp - 0xa], 0x10
jae 0x49fd11
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x49fcf2
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add ebx, eax
inc dword [ebp - 8]
add edi, 8
cmp edi, ecx
jb 0x49fcd0
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
mov cx, word [ebp - 0xa]
mov word [esi + eax*2 + 0x68], cx
inc dword [esi + 0x60]
mov dword [ebp - 0x10], ebx
jmp case.0x49f50f.17
jne 0x49fd70
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x49fd3d
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [ebp - 0x10]
add ebx, eax
inc dword [ebp - 8]
add edi, 8
lea eax, [ecx + 2]
cmp edi, eax
jb 0x49fd1b
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x49fe3c
movzx eax, word [esi + eax*2 + 0x66]
mov dword [ebp - 0x28], eax
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
dec edi
dec edi
jmp 0x49fe00
cmp word [ebp - 0xa], 0x11
movzx eax, ah
mov dword [ebp - 0x10], eax
jne 0x49fdde
jmp 0x49fda1
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add edi, 8
add eax, 3
cmp edi, eax
jb 0x49fd7f
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x49fdf7
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x10]
add edi, 8
add eax, 7
cmp edi, eax
jb 0x49fdbc
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
and dword [ebp - 0x28], 0
pop edx
sub edx, ecx
add edi, edx
mov edx, dword [esi + 0x5c]
mov ecx, dword [esi + 0x60]
add edx, dword [esi + 0x58]
add ecx, eax
cmp ecx, edx
mov dword [ebp - 0x10], ebx
ja 0x49fe45
test eax, eax
je 0x49fe28
mov ecx, dword [esi + 0x60]
mov dx, word [ebp - 0x28]
mov word [esi + ecx*2 + 0x68], dx
inc dword [esi + 0x60]
dec eax
jne 0x49fe16
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x58]
cmp dword [esi + 0x60], eax
jb 0x49fca6
jmp 0x49fe55
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x49fe4f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [esi], 0x1b
lea eax, [esi + 0x528]
lea ecx, [esi + 0x64]
mov dword [ecx], eax
mov dword [esi + 0x44], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x4c]
push eax
push ecx
push dword [esi + 0x58]
mov dword [eax], 9
lea eax, [esi + 0x68]
push eax
push 1
call fcn.004a097f
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x49fea2
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [esi], 0x1b
jmp 0x49f58e
lea ecx, [esi + 0x64]
mov eax, dword [ecx]
mov dword [esi + 0x48], eax
lea edx, [esi + 0x2e8]
push edx
lea eax, [esi + 0x50]
push eax
push ecx
push dword [esi + 0x5c]
mov dword [eax], 6
mov eax, dword [esi + 0x58]
lea eax, [esi + eax*2 + 0x68]
push eax
push 2
call fcn.004a097f
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x49fee9
mov eax, edx
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x4a03d0
mov dword [esi], 0x12
cmp dword [ebp - 4], 6
jb 0x49ff51
cmp dword [ebp - 0x14], 0x102
jb 0x49ff51
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
push eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
call fcn.004a05d0
mov eax, dword [ebp + 8]
mov ebx, dword [esi + 0x30]
mov edi, dword [esi + 0x34]
pop ecx
pop ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ebx
jmp 0x49f58e
mov ecx, dword [esi + 0x4c]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + ecx*4]
jmp 0x49ff96
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x4c]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x44]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x49ff66
test al, al
je 0x4a002b
test al, 0xf0
jne 0x4a002b
movzx edx, ah
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
movzx edx, byte [ebp - 0x27]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x44]
mov eax, dword [eax + ecx*4]
jmp 0x4a0016
cmp dword [ebp - 4], 0
je 0x4a041b
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x28]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [esi + 0x44]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, edx
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x49ffd8
mov ecx, edx
shr ebx, cl
sub edi, edx
mov edx, dword [ebp + 8]
movzx ecx, ah
shr ebx, cl
movzx ecx, ah
sub edi, ecx
test al, al
movzx ecx, word [ebp - 0xa]
mov dword [ebp - 0x10], ebx
mov dword [esi + 0x38], ecx
jne 0x4a004e
mov dword [esi], 0x17
jmp 0x49f591
test al, 0x20
je 0x4a005d
mov dword [esi], 0xb
jmp 0x49f591
test al, 0x40
je 0x4a006d
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x4a03d0
and eax, 0xf
mov dword [esi + 0x40], eax
mov dword [esi], 0x13
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4a00ba
cmp edi, eax
jae 0x4a00a8
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 8]
cmp edi, dword [esi + 0x40]
jb 0x4a0084
mov ecx, dword [esi + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x38], eax
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x14
mov ecx, dword [esi + 0x50]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [esi + 0x48]
mov eax, dword [eax + ecx*4]
jmp 0x4a0105
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
mov ecx, dword [esi + 0x50]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [esi + 0x48]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
movzx ecx, ah
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x4a00d5
test al, 0xf0
jne 0x4a0192
movzx edx, ah
xor ecx, ecx
mov cl, al
mov dword [ebp - 0x28], eax
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
movzx edx, byte [ebp - 0x27]
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, eax
mov eax, dword [esi + 0x48]
mov eax, dword [eax + ecx*4]
jmp 0x4a017d
cmp dword [ebp - 4], 0
je 0x4a041b
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
xor ecx, ecx
mov cl, byte [ebp - 0x28]
add edi, 8
add ebx, eax
inc dword [ebp - 8]
xor eax, eax
inc eax
add ecx, edx
shl eax, cl
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x26]
add eax, ecx
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + eax*4]
movzx ecx, ah
add ecx, edx
cmp ecx, edi
mov dword [ebp - 0xc], eax
ja 0x4a013f
mov ecx, edx
shr ebx, cl
sub edi, edx
mov edx, dword [ebp + 8]
movzx ecx, ah
shr ebx, cl
movzx ecx, ah
sub edi, ecx
test al, 0x40
mov dword [ebp - 0x10], ebx
je 0x4a01af
mov dword [edx + 0x18], str.invalid_distance_code
jmp 0x4a03d0
movzx ecx, word [ebp - 0xa]
and eax, 0xf
mov dword [esi + 0x3c], ecx
mov dword [esi + 0x40], eax
mov dword [esi], 0x15
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4a0206
cmp edi, eax
jae 0x4a01f1
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add edi, 8
add ebx, eax
inc dword [ebp - 8]
cmp edi, dword [esi + 0x40]
jb 0x4a01cd
mov ecx, dword [esi + 0x40]
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, ebx
add dword [esi + 0x3c], eax
shr ebx, cl
sub edi, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x24]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x20]
cmp dword [esi + 0x3c], eax
jbe 0x4a0220
mov dword [edx + 0x18], str.invalid_distance_too_far_back
jmp 0x4a03d0
mov dword [esi], 0x16
cmp dword [ebp - 0x14], 0
je 0x4a041e
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x4a026a
sub ecx, eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x28]
cmp dword [ebp - 0xc], ecx
jbe 0x4a0258
add eax, dword [esi + 0x20]
sub dword [ebp - 0xc], ecx
sub eax, dword [ebp - 0xc]
jmp 0x4a025d
sub eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [esi + 0x38]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], ecx
jbe 0x4a0278
jmp 0x4a0275
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov ecx, dword [esi + 0x38]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x14]
cmp dword [ebp - 0xc], ecx
jbe 0x4a0283
mov dword [ebp - 0xc], ecx
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x28]
sub ecx, dword [ebp - 0xc]
mov dword [esi + 0x38], ecx
mov edx, dword [ebp - 0x1c]
mov cl, byte [eax]
inc dword [ebp - 0x1c]
inc eax
dec dword [ebp - 0xc]
mov byte [edx], cl
jne 0x4a0292
cmp dword [esi + 0x38], 0
jne 0x49f58e
mov dword [esi], 0x12
jmp 0x49f58e
cmp dword [ebp - 0x14], 0
je 0x4a041e
mov ecx, dword [ebp - 0x1c]
mov al, byte [esi + 0x38]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [ecx], al
mov dword [esi], 0x12
jmp 0x49f591
cmp dword [esi + 8], 0
je 0x4a038d
jmp 0x4a0308
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x4a02e6
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add dword [edx + 0x14], eax
add dword [esi + 0x18], eax
test eax, eax
mov dword [ebp - 0x20], eax
je 0x4a034d
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x20]
sub eax, dword [ebp - 0x20]
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x4a033a
call fcn.0049f2af
jmp 0x4a033f
call fcn.004a0cfb
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
add esp, 0xc
mov dword [ecx + 0x30], eax
mov edx, ecx
cmp dword [esi + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, ebx
jne 0x4a0378
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [ebp - 0xe]
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [esi + 0x14]
je 0x4a0386
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x4a03d0
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0x19
cmp dword [esi + 8], 0
je 0x4a0403
cmp dword [esi + 0x10], 0
je 0x4a0403
jmp 0x4a03bf
cmp dword [ebp - 4], 0
je 0x4a041e
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
dec dword [ebp - 4]
mov ecx, edi
shl eax, cl
add ebx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x10], ebx
add edi, 8
cmp edi, 0x20
jb 0x4a03a1
cmp ebx, dword [esi + 0x18]
je 0x4a03ff
mov dword [edx + 0x18], str.incorrect_length_check
mov dword [esi], 0x1b
jmp 0x49f591
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
push 2
jmp 0x49f59e
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x4a041e
mov dword [ebp - 0x24], 0xfffffffd
jmp 0x4a041e
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 4]
mov dword [edx + 4], eax
cmp dword [esi + 0x20], 0
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], edi
jne 0x4a0451
cmp dword [esi], 0x18
jge 0x4a046d
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x4a046d
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
call fcn.0049f3c4
test eax, eax
je 0x4a046d
mov dword [esi], 0x1c
push 0xfffffffffffffffc
jmp 0x49f59e
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x2c]
sub eax, dword [edi + 4]
mov ebx, dword [ebp - 0x20]
sub ebx, dword [edi + 0x10]
add dword [edi + 8], eax
add dword [edi + 0x14], ebx
add dword [esi + 0x18], ebx
cmp dword [esi + 8], 0
mov dword [ebp - 0x2c], eax
je 0x4a04ba
test ebx, ebx
je 0x4a04ba
mov eax, dword [edi + 0xc]
push ebx
sub eax, ebx
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x4a04a9
call fcn.0049f2af
jmp 0x4a04ae
call fcn.004a0cfb
mov dword [esi + 0x14], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [esi], 0xb
jne 0x4a04c6
mov ecx, 0x80
jmp 0x4a04c8
xor ecx, ecx
mov edx, dword [esi + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, dword [esi + 0x34]
add edx, ecx
test eax, eax
mov dword [edi + 0x2c], edx
jne 0x4a04e2
test ebx, ebx
je 0x4a04e8
cmp dword [ebp + 0xc], 4
jne 0x4a04f5
cmp dword [ebp - 0x24], 0
jne 0x4a04f5
mov dword [ebp - 0x24], 0xfffffffb
mov eax, dword [ebp - 0x24]
jmp 0x49f59f