Function at 0x40bbee
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.0x40bc89
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x1c]
test ebx, ebx
je case.default.0x40bc89
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp - 0x40], eax
je case.default.0x40bc89
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x34], eax
jne 0x40bc36
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
jne case.default.0x40bc89
cmp dword [ebx], 0xb
jne 0x40bc41
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.0x40bc89
mov eax, dword [ebx]
jmp dword [eax*4 + 0x416d2c]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x40bcc2
mov dword [ebx], 0xc
jmp 0x40bc7e
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40bc9f
test al, 2
je 0x40bd21
cmp dword [ebp - 0x30], 0x8b1f
jne 0x40bd21
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040d369
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.0040d369
mov dword [ebx], 1
mov dword [ebx + 0x18], eax
jmp 0x40bdde
mov edx, dword [ebx + 0x20]
mov dword [ebx + 0x10], 0
test edx, edx
je 0x40bd36
mov dword [edx + 0x30], 0xffffffff
test al, 1
je 0x40bd57
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 0x40bd66
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_header_check
jmp 0x40ce01
mov eax, dword [ebp - 0x30]
and eax, 0xf
cmp eax, 8
jne 0x40be24
shr dword [ebp - 0x30], 4
mov ecx, dword [ebp - 0x30]
and ecx, 0xf
add ecx, 8
cmp ecx, dword [ebx + 0x24]
jbe 0x40bd9a
mov eax, dword [ebp + 8]
sub dword [ebp - 0x2c], 4
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x40ce01
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.0040d698
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 0x40bc7e
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40bdf1
mov eax, dword [ebp - 0x30]
cmp al, 8
mov dword [ebx + 0x10], eax
je 0x40be33
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x40ce01
test dword [ebp - 0x30], 0xe000
je 0x40be4b
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x40ce01
mov edx, dword [ebx + 0x20]
test edx, edx
je 0x40be5d
mov eax, dword [ebp - 0x30]
shr eax, 8
and eax, 1
mov dword [edx], eax
test dword [ebp - 0x30], 0x200
je 0x40be93
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.0040d369
mov dword [ebx + 0x18], eax
mov dword [ebx], 2
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp case.0x40bc89.2
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40bea9
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40bedf
mov edi, dword [ebp - 0x30]
mov dword [eax + 4], edi
test byte [ebx + 0x11], 2
je 0x40bf22
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.0040d369
mov dword [ebx + 0x18], eax
mov dword [ebx], 3
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
jmp case.0x40bc89.3
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40bf38
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40bf7e
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 0x40bfb1
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.0040d369
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 0x40c03c
cmp dword [ebp - 0x2c], 0xf
ja 0x40bff8
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40bfcd
mov eax, dword [ebx + 0x20]
mov edi, dword [ebp - 0x30]
test eax, eax
mov dword [ebx + 0x40], edi
je 0x40c008
mov dword [eax + 0x14], edi
and dh, 2
je 0x40c04c
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.0040d369
mov dword [ebx + 0x18], eax
jmp 0x40c04c
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40c05a
mov dword [eax + 0x10], 0
jmp 0x40c05a
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebx], 5
test byte [ebx + 0x11], 4
je 0x40c0dc
mov esi, dword [ebx + 0x40]
mov edx, dword [ebp - 0x38]
cmp edx, esi
cmova edx, esi
test edx, edx
je 0x40c0d2
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x40c0a4
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x40c0a4
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 0x40c0c9
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.0040d369
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 0x40ce32
mov dword [ebx + 0x40], 0
mov dword [ebx], 6
test byte [ebx + 0x11], 8
je 0x40c162
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c12b
mov edx, dword [ecx + 0x1c]
test edx, edx
je 0x40c12b
mov eax, dword [ebx + 0x40]
cmp eax, dword [ecx + 0x20]
jae 0x40c12b
lea ecx, [eax + 1]
mov dword [ebx + 0x40], ecx
mov cl, byte [ebp - 0x4c]
mov byte [edx + eax], cl
test edi, edi
je 0x40c134
cmp esi, dword [ebp - 0x38]
jb 0x40c0fb
test byte [ebx + 0x11], 2
je 0x40c153
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.0040d369
mov dword [ebx + 0x18], eax
sub dword [ebp - 0x38], esi
add dword [ebp - 0x34], esi
test edi, edi
je 0x40c170
jmp 0x40ce32
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40c170
mov dword [eax + 0x1c], 0
mov dword [ebx + 0x40], 0
mov dword [ebx], 7
test byte [ebx + 0x11], 0x10
je 0x40c1f6
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c1bf
mov edx, dword [ecx + 0x24]
test edx, edx
je 0x40c1bf
mov eax, dword [ebx + 0x40]
cmp eax, dword [ecx + 0x28]
jae 0x40c1bf
lea ecx, [eax + 1]
mov dword [ebx + 0x40], ecx
mov cl, byte [ebp - 0x4c]
mov byte [edx + eax], cl
test edi, edi
je 0x40c1c8
cmp esi, dword [ebp - 0x38]
jb 0x40c18f
test byte [ebx + 0x11], 2
je 0x40c1e7
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.0040d369
mov dword [ebx + 0x18], eax
sub dword [ebp - 0x38], esi
add dword [ebp - 0x34], esi
test edi, edi
je 0x40c204
jmp 0x40ce32
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40c204
mov dword [eax + 0x24], 0
mov dword [ebx], 8
mov edx, dword [ebx + 0x10]
test dh, 2
je 0x40c263
cmp dword [ebp - 0x2c], 0xf
ja 0x40c23d
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c212
movzx eax, word [ebx + 0x18]
cmp dword [ebp - 0x30], eax
je 0x40c255
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x40ce01
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x40c27a
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.0040d369
mov esi, dword [ebp + 8]
mov dword [ebx + 0x18], eax
mov dword [esi + 0x30], eax
jmp 0x40ca56
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c2a4
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 0x40c347
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 0x40cf2d
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.0040d698
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 0x40ce32
cmp dword [ebx + 4], 0
je 0x40c3bd
mov ecx, dword [ebp - 0x2c]
mov dword [ebx], 0x18
and dword [ebp - 0x2c], 0xfffffff8
and ecx, 7
shr dword [ebp - 0x30], cl
jmp 0x40bc7e
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c39a
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 0x40c40e
cmp eax, 3
je 0x40c416
dec eax
je 0x40c3ea
mov dword [ebx], 0xd
jmp 0x40c426
mov dword [ebx + 0x4c], 0x416e20
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x416da0
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x40c426
mov dword [ebx], 0xf
jmp 0x40c426
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 0x40bc7e
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x2c], 0xfffffff8
and ecx, 7
shr dword [ebp - 0x30], cl
cmp dword [ebp - 0x2c], 0x1f
ja 0x40c46d
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c442
mov eax, dword [ebp - 0x30]
movzx edx, ax
shr eax, 0x10
xor eax, 0xffff
cmp edx, eax
je 0x40c48e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x40ce01
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 0x40ca56
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 0x40ce32
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 0x40bc7e
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c4e6
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 0x40c551
cmp edx, 0x1e
jbe 0x40c560
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x40ce01
mov dword [ebx + 0x68], 0
mov dword [ebx], 0x10
mov esi, dword [ebx + 0x5c]
mov eax, dword [ebx + 0x68]
cmp eax, esi
jae 0x40c5c5
cmp dword [ebp - 0x2c], 2
ja 0x40c5a2
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c577
lea edx, [eax + 1]
movzx eax, word [eax + eax + 0x417620]
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 0x40c570
mov eax, dword [ebx + 0x68]
cmp eax, 0x12
ja 0x40c5e4
lea edx, [eax + 1]
movzx eax, word [eax + eax + 0x417620]
mov dword [ebx + 0x68], edx
mov word [ebx + eax*2 + 0x70], 0
jmp 0x40c5c5
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.0040d9c4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40c63a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x40ce01
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 0x40c83b
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 0x40c6b1
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c672
cmp dx, 0xf
ja 0x40c6fa
cmp dword [ebp - 0x2c], eax
jae 0x40c6e1
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c6b7
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 0x40c653
cmp dx, 0x10
mov dword [ebp - 0x58], eax
lea esi, [eax + 2]
jne 0x40c75c
cmp dword [ebp - 0x2c], esi
jae 0x40c730
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c706
mov cl, byte [ebp - 0x58]
shr dword [ebp - 0x30], cl
sub dword [ebp - 0x2c], eax
test edi, edi
je 0x40c80f
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 0x40c807
cmp dx, 0x11
je 0x40c767
lea esi, [eax + 7]
jmp 0x40c7db
lea esi, [eax + 3]
cmp dword [ebp - 0x2c], esi
jae 0x40c794
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c76a
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 0x40c805
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c7b8
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 0x40c821
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [ebx], 0x1b
jmp 0x40c83b
dec edx
cmp edx, 0xffffffff
je 0x40c653
mov ecx, dword [ebx + 0x68]
lea esi, [ecx + 1]
mov dword [ebx + 0x68], esi
mov word [ebx + ecx*2 + 0x70], ax
jmp 0x40c821
cmp dword [ebx], 0x1b
je 0x40bc7e
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.0040d9c4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40c899
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x40ce01
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.0040d9c4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40c8ec
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x40ce01
mov dword [ebx], 0x12
cmp dword [ebp - 0x38], 5
jbe 0x40c96d
cmp dword [ebp - 0x3c], 0x101
jbe 0x40c96d
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.0040de1c
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 0x40bc7e
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 0x40c9c4
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c983
test al, al
je 0x40ca35
test al, 0xf0
jne 0x40ca35
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 0x40ca2d
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40c9e2
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 0x40ca52
mov dword [ebx], 0x17
jmp 0x40bc7e
test al, 0x20
je 0x40ca61
mov dword [ebx], 0xb
jmp 0x40bc7e
test al, 0x40
je 0x40ca74
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x416cb0
jmp 0x40ce01
and eax, 0xf
mov dword [ebx + 0x48], eax
mov dword [ebx], 0x13
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40cac7
cmp dword [ebp - 0x2c], eax
jae 0x40cab1
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40ca87
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 0x40cb24
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40cade
test dl, 0xf0
jne 0x40cb9a
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 0x40cb8f
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40cb3f
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 0x40cbba
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x416ccc
jmp 0x40ce01
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 0x40cc12
cmp dword [ebp - 0x2c], eax
jae 0x40cbfc
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40cbd2
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 0x40cc2f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0x416ce2
jmp 0x40ce01
mov dword [ebx], 0x16
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40ce32
mov edx, dword [ebp - 0x44]
sub edx, eax
mov eax, dword [ebx + 0x44]
cmp eax, edx
jbe 0x40cc6f
sub eax, edx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
cmp eax, edx
jbe 0x40cc61
sub eax, edx
sub ecx, eax
add ecx, dword [ebx + 0x28]
jmp 0x40cc65
sub edx, eax
add ecx, edx
mov edx, dword [ebx + 0x40]
cmp eax, edx
cmova eax, edx
jmp 0x40cc77
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 0x40cc87
add dword [ebp - 0x40], edx
cmp dword [ebx + 0x40], 0
jne 0x40bc7e
mov dword [ebx], 0x12
jmp 0x40bc7e
cmp dword [ebp - 0x3c], 0
je 0x40ce32
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 0x40bc7e
cmp dword [ebx + 8], 0
je 0x40cdb6
cmp dword [ebp - 0x2c], 0x1f
ja 0x40cd08
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40ccdd
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 0x40cd55
cmp dword [ebx + 0x10], 0
mov edi, dword [ebp - 0x40]
mov dword [esp + 8], eax
je 0x40cd3b
sub edi, eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0040d369
jmp 0x40cd4c
sub edi, eax
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0040d698
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 0x40cd82
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 0x40cda2
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 0x40bc7e
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 0x40ce1a
cmp dword [ebx + 0x10], 0
je 0x40ce1a
cmp dword [ebp - 0x2c], 0x1f
ja 0x40cdef
cmp dword [ebp - 0x38], 0
je 0x40ce32
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 0x40cdc8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebx + 0x1c]
je 0x40ce0c
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_length_check
mov dword [ebx], 0x1b
jmp 0x40bc7e
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebx], 0x1a
jmp case.0x40bc89.26
mov dword [ebp - 0x48], 0xfffffffd
jmp 0x40ce32
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 0x40ce6b
cmp dword [ebx], 0x17
ja 0x40ce8a
mov eax, dword [ebp - 0x3c]
cmp dword [ebp - 0x44], eax
je 0x40ce8a
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
call fcn.0040b905
test eax, eax
je 0x40ce8a
mov dword [ebx], 0x1c
mov eax, 0xfffffffc
jmp 0x40cf2d
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 0x40cee6
test edi, edi
je 0x40cee6
cmp dword [ebx + 0x10], 0
mov eax, dword [eax + 0xc]
mov dword [esp + 8], edi
je 0x40cecc
sub eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0040d369
jmp 0x40cedd
sub eax, edi
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.0040d698
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 0x40cf19
cmp dword [ebp + 0xc], 4
mov eax, dword [ebp - 0x48]
jne 0x40cf2d
mov edi, dword [ebp - 0x48]
mov eax, 0xfffffffb
test edi, edi
cmovne eax, edi
jmp 0x40cf2d
mov eax, 0xfffffffe
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret