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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x7c
cmp dword [ebp + 8], 0
je case.default.0x406a7d
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je case.default.0x406a7d
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp - 0x40], eax
je case.default.0x406a7d
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x406a2a
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne case.default.0x406a7d
cmp dword [ebx], 0xb
jne 0x406a35
mov dword [ebx], 0xc
mov eax, dword [ebp + 8]
mov edi, dword [ebx + 0x38]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], 0
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x30], edi
mov edi, dword [ebx + 0x3c]
mov esi, dword [esi + 4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebx + 0x530]
mov dword [ebp - 0x5c], eax
lea eax, [ebx + 0x2f0]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], eax
cmp dword [ebx], 0x1c
ja case.default.0x406a7d
mov eax, dword [ebx]
jmp dword [eax*4 + 0x41363c]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x406ab6
mov dword [ebx], 0xc
jmp 0x406a72
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [esi - 1]
shl edx, cl
add dword [ebp - 0x30], edx
cmp dword [ebp - 0x2c], 0xf
jbe 0x406a93
test al, 2
je 0x406b15
cmp dword [ebp - 0x30], 0x8b1f
jne 0x406b15
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00409f79
lea edx, [ebp - 0x1c]
mov byte [ebp - 0x1c], 0x1f
mov byte [ebp - 0x1b], 0x8b
mov dword [ebx + 0x18], eax
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00409f79
mov dword [ebx], 1
mov dword [ebx + 0x18], eax
jmp 0x406bd2
mov edx, dword [ebx + 0x20]
mov dword [ebx + 0x10], 0
test edx, edx
je 0x406b2a
mov dword [edx + 0x30], 0xffffffff
test al, 1
je 0x406b4b
mov edx, dword [ebp - 0x30]
mov ecx, 0x1f
mov eax, edx
shl eax, 8
shr edx, 8
movzx eax, ax
add eax, edx
xor edx, edx
div ecx
test edx, edx
je 0x406b5a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_header_check
jmp 0x407bf5
mov eax, dword [ebp - 0x30]
and eax, 0xf
cmp eax, 8
jne 0x406c18
shr dword [ebp - 0x30], 4
mov ecx, dword [ebp - 0x30]
and ecx, 0xf
add ecx, 8
cmp ecx, dword [ebx + 0x24]
jbe 0x406b8e
mov eax, dword [ebp + 8]
sub dword [ebp - 0x2c], 4
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x407bf5
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.0040a2a8
mov esi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x30]
and eax, 0x200
cmp eax, 1
sbb eax, eax
and eax, 2
add eax, 9
mov dword [ebx], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp 0x406a72
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0xf
jbe 0x406be5
mov eax, dword [ebp - 0x30]
cmp al, 8
mov dword [ebx + 0x10], eax
je 0x406c27
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x407bf5
test dword [ebp - 0x30], 0xe000
je 0x406c3f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x407bf5
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x406c51
mov eax, dword [ebp - 0x30]
shr eax, 8
and eax, 1
mov dword [edx], eax
test dword [ebp - 0x30], 0x200
je 0x406c87
mov edi, dword [ebp - 0x30]
mov dword [esp + 8], 2
mov eax, edi
mov byte [ebp - 0x1c], al
mov eax, edi
shr eax, 8
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
mov dword [ebx + 0x18], eax
mov dword [ebx], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp case.0x406a7d.2
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0x1f
jbe 0x406c9d
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x406cd3
mov edi, dword [ebp - 0x30]
mov dword [eax + 4], edi
test byte [ebx + 0x11], 2
je 0x406d16
mov esi, dword [ebp - 0x30]
mov dword [esp + 8], 4
mov eax, esi
mov byte [ebp - 0x1c], al
mov eax, esi
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, esi
shr eax, 0x10
mov byte [ebp - 0x1a], al
mov eax, esi
shr eax, 0x18
mov byte [ebp - 0x19], al
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
mov dword [ebx + 0x18], eax
mov dword [ebx], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp case.0x406a7d.3
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0xf
jbe 0x406d2c
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x406d72
mov edi, dword [ebp - 0x30]
mov edx, edi
and edx, 0xff
mov dword [eax + 8], edx
mov edx, edi
shr edx, 8
mov dword [eax + 0xc], edx
test byte [ebx + 0x11], 2
je 0x406da5
mov esi, dword [ebp - 0x30]
mov dword [esp + 8], 2
mov eax, esi
mov byte [ebp - 0x1c], al
mov eax, esi
shr eax, 8
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
mov dword [ebx + 0x18], eax
mov dword [ebx], 4
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov edx, dword [ebx + 0x10]
test dh, 4
je 0x406e30
cmp dword [ebp - 0x2c], 0xf
ja 0x406dec
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x406dc1
mov eax, dword [ebx + 0x20]
mov edi, dword [ebp - 0x30]
test eax, eax
mov dword [ebx + 0x40], edi
je 0x406dfc
mov dword [eax + 0x14], edi
and dh, 2
je 0x406e40
mov edi, dword [ebp - 0x30]
mov dword [esp + 8], 2
mov eax, edi
mov byte [ebp - 0x1c], al
mov eax, edi
shr eax, 8
mov byte [ebp - 0x1b], al
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
mov dword [ebx + 0x18], eax
jmp 0x406e40
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x406e4e
mov dword [eax + 0x10], 0
jmp 0x406e4e
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebx], 5
test byte [ebx + 0x11], 4
je 0x406ed0
mov esi, dword [ebx + 0x40]
mov edx, dword [ebp - 0x38]
cmp edx, esi
cmova edx, esi
test edx, edx
je 0x406ec6
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x406e98
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x406e98
mov eax, dword [ecx + 0x14]
sub eax, esi
mov esi, dword [ecx + 0x18]
lea ecx, [edx + eax]
mov dword [ebp - 0x4c], ecx
mov ecx, esi
sub ecx, eax
cmp dword [ebp - 0x4c], esi
mov esi, dword [ebp - 0x34]
cmovbe ecx, edx
add eax, edi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
test byte [ebx + 0x11], 2
je 0x406ebd
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], edx
mov dword [ebp - 0x4c], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
mov edx, dword [ebp - 0x4c]
mov dword [ebx + 0x18], eax
sub dword [ebp - 0x38], edx
add dword [ebp - 0x34], edx
sub dword [ebx + 0x40], edx
cmp dword [ebx + 0x40], 0
jne 0x407c26
mov dword [ebx + 0x40], 0
mov dword [ebx], 6
test byte [ebx + 0x11], 8
je 0x406f56
cmp dword [ebp - 0x38], 0
je 0x407c26
xor esi, esi
mov eax, dword [ebp - 0x34]
inc esi
mov ecx, dword [ebx + 0x20]
mov al, byte [eax + esi - 1]
test ecx, ecx
mov byte [ebp - 0x4c], al
movzx edi, al
je 0x406f1f
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x406f1f
mov eax, dword [ebx + 0x40]
cmp eax, dword [ecx + 0x20]
jae 0x406f1f
lea ecx, [eax + 1]
mov dword [ebx + 0x40], ecx
mov cl, byte [ebp - 0x4c]
mov byte [edx + eax], cl
test edi, edi
je 0x406f28
cmp esi, dword [ebp - 0x38]
jb 0x406eef
test byte [ebx + 0x11], 2
je 0x406f47
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
mov dword [ebx + 0x18], eax
sub dword [ebp - 0x38], esi
add dword [ebp - 0x34], esi
test edi, edi
je 0x406f64
jmp 0x407c26
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x406f64
mov dword [eax + 0x1c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx], 7
test byte [ebx + 0x11], 0x10
je 0x406fea
cmp dword [ebp - 0x38], 0
je 0x407c26
xor esi, esi
mov eax, dword [ebp - 0x34]
inc esi
mov ecx, dword [ebx + 0x20]
mov al, byte [eax + esi - 1]
test ecx, ecx
mov byte [ebp - 0x4c], al
movzx edi, al
je 0x406fb3
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x406fb3
mov eax, dword [ebx + 0x40]
cmp eax, dword [ecx + 0x28]
jae 0x406fb3
lea ecx, [eax + 1]
mov dword [ebx + 0x40], ecx
mov cl, byte [ebp - 0x4c]
mov byte [edx + eax], cl
test edi, edi
je 0x406fbc
cmp esi, dword [ebp - 0x38]
jb 0x406f83
test byte [ebx + 0x11], 2
je 0x406fdb
mov eax, dword [ebp - 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
mov dword [ebx + 0x18], eax
sub dword [ebp - 0x38], esi
add dword [ebp - 0x34], esi
test edi, edi
je 0x406ff8
jmp 0x407c26
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x406ff8
mov dword [eax + 0x24], 0
mov dword [ebx], 8
mov edx, dword [ebx + 0x10]
test dh, 2
je 0x407057
cmp dword [ebp - 0x2c], 0xf
ja 0x407031
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x407006
movzx eax, word [ebx + 0x18]
cmp dword [ebp - 0x30], eax
je 0x407049
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x407bf5
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40706e
sar edx, 9
and edx, 1
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00409f79
mov esi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
jmp 0x40784a
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0x1f
jbe 0x407098
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov edx, edi
mov eax, edi
shr eax, 0x18
shl edx, 0x18
add edx, eax
mov eax, edi
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, edi
mov edi, dword [ebp + 8]
and eax, 0xff00
shl eax, 8
add eax, edx
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
mov dword [ebx], 0xa
cmp dword [ebx + 0xc], 0
jne 0x40713b
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
mov dword [eax + 0xc], esi
mov esi, dword [ebp - 0x34]
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x38]
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
mov eax, 2
jmp 0x407d21
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040a2a8
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 0x407c26
cmp dword [ebx + 4], 0
je 0x4071b1
mov ecx, dword [ebp - 0x2c]
mov dword [ebx], 0x18
and dword [ebp - 0x2c], 0xfffffff8
and ecx, 7
shr dword [ebp - 0x30], cl
jmp 0x406a72
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 2
jbe 0x40718e
mov edx, dword [ebp - 0x30]
mov eax, edx
and eax, 1
shr edx, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
cmp eax, 2
je 0x407202
cmp eax, 3
je 0x40720a
dec eax
je 0x4071de
mov dword [ebx], 0xd
jmp 0x40721a
mov dword [ebx + 0x4c], 0x413730
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x4136b0
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x40721a
mov dword [ebx], 0xf
jmp 0x40721a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
shr edx, 2
mov dword [ebp - 0x30], edx
sub dword [ebp - 0x2c], 3
jmp 0x406a72
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0xfffffff8
and ecx, 7
shr dword [ebp - 0x30], cl
cmp dword [ebp - 0x2c], 0x1f
ja 0x407261
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x407236
mov eax, dword [ebp - 0x30]
movzx edx, ax
shr eax, 0x10
xor eax, 0xffff
cmp edx, eax
je 0x407282
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x407bf5
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 0x40784a
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x38]
cmp edi, eax
cmovbe eax, edi
cmp eax, esi
cmova eax, esi
test eax, eax
je 0x407c26
mov edi, dword [ebp - 0x40]
mov ecx, eax
mov esi, dword [ebp - 0x34]
rep movsb byte es:[edi], byte [esi]
sub dword [ebp - 0x38], eax
sub dword [ebp - 0x3c], eax
sub dword [ebx + 0x40], eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x40], edi
jmp 0x406a72
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
cmp dword [ebp - 0x2c], 0xd
jbe 0x4072da
mov edi, dword [ebp - 0x30]
sub dword [ebp - 0x2c], 0xe
shr dword [ebp - 0x30], 0xe
mov eax, edi
mov ecx, edi
shr eax, 5
and ecx, 0x1f
and eax, 0x1f
add ecx, 0x101
lea edx, [eax + 1]
mov eax, edi
shr eax, 0xa
and eax, 0xf
add eax, 4
cmp ecx, 0x11e
mov dword [ebx + 0x60], ecx
mov dword [ebx + 0x64], edx
mov dword [ebx + 0x5c], eax
ja 0x407345
cmp edx, 0x1e
jbe 0x407354
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x407bf5
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x10
mov esi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x68]
cmp eax, esi
jae 0x4073b9
cmp dword [ebp - 0x2c], 2
ja 0x407396
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov edi, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [edi - 1]
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x40736b
lea edx, [eax + 1]
movzx eax, word [eax + eax + 0x413f30]
mov dword [ebx + 0x68], edx
mov edx, dword [ebp - 0x30]
sub dword [ebp - 0x2c], 3
shr dword [ebp - 0x30], 3
and edx, 7
mov word [ebx + eax*2 + 0x70], dx
jmp 0x407364
mov eax, dword [ebx + 0x68]
cmp eax, 0x12
ja 0x4073d8
lea edx, [eax + 1]
movzx eax, word [eax + eax + 0x413f30]
mov dword [ebx + 0x68], edx
mov word [ebx + eax*2 + 0x70], 0
jmp 0x4073b9
mov eax, dword [ebp - 0x5c]
mov dword [ebx + 0x54], 7
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], 0x13
mov dword [esp], 0
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 + 4], eax
call fcn.0040a5d4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40742e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x407bf5
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x11
mov eax, dword [ebx + 0x60]
mov dword [ebp - 0x54], eax
add eax, dword [ebx + 0x64]
mov dword [ebp - 0x4c], eax
mov edi, dword [ebx + 0x68]
cmp edi, dword [ebp - 0x4c]
jae 0x40762f
mov ecx, dword [ebx + 0x54]
mov eax, 1
mov esi, dword [ebx + 0x4c]
shl eax, cl
lea eax, [eax - 1]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x30]
and eax, dword [ebp - 0x58]
lea eax, [esi + eax*4]
mov cl, byte [eax + 1]
mov dx, word [eax + 2]
mov byte [ebp - 0x64], cl
movzx eax, cl
mov ecx, dword [ebp - 0x2c]
cmp eax, ecx
jbe 0x4074a5
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x407466
cmp dx, 0xf
ja 0x4074ee
cmp dword [ebp - 0x2c], eax
jae 0x4074d5
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx esi, byte [esi - 1]
shl esi, cl
add dword [ebp - 0x30], esi
jmp 0x4074ab
mov cl, byte [ebp - 0x64]
sub dword [ebp - 0x2c], eax
lea eax, [edi + 1]
mov dword [ebx + 0x68], eax
shr dword [ebp - 0x30], cl
mov word [ebx + edi*2 + 0x70], dx
jmp 0x407447
cmp dx, 0x10
mov dword [ebp - 0x58], eax
lea esi, [eax + 2]
jne 0x407550
cmp dword [ebp - 0x2c], esi
jae 0x407524
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [edx - 1]
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x4074fa
mov cl, byte [ebp - 0x58]
shr dword [ebp - 0x30], cl
sub dword [ebp - 0x2c], eax
test edi, edi
je 0x407603
mov edx, dword [ebp - 0x30]
movzx eax, word [ebx + edi*2 + 0x6e]
shr dword [ebp - 0x30], 2
sub dword [ebp - 0x2c], 2
and edx, 3
add edx, 3
jmp 0x4075fb
cmp dx, 0x11
je 0x40755b
lea esi, [eax + 7]
jmp 0x4075cf
lea esi, [eax + 3]
cmp dword [ebp - 0x2c], esi
jae 0x407588
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [edx - 1]
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x40755e
mov esi, dword [ebp - 0x30]
mov cl, byte [ebp - 0x58]
shr esi, cl
mov ecx, esi
mov edx, esi
and edx, 7
mov esi, 0xfffffffd
shr ecx, 3
sub esi, eax
add edx, 3
mov dword [ebp - 0x30], ecx
add dword [ebp - 0x2c], esi
jmp 0x4075f9
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov edx, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [edx - 1]
shl edx, cl
add dword [ebp - 0x30], edx
cmp dword [ebp - 0x2c], esi
jb 0x4075ac
mov esi, dword [ebp - 0x30]
mov cl, byte [ebp - 0x58]
shr esi, cl
mov ecx, esi
mov edx, esi
mov esi, dword [ebp - 0x2c]
and edx, 0x7f
shr ecx, 7
add edx, 0xb
mov dword [ebp - 0x30], ecx
sub esi, eax
mov eax, esi
sub eax, 7
mov dword [ebp - 0x2c], eax
xor eax, eax
lea ecx, [edx + edi]
cmp ecx, dword [ebp - 0x4c]
jbe 0x407615
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
jmp 0x40762f
dec edx
cmp edx, 0xffffffff
je 0x407447
mov ecx, dword [ebx + 0x68]
lea esi, [ecx + 1]
mov dword [ebx + 0x68], esi
mov word [ebx + ecx*2 + 0x70], ax
jmp 0x407615
cmp dword [ebx], 0x1b
je 0x406a72
mov eax, dword [ebp - 0x5c]
lea esi, [ebx + 0x6c]
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x4c], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], esi
mov dword [esp], 1
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x54]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], eax
lea eax, [ebx + 0x70]
mov dword [esp + 4], eax
call fcn.0040a5d4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40768d
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x407bf5
mov eax, dword [ebx + 0x6c]
mov dword [ebx + 0x58], 6
mov dword [ebx + 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
lea eax, [ebx + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x64]
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x60]
mov dword [esp], 2
lea eax, [ebx + eax*2 + 0x70]
mov dword [esp + 4], eax
call fcn.0040a5d4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4076e0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x407bf5
mov dword [ebx], 0x12
cmp dword [ebp - 0x38], 5
jbe 0x407761
cmp dword [ebp - 0x3c], 0x101
jbe 0x407761
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x40]
mov esi, dword [ebp - 0x3c]
mov dword [eax + 0xc], edi
mov edi, dword [ebp - 0x34]
mov dword [eax + 0x10], esi
mov esi, dword [ebp - 0x38]
mov dword [eax], edi
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x30]
mov dword [ebx + 0x38], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0040aa2c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x40], 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 - 0x34], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0x30], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x2c], eax
jmp 0x406a72
mov ecx, dword [ebx + 0x54]
mov edi, 1
mov eax, dword [ebx + 0x4c]
shl edi, cl
mov dword [ebp - 0x4c], eax
lea eax, [edi - 1]
mov dword [ebp - 0x54], eax
mov edi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x30]
and eax, dword [ebp - 0x54]
lea ecx, [edi + eax*4]
mov dl, byte [ecx + 1]
mov al, byte [ecx]
movzx esi, word [ecx + 2]
mov ecx, dword [ebp - 0x2c]
movzx edi, dl
cmp edi, ecx
jbe 0x4077b8
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x407777
test al, al
je 0x407829
test al, 0xf0
jne 0x407829
lea ecx, [eax + edi]
mov edx, 1
shl edx, cl
lea eax, [edx - 1]
mov dword [ebp - 0x54], eax
movzx eax, si
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x30]
mov ecx, edi
and eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x4c]
shr eax, cl
add eax, dword [ebp - 0x58]
lea ecx, [esi + 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 0x407821
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4077d6
mov ecx, edi
sub dword [ebp - 0x2c], edi
shr dword [ebp - 0x30], cl
movzx edi, dl
mov cl, dl
sub dword [ebp - 0x2c], edi
shr dword [ebp - 0x30], cl
test al, al
mov dword [ebx + 0x40], esi
jne 0x407846
mov dword [ebx], 0x17
jmp 0x406a72
test al, 0x20
je 0x407855
mov dword [ebx], 0xb
jmp 0x406a72
test al, 0x40
je 0x407868
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x4135c0
jmp 0x407bf5
and eax, 0xf
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x13
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4078bb
cmp dword [ebp - 0x2c], eax
jae 0x4078a5
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov edi, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [edi - 1]
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x40787b
mov cl, al
mov edx, 1
shl edx, cl
dec edx
sub dword [ebp - 0x2c], eax
and edx, dword [ebp - 0x30]
shr dword [ebp - 0x30], cl
add dword [ebx + 0x40], edx
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
mov edi, 1
mov eax, dword [ebx + 0x50]
shl edi, cl
mov dword [ebp - 0x58], eax
dec edi
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x58]
and eax, edi
lea eax, [esi + eax*4]
mov cl, byte [eax + 1]
mov dl, byte [eax]
movzx esi, word [eax + 2]
mov byte [ebp - 0x54], cl
movzx eax, cl
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x4c], eax
cmp eax, ecx
jbe 0x407918
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x4078d2
test dl, 0xf0
jne 0x40798e
mov al, byte [ebp - 0x4c]
movzx edi, si
lea ecx, [edx + eax]
mov edx, 1
shl edx, cl
lea eax, [edx - 1]
mov dword [ebp - 0x64], eax
mov cl, byte [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
and edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x58]
shr edx, cl
add edx, edi
lea ecx, [eax + edx*4]
mov al, byte [ecx + 1]
mov dl, byte [ecx]
movzx esi, word [ecx + 2]
mov byte [ebp - 0x54], al
movzx ecx, al
mov eax, dword [ebp - 0x2c]
add ecx, dword [ebp - 0x4c]
cmp ecx, eax
jbe 0x407983
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov cl, al
mov esi, dword [ebp - 0x34]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [esi - 1]
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x407933
mov eax, dword [ebp - 0x4c]
sub dword [ebp - 0x2c], eax
mov cl, al
shr dword [ebp - 0x30], cl
mov cl, byte [ebp - 0x54]
shr dword [ebp - 0x30], cl
movzx eax, cl
sub dword [ebp - 0x2c], eax
test dl, 0x40
je 0x4079ae
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x4135dc
jmp 0x407bf5
mov eax, edx
and eax, 0xf
mov dword [ebx + 0x44], esi
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x15
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x407a06
cmp dword [ebp - 0x2c], eax
jae 0x4079f0
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov edi, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx edx, byte [edi - 1]
shl edx, cl
add dword [ebp - 0x30], edx
jmp 0x4079c6
mov cl, al
mov edx, 1
shl edx, cl
dec edx
sub dword [ebp - 0x2c], eax
and edx, dword [ebp - 0x30]
shr dword [ebp - 0x30], cl
add dword [ebx + 0x44], edx
mov eax, dword [ebp - 0x44]
add eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x3c]
cmp dword [ebx + 0x44], eax
jbe 0x407a23
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x4135f2
jmp 0x407bf5
mov dword [ebx], 0x16
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x407c26
mov edx, dword [ebp - 0x44]
sub edx, eax
mov eax, dword [ebx + 0x44]
cmp eax, edx
jbe 0x407a63
sub eax, edx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
cmp eax, edx
jbe 0x407a55
sub eax, edx
sub ecx, eax
add ecx, dword [ebx + 0x28]
jmp 0x407a59
sub edx, eax
add ecx, edx
mov edx, dword [ebx + 0x40]
cmp eax, edx
cmova eax, edx
jmp 0x407a6b
mov ecx, dword [ebp - 0x40]
sub ecx, eax
mov eax, dword [ebx + 0x40]
mov esi, dword [ebp - 0x3c]
cmp eax, esi
cmovbe esi, eax
xor edx, edx
sub dword [ebp - 0x3c], esi
sub dword [ebx + 0x40], esi
mov al, byte [ecx + edx]
mov edi, dword [ebp - 0x40]
mov byte [edi + edx], al
inc edx
cmp edx, esi
jne 0x407a7b
add dword [ebp - 0x40], edx
cmp dword [ebx + 0x40], 0
jne 0x406a72
mov dword [ebx], 0x12
jmp 0x406a72
cmp dword [ebp - 0x3c], 0
je 0x407c26
mov edi, dword [ebp - 0x40]
mov eax, dword [ebx + 0x40]
dec dword [ebp - 0x3c]
mov byte [edi], al
lea eax, [edi + 1]
mov dword [ebx], 0x12
mov dword [ebp - 0x40], eax
jmp 0x406a72
cmp dword [ebx + 8], 0
je 0x407baa
cmp dword [ebp - 0x2c], 0x1f
ja 0x407afc
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x407ad1
mov eax, dword [ebp - 0x44]
mov esi, dword [ebp + 8]
sub eax, dword [ebp - 0x3c]
add dword [esi + 0x14], eax
add dword [ebx + 0x1c], eax
test eax, eax
je 0x407b49
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp - 0x40]
mov dword [esp + 8], eax
je 0x407b2f
sub edi, eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
jmp 0x407b40
sub edi, eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0040a2a8
mov edi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
cmp dword [ebx + 0x10], 0
mov eax, dword [ebp - 0x30]
jne 0x407b76
mov edx, eax
mov edi, eax
shl edx, 0x18
shr eax, 0x18
add edx, eax
mov eax, edi
shr eax, 8
and eax, 0xff00
add edx, eax
mov eax, edi
and eax, 0xff00
shl eax, 8
add eax, edx
cmp eax, dword [ebx + 0x18]
je 0x407b96
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 - 0x44], eax
jmp 0x406a72
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x44], eax
mov dword [ebx], 0x19
cmp dword [ebx + 8], 0
je 0x407c0e
cmp dword [ebx + 0x10], 0
je 0x407c0e
cmp dword [ebp - 0x2c], 0x1f
ja 0x407be3
cmp dword [ebp - 0x38], 0
je 0x407c26
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2c]
dec dword [ebp - 0x38]
add dword [ebp - 0x2c], 8
movzx eax, byte [eax - 1]
shl eax, cl
add dword [ebp - 0x30], eax
jmp 0x407bbc
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebx + 0x1c]
je 0x407c00
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_length_check
mov dword [ebx], 0x1b
jmp 0x406a72
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebx], 0x1a
jmp case.0x406a7d.26
mov dword [ebp - 0x48], 0xfffffffd
jmp 0x407c26
mov dword [ebp - 0x48], 1
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x40]
mov edi, dword [ebp - 0x3c]
cmp dword [ebx + 0x28], 0
mov dword [eax + 0xc], esi
mov esi, dword [ebp - 0x34]
mov dword [eax + 0x10], edi
mov edi, dword [ebp - 0x38]
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 0x407c5f
cmp dword [ebx], 0x17
ja 0x407c7e
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x44], eax
je 0x407c7e
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
call fcn.004066f9
test eax, eax
je 0x407c7e
mov dword [ebx], 0x1c
mov eax, 0xfffffffc
jmp 0x407d21
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x44]
sub esi, dword [eax + 4]
sub edi, dword [eax + 0x10]
add dword [eax + 8], esi
add dword [eax + 0x14], edi
add dword [ebx + 0x1c], edi
cmp dword [ebx + 8], 0
je 0x407cda
test edi, edi
je 0x407cda
cmp dword [ebx + 0x10], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 8], edi
je 0x407cc0
sub eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00409f79
jmp 0x407cd1
sub eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0040a2a8
mov edx, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [edx + 0x30], eax
cmp dword [ebx + 4], 1
mov ecx, 0
mov edx, pe_nt_image_headers32
sbb eax, eax
not eax
and eax, 0x40
add eax, dword [ebx + 0x3c]
cmp dword [ebx], 0xb
cmovne edx, ecx
mov ecx, dword [ebp + 8]
add eax, edx
or edi, esi
mov dword [ecx + 0x2c], eax
je 0x407d0d
cmp dword [ebp + 0xc], 4
mov eax, dword [ebp - 0x48]
jne 0x407d21
mov edi, dword [ebp - 0x48]
mov eax, 0xfffffffb
test edi, edi
cmovne eax, edi
jmp 0x407d21
mov eax, 0xfffffffe
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret