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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
cmp dword [ebp + 8], 0
mov dword [ebp - 0x40], 0xfffffffe
je 0x4b7ec1
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je 0x4b7ec1
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4b7ec1
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x38], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x50], eax
jne 0x4b6c62
test eax, eax
jne 0x4b7ec1
cmp dword [ebx], 0xb
jne 0x4b6c6d
mov dword [ebx], 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x40], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x34], eax
mov esi, dword [ebx]
cmp esi, 0x1c
ja case.default.0x4b6c9c
jmp dword [esi*4 + 0x529ee8]
mov dword [ebp - 0x40], 0xfffffffd
jmp 0x4b7dd5
mov dword [ebp - 0x40], 0xfffffffe
jmp 0x4b7ec1
mov eax, dword [ebx + 8]
test eax, eax
jne 0x4b6ced
mov dword [ebx], 0xc
jmp 0x4b6c95
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx edx, byte [edi - 1]
add dword [ebp - 0x2c], 8
shl edx, cl
add dword [ebp - 0x30], edx
cmp dword [ebp - 0x2c], 0xf
jbe 0x4b6cca
test al, 2
je 0x4b6d50
cmp dword [ebp - 0x30], 0x8b1f
jne 0x4b6d50
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004b8df7
lea edx, [ebp - 0x1c]
mov word [ebp - 0x1c], 0x8b1f
mov dword [ebx + 0x18], eax
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004b8df7
mov dword [ebx], 1
mov dword [ebx + 0x18], eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], esi
jmp 0x4b6c95
mov edx, dword [ebx + 0x20]
mov dword [ebx + 0x10], 0
test edx, edx
je 0x4b6d65
mov dword [edx + 0x30], 0xffffffff
test al, 1
je 0x4b6d87
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov ecx, 0x1f
shl eax, 8
shr edx, 8
movzx eax, ax
add eax, edx
xor edx, edx
div ecx
test edx, edx
je 0x4b6d93
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x529d40
jmp 0x4b6da8
mov eax, dword [ebp - 0x30]
and eax, 0xf
cmp eax, 8
je 0x4b6db3
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
mov dword [ebx], 0x1b
jmp 0x4b6c95
shr dword [ebp - 0x30], 4
mov ecx, dword [ebp - 0x30]
and ecx, 0xf
add ecx, 8
cmp dword [ebx + 0x24], ecx
jae 0x4b6dd5
mov eax, dword [ebp + 8]
sub dword [ebp - 0x2c], 4
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x4b6da8
mov eax, 1
shl eax, cl
mov dword [ebx + 0x14], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004b8a9c
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
and eax, 0x200
cmp eax, 1
sbb eax, eax
and eax, 2
add eax, 9
mov dword [ebx], eax
jmp 0x4b6c95
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0xf
jbe 0x4b6e2c
mov eax, dword [ebp - 0x30]
cmp byte [ebp - 0x30], 8
mov dword [ebx + 0x10], eax
jne 0x4b6d9e
test dword [ebp - 0x30], 0xe000
je 0x4b6e7d
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x4b6da8
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4b6e8f
mov eax, dword [ebp - 0x30]
shr eax, 8
and eax, 1
mov dword [edx], eax
bt dword [ebp - 0x30], 9
jae 0x4b6eba
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 2
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004b8df7
mov dword [ebx + 0x18], eax
mov dword [ebx], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp case.0x4b6c9c.2
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0x1f
jbe 0x4b6ed0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b6f06
mov esi, dword [ebp - 0x30]
mov dword [eax + 4], esi
test byte [ebx + 0x11], 2
je 0x4b6f2f
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 4
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004b8df7
mov dword [ebx + 0x18], eax
mov dword [ebx], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp case.0x4b6c9c.3
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0xf
jbe 0x4b6f45
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b6f85
movzx edx, byte [ebp - 0x30]
mov dword [eax + 8], edx
mov edx, dword [ebp - 0x30]
shr edx, 8
mov dword [eax + 0xc], edx
test byte [ebx + 0x11], 2
je 0x4b6faf
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 2
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004b8df7
mov dword [ebx + 0x18], eax
mov dword [ebx], 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebx + 0x10]
bt edx, 0xa
jae 0x4b7036
cmp dword [ebp - 0x2c], 0xf
ja 0x4b6ff7
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b6fcc
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b700a
mov esi, dword [ebp - 0x30]
mov dword [eax + 0x14], esi
bt edx, 9
jae 0x4b7046
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], 2
mov word [ebp - 0x1c], ax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004b8df7
mov dword [ebx + 0x18], eax
jmp 0x4b7046
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b7054
mov dword [eax + 0x10], 0
jmp 0x4b7054
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebx], 5
test byte [ebx + 0x11], 4
je 0x4b70e7
mov esi, dword [ebx + 0x40]
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x34], esi
cmova eax, esi
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x4b70dd
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4b70af
mov edi, dword [edx + 0x10]
test edi, edi
je 0x4b70af
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [edx + 0x18]
mov dword [ebp - 0x54], eax
sub eax, esi
add ecx, eax
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp - 0x58], edx
jbe 0x4b70a6
lea ecx, [edx + esi]
sub ecx, dword [ebp - 0x54]
add eax, edi
mov esi, dword [ebp - 0x38]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
test byte [ebx + 0x11], 2
je 0x4b70d1
mov eax, dword [ebp - 0x4c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004b8df7
mov dword [ebx + 0x18], eax
mov esi, dword [ebp - 0x4c]
sub dword [ebp - 0x34], esi
add dword [ebp - 0x38], esi
sub dword [ebx + 0x40], esi
cmp dword [ebx + 0x40], 0
jne 0x4b7dd5
mov dword [ebx + 0x40], 0
mov dword [ebx], 6
test byte [ebx + 0x11], 8
je 0x4b716a
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
xor esi, esi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x20]
inc esi
mov dl, byte [eax + esi - 1]
test ecx, ecx
je 0x4b712d
mov edi, dword [ecx + 0x1c]
test edi, edi
je 0x4b712d
mov eax, dword [ebx + 0x40]
cmp eax, dword [ecx + 0x20]
jae 0x4b712d
lea ecx, [eax + 1]
mov dword [ebx + 0x40], ecx
mov byte [edi + eax], dl
test dl, dl
je 0x4b7136
cmp dword [ebp - 0x34], esi
ja 0x4b7106
test byte [ebx + 0x11], 2
je 0x4b715b
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], esi
mov byte [ebp - 0x4c], dl
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004b8df7
mov dl, byte [ebp - 0x4c]
mov dword [ebx + 0x18], eax
sub dword [ebp - 0x34], esi
add dword [ebp - 0x38], esi
test dl, dl
je 0x4b7178
jmp 0x4b7dd5
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b7178
mov dword [eax + 0x1c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx], 7
test byte [ebx + 0x11], 0x10
je 0x4b71fb
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
xor esi, esi
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebx + 0x20]
inc esi
mov dl, byte [eax + esi - 1]
test ecx, ecx
je 0x4b71be
mov edi, dword [ecx + 0x24]
test edi, edi
je 0x4b71be
mov eax, dword [ebx + 0x40]
cmp eax, dword [ecx + 0x28]
jae 0x4b71be
lea ecx, [eax + 1]
mov dword [ebx + 0x40], ecx
mov byte [edi + eax], dl
test dl, dl
je 0x4b71c7
cmp dword [ebp - 0x34], esi
ja 0x4b7197
test byte [ebx + 0x11], 2
je 0x4b71ec
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], esi
mov byte [ebp - 0x4c], dl
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.004b8df7
mov dl, byte [ebp - 0x4c]
mov dword [ebx + 0x18], eax
sub dword [ebp - 0x34], esi
add dword [ebp - 0x38], esi
test dl, dl
je 0x4b7209
jmp 0x4b7dd5
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4b7209
mov dword [eax + 0x24], 0
mov dword [ebx], 8
mov eax, dword [ebx + 0x10]
bt eax, 9
jae 0x4b7269
cmp dword [ebp - 0x2c], 0xf
ja 0x4b7243
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx edx, byte [edi - 1]
add dword [ebp - 0x2c], 8
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x4b7218
movzx edx, word [ebx + 0x18]
cmp edx, dword [ebp - 0x30]
je 0x4b725b
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x4b6da8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x4b7280
sar eax, 9
mov dword [edx + 0x30], 1
and eax, 1
mov dword [edx + 0x2c], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004b8df7
mov esi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
jmp 0x4b7a1d
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0x1f
jbe 0x4b72aa
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp + 8]
shr edx, 0x18
shl ecx, 0x18
shr eax, 8
add ecx, edx
and eax, 0xff00
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x30], 0
shl eax, 8
and eax, 0xff0000
add eax, edx
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
mov dword [ebx], 0xa
cmp dword [ebx + 0xc], 0
jne 0x4b7351
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x40], 2
mov edi, dword [ebp - 0x3c]
mov dword [eax + 0xc], esi
mov esi, dword [ebp - 0x38]
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x34]
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
jmp 0x4b7ec1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.004b8a9c
mov esi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov dword [ebx], 0xb
cmp dword [ebp + 0xc], 5
je 0x4b7dd5
cmp dword [ebx + 4], 0
je 0x4b73c7
mov ecx, dword [ebp - 0x2c]
mov dword [ebx], 0x18
and dword [ebp - 0x2c], 0xfffffff8
and ecx, 7
shr dword [ebp - 0x30], cl
jmp 0x4b6c95
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 2
jbe 0x4b73a4
mov eax, dword [ebp - 0x30]
and eax, 1
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x30]
shr eax, 1
and eax, 3
cmp eax, 2
je 0x4b7417
cmp eax, 3
je 0x4b741f
dec eax
je 0x4b73f3
mov dword [ebx], 0xd
jmp 0x4b742f
mov dword [ebx + 0x4c], 0x529fe0
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x529f60
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x4b742f
mov dword [ebx], 0xf
jmp 0x4b742f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
sub dword [ebp - 0x2c], 3
shr dword [ebp - 0x30], 3
jmp 0x4b6c95
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0xfffffff8
and ecx, 7
shr dword [ebp - 0x30], cl
cmp dword [ebp - 0x2c], 0x1f
ja 0x4b7474
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b7449
mov eax, dword [ebp - 0x30]
movzx edx, word [ebp - 0x30]
shr eax, 0x10
xor eax, 0xffff
cmp edx, eax
je 0x4b7496
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x4b6da8
mov dword [ebx + 0x40], edx
mov dword [ebx], 0xe
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4b7a1d
cmp dword [ebp - 0x3c], eax
cmovbe eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x34], eax
cmovbe eax, dword [ebp - 0x34]
test eax, eax
je 0x4b7dd5
mov edi, dword [ebp - 0x44]
mov esi, dword [ebp - 0x38]
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
sub dword [ebp - 0x34], eax
sub dword [ebp - 0x3c], eax
sub dword [ebx + 0x40], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x44], edi
jmp 0x4b6c95
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0xd
jbe 0x4b74ec
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
sub dword [ebp - 0x2c], 0xe
shr eax, 5
shr edx, 0xa
and ecx, 0x1f
and eax, 0x1f
and edx, 0xf
shr dword [ebp - 0x30], 0xe
add ecx, 0x101
inc eax
add edx, 4
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], eax
mov dword [ebx + 0x5c], edx
cmp eax, 0x1e
ja 0x4b7555
cmp ecx, 0x11e
jbe 0x4b7564
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x4b6da8
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x10
mov esi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x68]
cmp eax, esi
jae 0x4b75c9
cmp dword [ebp - 0x2c], 2
ja 0x4b75a6
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx edx, byte [edi - 1]
add dword [ebp - 0x2c], 8
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x4b757b
lea edx, [eax + 1]
movzx eax, word [eax + eax + 0x52a7e0]
sub dword [ebp - 0x2c], 3
mov dword [ebx + 0x68], edx
mov edx, dword [ebp - 0x30]
shr dword [ebp - 0x30], 3
and edx, 7
mov word [ebx + eax*2 + 0x70], dx
jmp 0x4b7574
mov eax, dword [ebx + 0x68]
cmp eax, 0x12
ja 0x4b75e8
lea edx, [eax + 1]
movzx eax, word [eax + eax + 0x52a7e0]
mov dword [ebx + 0x68], edx
mov word [ebx + eax*2 + 0x70], 0
jmp 0x4b75c9
lea eax, [ebx + 0x530]
mov dword [ebx + 0x54], 7
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x2f0]
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x54]
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x6c]
mov dword [esp + 0xc], eax
lea eax, [ebx + 0x70]
mov dword [esp + 8], 0x13
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.004b8250
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4b7644
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x4b6da8
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x11
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x4c], eax
add eax, dword [ebx + 0x64]
mov dword [ebp - 0x54], eax
mov edx, dword [ebx + 0x68]
cmp edx, dword [ebp - 0x54]
jae 0x4b77ff
mov ecx, dword [ebx + 0x54]
or esi, 0xffffffff
mov edi, dword [ebx + 0x4c]
shl esi, cl
not esi
mov eax, dword [ebp - 0x30]
and eax, esi
lea ecx, [edi + eax*4]
movzx eax, byte [ecx + 1]
cmp eax, dword [ebp - 0x2c]
jbe 0x4b76ac
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b7676
mov si, word [ecx + 2]
cmp si, 0xf
ja 0x4b76cb
mov ecx, eax
sub dword [ebp - 0x2c], eax
lea eax, [edx + 1]
mov dword [ebx + 0x68], eax
shr dword [ebp - 0x30], cl
mov word [ebx + edx*2 + 0x70], si
jmp 0x4b765d
lea edi, [eax + 2]
cmp si, 0x10
jne 0x4b7729
cmp edi, dword [ebp - 0x2c]
jbe 0x4b76fe
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov esi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx esi, byte [esi - 1]
add dword [ebp - 0x2c], 8
shl esi, cl
add dword [ebp - 0x30], esi
jmp 0x4b76d4
mov ecx, eax
sub dword [ebp - 0x2c], eax
shr dword [ebp - 0x30], cl
test edx, edx
je 0x4b77d3
mov ecx, dword [ebp - 0x30]
movzx eax, word [ebx + edx*2 + 0x6e]
shr dword [ebp - 0x30], 2
sub dword [ebp - 0x2c], 2
and ecx, 3
add ecx, 3
jmp 0x4b77cc
lea edi, [eax + 3]
cmp si, 0x11
je 0x4b775a
lea edi, [eax + 7]
jmp 0x4b77a6
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov esi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx esi, byte [esi - 1]
add dword [ebp - 0x2c], 8
shl esi, cl
add dword [ebp - 0x30], esi
cmp edi, dword [ebp - 0x2c]
ja 0x4b7737
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
mov ecx, eax
shr esi, cl
sub edi, eax
mov ecx, esi
mov eax, edi
shr esi, 3
and ecx, 7
sub eax, 3
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], eax
add ecx, 3
jmp 0x4b77ca
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov esi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx esi, byte [esi - 1]
add dword [ebp - 0x2c], 8
shl esi, cl
add dword [ebp - 0x30], esi
cmp edi, dword [ebp - 0x2c]
ja 0x4b7783
mov esi, dword [ebp - 0x30]
mov ecx, eax
mov edi, 0xfffffff9
sub edi, eax
add dword [ebp - 0x2c], edi
shr esi, cl
mov ecx, esi
shr esi, 7
mov dword [ebp - 0x30], esi
and ecx, 0x7f
add ecx, 0xb
xor eax, eax
add edx, ecx
cmp edx, dword [ebp - 0x54]
jbe 0x4b77e5
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
jmp 0x4b77ff
dec ecx
mov edx, dword [ebx + 0x68]
cmp ecx, 0xffffffff
je 0x4b765d
lea esi, [edx + 1]
mov dword [ebx + 0x68], esi
mov word [ebx + edx*2 + 0x70], ax
jmp 0x4b77e5
cmp dword [ebx], 0x1b
je 0x4b6c95
lea eax, [ebx + 0x530]
mov dword [ebx + 0x54], 9
lea edx, [ebx + 0x2f0]
mov dword [ebx + 0x6c], eax
lea edi, [ebx + 0x6c]
lea esi, [ebx + 0x70]
mov dword [ebx + 0x4c], eax
lea eax, [ebx + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], 1
mov dword [ebp - 0x54], edx
call fcn.004b8250
mov edx, dword [ebp - 0x54]
test eax, eax
mov dword [ebp - 0x40], eax
je 0x4b7869
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x4b6da8
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x58], 6
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x58]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov eax, dword [ebx + 0x64]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x60]
mov dword [esp], 2
add eax, eax
add eax, esi
mov dword [esp + 4], eax
call fcn.004b8250
mov dword [ebp - 0x40], eax
test eax, eax
je 0x4b78b9
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x4b6da8
mov dword [ebx], 0x12
cmp dword [ebp - 0x34], 5
jbe 0x4b78ce
cmp dword [ebp - 0x3c], 0x101
ja 0x4b78e3
mov eax, dword [ebx + 0x4c]
mov ecx, dword [ebx + 0x54]
mov dword [ebp - 0x4c], eax
or eax, 0xffffffff
shl eax, cl
not eax
jmp 0x4b7972
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x38]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 0x34]
mov dword [eax], edi
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004b8624
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], eax
jmp 0x4b6c95
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx edx, byte [edi - 1]
add dword [ebp - 0x2c], 8
shl edx, cl
add dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x4c]
and edx, eax
lea ecx, [edi + edx*4]
movzx edi, byte [ecx + 1]
mov edx, edi
cmp edi, dword [ebp - 0x2c]
ja 0x4b794f
mov al, byte [ecx]
movzx esi, word [ecx + 2]
test al, al
je 0x4b79fc
test al, 0xf0
jne 0x4b79fc
lea ecx, [eax + edi]
or edx, 0xffffffff
movzx eax, si
shl edx, cl
mov dword [ebp - 0x58], eax
not edx
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x4c]
mov ecx, edi
mov eax, dword [ebp - 0x54]
and eax, dword [ebp - 0x30]
shr eax, cl
add eax, dword [ebp - 0x58]
lea ecx, [edx + eax*4]
mov dl, byte [ecx + 1]
mov al, byte [ecx]
movzx esi, word [ecx + 2]
movzx ecx, dl
add ecx, edi
cmp ecx, dword [ebp - 0x2c]
jbe 0x4b79f4
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b79a9
sub dword [ebp - 0x2c], edi
mov ecx, edi
shr dword [ebp - 0x30], cl
movzx edi, dl
mov ecx, edx
sub dword [ebp - 0x2c], edi
mov dword [ebx + 0x40], esi
shr dword [ebp - 0x30], cl
test al, al
jne 0x4b7a19
mov dword [ebx], 0x17
jmp 0x4b6c95
test al, 0x20
je 0x4b7a28
mov dword [ebx], 0xb
jmp 0x4b6c95
test al, 0x40
je 0x4b7a3b
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x529e6c
jmp 0x4b6da8
and eax, 0xf
mov dword [ebx], 0x13
mov dword [ebx + 0x48], eax
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x4b7a8d
cmp edx, dword [ebp - 0x2c]
jbe 0x4b7a78
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b7a4e
mov ecx, edx
or eax, 0xffffffff
sub dword [ebp - 0x2c], edx
shl eax, cl
not eax
and eax, dword [ebp - 0x30]
add dword [ebx + 0x40], eax
shr dword [ebp - 0x30], cl
mov dword [ebx], 0x14
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x58]
mov dword [ebp - 0x4c], eax
or eax, 0xffffffff
shl eax, cl
not eax
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x4c]
and edx, eax
lea ecx, [edi + edx*4]
movzx edi, byte [ecx + 1]
mov edx, edi
cmp edi, dword [ebp - 0x2c]
jbe 0x4b7ade
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx edx, byte [edx - 1]
add dword [ebp - 0x2c], 8
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x4b7aa3
mov al, byte [ecx]
movzx esi, word [ecx + 2]
test al, 0xf0
jne 0x4b7b4e
lea ecx, [eax + edi]
or edx, 0xffffffff
movzx eax, si
shl edx, cl
mov dword [ebp - 0x58], eax
not edx
mov dword [ebp - 0x54], edx
mov edx, dword [ebp - 0x4c]
mov ecx, edi
mov eax, dword [ebp - 0x54]
and eax, dword [ebp - 0x30]
shr eax, cl
add eax, dword [ebp - 0x58]
lea ecx, [edx + eax*4]
mov dl, byte [ecx + 1]
mov al, byte [ecx]
movzx esi, word [ecx + 2]
movzx ecx, dl
add ecx, edi
cmp ecx, dword [ebp - 0x2c]
jbe 0x4b7b46
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b7afb
sub dword [ebp - 0x2c], edi
mov ecx, edi
shr dword [ebp - 0x30], cl
movzx edi, dl
mov ecx, edx
sub dword [ebp - 0x2c], edi
shr dword [ebp - 0x30], cl
test al, 0x40
je 0x4b7b6c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x529e88
jmp 0x4b6da8
and eax, 0xf
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x15
mov edx, dword [ebx + 0x48]
test edx, edx
je 0x4b7bc1
cmp edx, dword [ebp - 0x2c]
jbe 0x4b7bac
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b7b82
mov ecx, edx
or eax, 0xffffffff
sub dword [ebp - 0x2c], edx
shl eax, cl
not eax
and eax, dword [ebp - 0x30]
add dword [ebx + 0x44], eax
shr dword [ebp - 0x30], cl
mov eax, dword [ebp - 0x48]
add eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x3c]
cmp dword [ebx + 0x44], eax
jbe 0x4b7bde
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x529e9e
jmp 0x4b6da8
mov dword [ebx], 0x16
cmp dword [ebp - 0x3c], 0
je 0x4b7dd5
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp - 0x48]
sub ecx, dword [ebp - 0x3c]
mov edx, dword [ebx + 0x40]
cmp eax, ecx
jbe 0x4b7c30
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebx + 0x30]
lea ecx, [eax + edi]
mov edi, dword [ebx + 0x34]
mov eax, ecx
sub eax, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edi
mov edi, dword [ebp - 0x48]
sub edi, ecx
mov ecx, edi
cmp esi, eax
jae 0x4b7c22
sub eax, esi
add esi, dword [ebx + 0x28]
add ecx, esi
mov esi, dword [ebp - 0x4c]
add esi, ecx
cmp eax, edx
cmova eax, edx
jmp 0x4b7c37
mov esi, dword [ebp - 0x44]
sub esi, eax
mov eax, edx
cmp dword [ebp - 0x3c], eax
cmovbe eax, dword [ebp - 0x3c]
sub dword [ebp - 0x3c], eax
sub edx, eax
add eax, dword [ebp - 0x44]
mov dword [ebx + 0x40], edx
mov edi, dword [ebp - 0x44]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x44], edi
cmp edi, eax
jne 0x4b7c49
cmp dword [ebx + 0x40], 0
jne 0x4b6c95
mov dword [ebx], 0x12
jmp 0x4b6c95
cmp dword [ebp - 0x3c], 0
je 0x4b7dd5
mov esi, dword [ebp - 0x44]
mov eax, dword [ebx + 0x40]
dec dword [ebp - 0x3c]
mov byte [esi], al
mov eax, esi
inc eax
mov dword [ebx], 0x12
mov dword [ebp - 0x44], eax
jmp 0x4b6c95
cmp dword [ebx + 8], 0
je 0x4b7d6a
cmp dword [ebp - 0x2c], 0x1f
ja 0x4b7cc4
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b7c99
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x3c]
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
test eax, eax
je 0x4b7d09
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebp - 0x3c]
sub edx, dword [ebp - 0x48]
add edx, dword [ebp - 0x44]
cmp dword [ebx + 0x10], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
je 0x4b7cfb
call fcn.004b8df7
jmp 0x4b7d00
call fcn.004b8a9c
mov edx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [edx + 0x30], eax
cmp dword [ebx + 0x10], 0
mov eax, dword [ebp - 0x30]
jne 0x4b7d36
mov edx, eax
mov ecx, eax
shr eax, 8
shr edx, 0x18
shl ecx, 0x18
and eax, 0xff00
add ecx, edx
lea edx, [ecx + eax]
mov eax, dword [ebp - 0x30]
shl eax, 8
and eax, 0xff0000
add eax, edx
cmp dword [ebx + 0x18], eax
je 0x4b7d56
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_data_check
mov eax, dword [ebp - 0x3c]
mov dword [ebx], 0x1b
mov dword [ebp - 0x48], eax
jmp 0x4b6c95
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x48], eax
mov dword [ebx], 0x19
cmp dword [ebx + 8], 0
je 0x4b7dc8
cmp dword [ebx + 0x10], 0
je 0x4b7dc8
cmp dword [ebp - 0x2c], 0x1f
ja 0x4b7da3
cmp dword [ebp - 0x34], 0
je 0x4b7dd5
inc dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x34]
movzx eax, byte [eax - 1]
add dword [ebp - 0x2c], 8
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4b7d7c
mov eax, dword [ebp - 0x30]
cmp dword [ebx + 0x1c], eax
je 0x4b7dba
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_length_check
jmp 0x4b6da8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebx], 0x1a
mov dword [ebp - 0x40], 1
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x34]
mov dword [eax + 0x10], edx
cmp dword [ebx + 0x28], 0
mov dword [eax], esi
mov dword [eax + 4], edi
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
jne 0x4b7e0b
cmp dword [ebx], 0x17
ja 0x4b7e25
cmp dword [ebp - 0x48], edx
je 0x4b7e25
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp + 8]
call fcn.004b6902
test eax, eax
je 0x4b7e25
mov dword [ebx], 0x1c
jmp case.0x4b6c9c.28
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x50]
mov edi, dword [ebp - 0x48]
sub esi, dword [eax + 4]
mov eax, dword [eax + 0x10]
add dword [edx + 8], esi
sub edi, eax
add dword [edx + 0x14], edi
add dword [ebx + 0x1c], edi
cmp dword [ebx + 8], 0
je 0x4b7e7b
test edi, edi
je 0x4b7e7b
sub eax, dword [ebp - 0x48]
add eax, dword [edx + 0xc]
mov edx, dword [ebx + 0x18]
cmp dword [ebx + 0x10], 0
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], edx
je 0x4b7e6d
call fcn.004b8df7
jmp 0x4b7e72
call fcn.004b8a9c
mov edx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [edx + 0x30], eax
cmp dword [ebx + 4], 1
mov edx, pe_nt_image_headers32
mov ecx, 0
sbb eax, eax
not eax
and eax, 0x40
add eax, dword [ebx + 0x3c]
cmp dword [ebx], 0xb
cmovne edx, ecx
mov ebx, dword [ebp + 8]
add eax, edx
or esi, edi
mov dword [ebx + 0x2c], eax
je 0x4b7eab
cmp dword [ebp + 0xc], 4
jne 0x4b7ec1
cmp dword [ebp - 0x40], 0
jne 0x4b7ec1
mov dword [ebp - 0x40], 0xfffffffb
jmp 0x4b7ec1
mov dword [ebp - 0x40], 0xfffffffc
mov eax, dword [ebp - 0x40]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret