Function at 0x494748
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.0x4947bb
mov esi, dword [edx + 0x1c]
cmp esi, ecx
je case.default.0x4947bb
cmp dword [edx + 0xc], ecx
je case.default.0x4947bb
cmp dword [edx], ecx
jne 0x49477f
cmp dword [edx + 4], ecx
jne case.default.0x4947bb
cmp dword [esi], 0xb
jne 0x49478a
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 0x49483d
jmp dword [eax*4 + 0x4957ac]
cmp dword [esi + 8], 0
jne 0x4947f2
mov dword [esi], 0xc
jmp 0x49483d
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x4947d0
mov eax, dword [esi + 8]
test al, 2
je 0x494850
cmp ebx, 0x8b1f
jne 0x494850
xor edi, edi
push edi
push edi
push edi
call fcn.0049455b
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.0049455b
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.0x004947bb
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
and dword [esi + 0x10], 0
test al, 1
je 0x4948e1
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 0x4948e1
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x49488f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x495143
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 0x4948b4
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x495143
xor edi, edi
push edi
push edi
push edi
call fcn.00495fa7
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 0x49483a
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x49567c
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x4948f0
cmp bl, 8
mov dword [esi + 0x10], ebx
je 0x49492b
mov dword [edx + 0x18], str.unknown_compression_method
jmp 0x49567c
test bh, 0xe0
je 0x49493c
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x49567c
test bh, 2
je 0x494961
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.0049455b
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.0x4947bb.2
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x49496d
test byte [esi + 0x11], 2
je 0x4949c7
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.0049455b
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.0x4947bb.3
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x4949d3
test byte [esi + 0x11], 2
je 0x494a1d
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.0049455b
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 0x494a86
jmp 0x494a51
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494a32
test byte [esi + 0x11], 2
mov dword [esi + 0x38], ebx
je 0x494a7f
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.0049455b
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 0x494ada
mov eax, dword [esi + 0x38]
cmp eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
jbe 0x494aa3
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x494ad0
test byte [esi + 0x11], 2
je 0x494ac7
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.0049455b
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 0x4956ca
mov dword [esi], 6
test byte [esi + 0x11], 8
je 0x494b39
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494b09
cmp eax, dword [ebp - 4]
jb 0x494af2
test byte [esi + 0x11], 0x20
je 0x494b29
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.0049455b
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 0x4956ca
mov dword [esi], 7
test byte [esi + 0x11], 0x10
je 0x494b98
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494b68
cmp eax, dword [ebp - 4]
jb 0x494b51
test byte [esi + 0x11], 0x20
je 0x494b88
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [esi + 0x14]
call fcn.0049455b
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 0x4956ca
mov dword [esi], 8
test byte [esi + 0x11], 2
je 0x494bec
jmp 0x494bc8
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494ba6
mov eax, dword [esi + 0x14]
and eax, 0xffff
cmp ebx, eax
je 0x494be5
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x49567c
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
xor eax, eax
push eax
push eax
push eax
call fcn.0049455b
mov ecx, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 0xc
mov dword [esi], 0xb
jmp 0x49483a
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494c0d
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 0x495687
xor eax, eax
push eax
push eax
push eax
call fcn.00495fa7
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 0x4956ca
cmp dword [esi + 4], 0
je 0x494ccf
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
mov dword [esi], 0x18
mov dword [ebp - 0x10], ebx
jmp 0x49483d
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494cb0
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 0x494d2d
dec eax
je 0x494d09
dec eax
je 0x494d01
dec eax
jne 0x494d33
mov dword [edx + 0x18], str.invalid_block_type
mov dword [esi], 0x1b
jmp 0x494d33
mov dword [esi], 0xf
jmp 0x494d33
mov dword [esi + 0x44], 0x4ae750
mov dword [esi + 0x4c], 9
mov dword [esi + 0x48], 0x4aef50
mov dword [esi + 0x50], 5
mov dword [esi], 0x12
jmp 0x494d33
mov dword [esi], 0xd
shr ebx, 2
dec edi
mov dword [ebp - 0x10], ebx
dec edi
jmp 0x49483d
mov ecx, edi
and ecx, 7
shr ebx, cl
sub edi, ecx
jmp 0x494d6a
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494d4b
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x494d90
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x49567c
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 0x4952fe
mov eax, dword [ebp - 4]
cmp dword [ebp - 0xc], eax
jbe 0x494db9
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jbe 0x494dc4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4956ca
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 0x49483a
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494df6
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 0x494e65
cmp dword [esi + 0x5c], 0x1e
ja 0x494e65
and dword [esi + 0x60], 0
mov dword [esi], 0x10
jmp case.0x4947bb.16
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x49567c
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494e71
mov ecx, dword [esi + 0x60]
movzx ecx, word [ecx*2 + 0x4aefd0]
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 0x494e90
jmp 0x494ed6
mov eax, dword [esi + 0x60]
movzx eax, word [eax*2 + 0x4aefd0]
and word [esi + eax*2 + 0x68], 0
inc dword [esi + 0x60]
cmp dword [esi + 0x60], 0x13
jb 0x494ec2
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.00495c2b
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x494f24
mov eax, edx
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x49567c
and dword [esi + 0x60], 0
mov dword [esi], 0x11
jmp case.0x4947bb.17
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494f33
cmp word [ebp - 0xa], 0x10
jae 0x494fbd
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x494f9e
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494f7c
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.0x4947bb.17
jne 0x49501c
movzx ecx, ah
mov dword [ebp - 0x10], ecx
jmp 0x494fe9
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x494fc7
mov eax, dword [esi + 0x60]
shr ebx, cl
sub edi, ecx
test eax, eax
mov dword [ebp - 0x10], ebx
je 0x4950e8
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 0x4950ac
cmp word [ebp - 0xa], 0x11
movzx eax, ah
mov dword [ebp - 0x10], eax
jne 0x49508a
jmp 0x49504d
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x49502b
mov ecx, dword [ebp - 0x10]
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x4950a3
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x495068
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 0x4950f1
test eax, eax
je 0x4950d4
mov ecx, dword [esi + 0x60]
mov dx, word [ebp - 0x28]
mov word [esi + ecx*2 + 0x68], dx
inc dword [esi + 0x60]
dec eax
jne 0x4950c2
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
add eax, dword [esi + 0x58]
cmp dword [esi + 0x60], eax
jb 0x494f52
jmp 0x495101
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x4950fb
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.00495c2b
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x49514e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
mov dword [esi], 0x1b
jmp 0x49483a
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.00495c2b
mov edx, dword [ebp + 8]
add esp, 0x18
test eax, eax
mov dword [ebp - 0x24], eax
je 0x495195
mov eax, edx
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x49567c
mov dword [esi], 0x12
cmp dword [ebp - 4], 6
jb 0x4951fd
cmp dword [ebp - 0x14], 0x102
jb 0x4951fd
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.0049587c
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 0x49483a
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 0x495242
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x495212
test al, al
je 0x4952d7
test al, 0xf0
jne 0x4952d7
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 0x4952c2
cmp dword [ebp - 4], 0
je 0x4956c7
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 0x495284
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 0x4952fa
mov dword [esi], 0x17
jmp 0x49483d
test al, 0x20
je 0x495309
mov dword [esi], 0xb
jmp 0x49483d
test al, 0x40
je 0x495319
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x49567c
and eax, 0xf
mov dword [esi + 0x40], eax
mov dword [esi], 0x13
mov eax, dword [esi + 0x40]
test eax, eax
je 0x495366
cmp edi, eax
jae 0x495354
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x495330
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 0x4953b1
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x495381
test al, 0xf0
jne 0x49543e
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 0x495429
cmp dword [ebp - 4], 0
je 0x4956c7
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 0x4953eb
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 0x49545b
mov dword [edx + 0x18], str.invalid_distance_code
jmp 0x49567c
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 0x4954b2
cmp edi, eax
jae 0x49549d
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x495479
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 0x4954cc
mov dword [edx + 0x18], str.invalid_distance_too_far_back
jmp 0x49567c
mov dword [esi], 0x16
cmp dword [ebp - 0x14], 0
je 0x4956ca
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [esi + 0x3c]
cmp ecx, eax
jbe 0x495516
sub ecx, eax
mov eax, dword [esi + 0x2c]
mov dword [ebp - 0xc], ecx
mov ecx, dword [esi + 0x28]
cmp dword [ebp - 0xc], ecx
jbe 0x495504
add eax, dword [esi + 0x20]
sub dword [ebp - 0xc], ecx
sub eax, dword [ebp - 0xc]
jmp 0x495509
sub eax, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [esi + 0x38]
cmp dword [ebp - 0xc], ecx
mov dword [ebp - 0x28], ecx
jbe 0x495524
jmp 0x495521
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 0x49552f
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 0x49553e
cmp dword [esi + 0x38], 0
jne 0x49483a
mov dword [esi], 0x12
jmp 0x49483a
cmp dword [ebp - 0x14], 0
je 0x4956ca
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 0x49483d
cmp dword [esi + 8], 0
je 0x495639
jmp 0x4955b4
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x495592
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 0x4955f9
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 0x4955e6
call fcn.0049455b
jmp 0x4955eb
call fcn.00495fa7
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 0x495624
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 0x495632
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x49567c
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor edi, edi
mov dword [esi], 0x19
cmp dword [esi + 8], 0
je 0x4956af
cmp dword [esi + 0x10], 0
je 0x4956af
jmp 0x49566b
cmp dword [ebp - 4], 0
je 0x4956ca
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 0x49564d
cmp ebx, dword [esi + 0x18]
je 0x4956ab
mov dword [edx + 0x18], str.incorrect_length_check
mov dword [esi], 0x1b
jmp 0x49483d
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 0x49484a
xor ebx, ebx
xor edi, edi
mov dword [esi], 0x1a
mov dword [ebp - 0x24], 1
jmp 0x4956ca
mov dword [ebp - 0x24], 0xfffffffd
jmp 0x4956ca
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 0x4956fd
cmp dword [esi], 0x18
jge 0x495719
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x495719
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
call fcn.00494670
test eax, eax
je 0x495719
mov dword [esi], 0x1c
push 0xfffffffffffffffc
jmp 0x49484a
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 0x495766
test ebx, ebx
je 0x495766
mov eax, dword [edi + 0xc]
push ebx
sub eax, ebx
cmp dword [esi + 0x10], 0
push eax
push dword [esi + 0x14]
je 0x495755
call fcn.0049455b
jmp 0x49575a
call fcn.00495fa7
mov dword [esi + 0x14], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [esi], 0xb
jne 0x495772
mov ecx, 0x80
jmp 0x495774
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 0x49578e
test ebx, ebx
je 0x495794
cmp dword [ebp + 0xc], 4
jne 0x4957a1
cmp dword [ebp - 0x24], 0
jne 0x4957a1
mov dword [ebp - 0x24], 0xfffffffb
mov eax, dword [ebp - 0x24]
jmp 0x49484b