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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je case.0x471d87.29
mov ebx, dword [edi + 0x1c]
test ebx, ebx
je case.0x471d87.29
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], eax
test eax, eax
je case.0x471d87.29
mov eax, dword [edi]
mov dword [ebp - 8], eax
test eax, eax
jne 0x471d23
cmp dword [edi + 4], eax
jne case.0x471d87.29
mov eax, dword [ebx]
push 0xc
pop ecx
cmp eax, 0xb
jne 0x471d3c
mov dword [ebx], ecx
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, ecx
mov ecx, dword [edi + 0x10]
and dword [ebp - 0x2c], 0
mov edx, dword [ebx + 0x38]
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 4]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x28], ecx
cmp eax, 0x1d
ja case.0x471d87.29
mov ecx, eax
mov dword [ebp - 0x24], 0x10
mov dword [ebp - 0x34], 0x1f
mov dword [ebp - 0x40], 0x11
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], esi
jmp dword [eax*4 + 0x473020]
mov eax, dword [ebx + 8]
test eax, eax
jne 0x471da0
mov dword [ebx], 0xc
jmp 0x472ee9
cmp esi, dword [ebp - 0x24]
jae 0x471dd4
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
add esi, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], esi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x14], edx
cmp esi, dword [ebp - 0x24]
jb 0x471da5
mov eax, dword [ebx + 8]
test al, 2
je 0x471e1e
cmp edx, 0x8b1f
jne 0x471e1e
xor esi, esi
push esi
push esi
push esi
call fcn.0046fec9
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x34]
mov byte [ebp - 0x1c], al
lea eax, [ebp - 0x1c]
push 2
push eax
mov byte [ebp - 0x1b], 0x8b
push dword [ebx + 0x18]
call fcn.0046fec9
mov edx, esi
mov dword [ebx + 0x18], eax
add esp, 0x18
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov dword [ebx], 1
jmp 0x472ee9
and dword [ebx + 0x10], 0
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x471e30
or dword [ecx + 0x30], 0xffffffff
mov eax, dword [ebx + 8]
test al, 1
je 0x471ec2
movzx ecx, dl
mov eax, edx
shr eax, 8
xor edx, edx
shl ecx, 8
add eax, ecx
div dword [ebp - 0x34]
test edx, edx
mov edx, dword [ebp - 0x14]
jne 0x471ec2
mov eax, edx
and al, 0xf
cmp al, 8
je 0x471e65
mov dword [edi + 0x18], str.unknown_compression_method
jmp 0x472ee3
shr edx, 4
sub esi, 4
mov ecx, edx
mov dword [ebp - 0x14], edx
and ecx, 0xf
mov dword [ebp - 0xc], esi
add ecx, 8
cmp ecx, dword [ebx + 0x24]
jbe 0x471e8a
mov dword [edi + 0x18], str.invalid_window_size
jmp 0x472ee3
xor esi, esi
xor eax, eax
push esi
inc eax
shl eax, cl
push esi
push esi
mov dword [ebx + 0x14], eax
call fcn.0046fc88
mov edx, dword [ebp - 0x14]
add esp, 0xc
shr edx, 8
not edx
mov dword [ebx + 0x18], eax
and edx, 2
mov dword [edi + 0x30], eax
or edx, 9
mov dword [ebx], edx
mov edx, esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
jmp 0x472ee9
mov dword [edi + 0x18], str.incorrect_header_check
jmp 0x472ee3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x24]
jb 0x471ece
mov dword [ebx + 0x10], edx
cmp dl, 8
jne 0x471e59
test edx, 0xe000
je 0x471f1a
mov dword [edi + 0x18], str.unknown_header_flags_set
jmp 0x472ee3
mov esi, dword [ebx + 0x20]
mov ecx, edx
shr ecx, 8
mov eax, edx
test esi, esi
je 0x471f32
mov eax, ecx
and eax, 1
mov dword [esi], eax
mov eax, dword [ebx + 0x10]
test eax, 0x200
je 0x471f53
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x18]
call fcn.0046fec9
add esp, 0xc
mov dword [ebx + 0x18], eax
mov esi, dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x14], edx
xor ecx, ecx
mov dword [ebx], 2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f46
dec eax
mov dword [ebp - 0x10], eax
movzx eax, byte [esi]
shl eax, cl
add ecx, 8
add edx, eax
inc esi
cmp ecx, 0x20
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], esi
jb 0x471f63
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x471f92
mov dword [eax + 4], edx
test dword [ebx + 0x10], 0x200
je 0x471fc8
mov eax, edx
mov byte [ebp - 0x1c], dl
shr eax, 8
mov byte [ebp - 0x1b], al
mov eax, edx
shr eax, 0x10
mov byte [ebp - 0x1a], al
lea eax, [ebp - 0x1c]
push 4
shr edx, 0x18
push eax
mov byte [ebp - 0x19], dl
push dword [ebx + 0x18]
call fcn.0046fec9
add esp, 0xc
mov dword [ebx + 0x18], eax
xor edx, edx
mov dword [ebx], 3
mov dword [ebp - 0x14], edx
xor ecx, ecx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f46
dec eax
mov dword [ebp - 0x10], eax
movzx eax, byte [esi]
shl eax, cl
add ecx, 8
add edx, eax
inc esi
cmp ecx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 8], esi
jb 0x471fd5
mov esi, dword [ebx + 0x20]
mov ecx, edx
shr ecx, 8
test esi, esi
je 0x472012
movzx eax, dl
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x20]
mov dword [eax + 0xc], ecx
test dword [ebx + 0x10], 0x200
je 0x472035
push 2
lea eax, [ebp - 0x1c]
mov byte [ebp - 0x1c], dl
push eax
mov byte [ebp - 0x1b], cl
push dword [ebx + 0x18]
call fcn.0046fec9
add esp, 0xc
mov dword [ebx + 0x18], eax
xor edx, edx
mov dword [ebx], 4
xor esi, esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
test dword [ebx + 0x10], 0x400
jne 0x47211e
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x47205d
and dword [eax + 0x10], 0
mov dword [ebx], 5
mov eax, dword [ebx + 0x10]
test eax, 0x400
je 0x4721ad
mov edx, dword [ebx + 0x40]
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
cmovbe ecx, edx
mov dword [ebp - 0x38], ecx
test ecx, ecx
je 0x4721a5
cmp dword [ebx + 0x20], 0
mov edi, dword [ebp + 8]
je 0x47217d
mov edi, dword [ebx + 0x20]
mov edi, dword [edi + 0x10]
test edi, edi
mov dword [ebp - 0x44], edi
mov edi, dword [ebp + 8]
je 0x47217d
mov eax, dword [ebx + 0x20]
mov edi, dword [eax + 0x14]
sub edi, edx
mov edx, dword [eax + 0x18]
mov eax, edi
mov dword [ebp - 0x30], edi
mov edi, dword [ebp + 8]
add eax, ecx
cmp eax, edx
mov eax, dword [ebp - 0x30]
jbe 0x472164
sub edx, eax
jmp 0x472166
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x38]
cmp ecx, 0x20
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x471f80
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
cmp ecx, 0x10
mov esi, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x471ff2
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x24]
jb 0x4720f7
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x40], edx
test eax, eax
je 0x472130
mov dword [eax + 0x14], edx
test dword [ebx + 0x10], 0x200
je 0x472156
mov byte [ebp - 0x1c], dl
lea eax, [ebp - 0x1c]
push 2
shr edx, 8
push eax
mov byte [ebp - 0x1b], dl
push dword [ebx + 0x18]
call fcn.0046fec9
add esp, 0xc
mov dword [ebx + 0x18], eax
and dword [ebp - 0x14], 0
xor esi, esi
mov dword [ebp - 0xc], esi
jmp 0x47205d
mov edx, ecx
add eax, dword [ebp - 0x44]
push edx
mov edx, dword [ebp - 8]
push edx
push eax
call fcn.0047dc50
mov eax, dword [ebx + 0x10]
add esp, 0xc
mov ecx, dword [ebp - 0x38]
test eax, 0x200
je 0x472196
push ecx
push dword [ebp - 8]
push dword [ebx + 0x18]
call fcn.0046fec9
add esp, 0xc
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x10], eax
add dword [ebp - 8], eax
sub dword [ebx + 0x40], eax
mov edx, dword [ebx + 0x40]
test edx, edx
jne 0x472f40
and dword [ebx + 0x40], 0
mov dword [ebx], 6
test dword [ebx + 0x10], 0x800
je 0x47223f
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
mov edi, dword [ebp - 0x10]
xor eax, eax
mov edx, dword [ebp - 8]
mov cl, byte [eax + edx]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x472204
cmp dword [ecx + 0x1c], 0
je 0x472201
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x20]
jae 0x472201
mov ecx, dword [ecx + 0x1c]
mov al, byte [ebp - 1]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x47220e
cmp eax, edi
jb 0x4721d3
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp + 8]
je 0x47222d
push eax
push edx
push dword [ebx + 0x18]
call fcn.0046fec9
mov dword [ebx + 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x10], eax
add dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x472f40
jmp 0x47224a
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x47224a
and dword [eax + 0x1c], 0
and dword [ebx + 0x40], 0
mov dword [ebx], 7
test dword [ebx + 0x10], 0x1000
je 0x4722dc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
mov edi, dword [ebp - 0x10]
xor eax, eax
mov edx, dword [ebp - 8]
mov cl, byte [eax + edx]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0x38], eax
test ecx, ecx
je 0x4722a1
cmp dword [ecx + 0x24], 0
je 0x47229e
mov edx, dword [ebx + 0x40]
cmp edx, dword [ecx + 0x28]
jae 0x47229e
mov ecx, dword [ecx + 0x24]
mov al, byte [ebp - 1]
mov byte [ecx + edx], al
inc dword [ebx + 0x40]
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 8]
cmp byte [ebp - 1], 0
je 0x4722ab
cmp eax, edi
jb 0x472270
test dword [ebx + 0x10], 0x200
mov edi, dword [ebp + 8]
je 0x4722ca
push eax
push edx
push dword [ebx + 0x18]
call fcn.0046fec9
mov dword [ebx + 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x10], eax
add dword [ebp - 8], eax
cmp byte [ebp - 1], 0
jne 0x472f40
jmp 0x4722e7
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4722e7
and dword [eax + 0x24], 0
mov edx, dword [ebp - 0x14]
mov dword [ebx], 8
mov eax, dword [ebx + 0x10]
test eax, 0x200
je 0x472348
jmp 0x472323
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, dword [ebp - 0x24]
jb 0x4722fc
movzx eax, word [ebx + 0x18]
cmp edx, eax
je 0x47233c
mov dword [edi + 0x18], str.header_crc_mismatch
jmp 0x472ee3
and dword [ebp - 0x14], 0
xor esi, esi
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0xc], esi
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x472360
xor edx, edx
sar eax, 9
inc edx
and eax, edx
mov dword [ecx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [eax + 0x30], edx
push 0
push 0
push 0
call fcn.0046fec9
mov dword [ebx + 0x18], eax
add esp, 0xc
mov dword [edi + 0x30], eax
mov dword [ebx], 0xb
mov edx, dword [ebp - 0x14]
jmp 0x472ee9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, 0x20
jb 0x472382
mov ecx, edx
mov esi, 0xff00
mov eax, edx
and ecx, esi
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
and eax, esi
shl ecx, 8
shr edx, 0x18
add eax, ecx
add eax, edx
xor edx, edx
mov dword [ebx + 0x18], eax
xor esi, esi
mov dword [edi + 0x30], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov dword [ebx], 0xa
cmp dword [ebx + 0xc], 0
je 0x472efe
push 0
push 0
push 0
call fcn.0046fc88
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
mov dword [ebx], 0xb
cmp dword [ebp + 0xc], 5
je 0x472f40
cmp dword [ebx + 4], 0
je 0x47245d
mov ecx, esi
mov dword [ebx], 0x18
and ecx, 7
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
jmp 0x472ee9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, 3
jb 0x472436
mov eax, edx
shr edx, 1
and eax, 1
mov dword [ebx + 4], eax
mov eax, edx
and eax, 3
sub eax, 0
je 0x4724c0
sub eax, 1
je 0x47249c
sub eax, 1
je 0x472494
sub eax, 1
jne 0x4724c6
mov dword [edi + 0x18], str.invalid_block_type
mov dword [ebx], 0x1b
jmp 0x4724c6
mov dword [ebx], 0xf
jmp 0x4724c6
mov dword [ebx + 0x4c], 0x4b5260
mov dword [ebx + 0x54], 9
mov dword [ebx + 0x50], 0x4b5a60
mov dword [ebx + 0x58], 5
mov dword [ebx], 0x12
jmp 0x4724c6
mov dword [ebx], 0xd
shr edx, 2
sub esi, 3
jmp 0x471eb7
mov ecx, esi
and ecx, 7
shr edx, cl
sub esi, ecx
jmp 0x4724fd
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], edx
cmp esi, 0x20
jb 0x4724dc
mov eax, edx
movzx ecx, dx
not eax
shr eax, 0x10
cmp ecx, eax
je 0x472522
mov dword [edi + 0x18], str.invalid_stored_block_lengths
jmp 0x472ee3
xor edx, edx
mov dword [ebx + 0x40], ecx
xor esi, esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov dword [ebx], 0xe
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x47257d
mov eax, dword [ebp - 0x10]
cmp ecx, eax
cmovbe eax, ecx
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
cmovbe ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
je 0x472f40
push ecx
push dword [ebp - 8]
push dword [ebp - 0x20]
call fcn.0047dc50
mov eax, dword [ebp - 0x44]
add esp, 0xc
sub dword [ebp - 0x10], eax
add dword [ebp - 8], eax
sub dword [ebp - 0x18], eax
add dword [ebp - 0x20], eax
sub dword [ebx + 0x40], eax
jmp 0x47237a
mov dword [ebx], 0xb
jmp 0x472ee9
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, 0xe
jb 0x472588
mov ecx, edx
sub esi, 0xe
and ecx, dword [ebp - 0x34]
shr edx, 5
add ecx, 0x101
mov eax, edx
mov dword [ebx + 0x60], ecx
and eax, 0x1f
shr edx, 5
inc eax
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x44], eax
mov dword [ebx + 0x64], eax
mov eax, edx
and eax, 0xf
shr edx, 4
add eax, 4
mov dword [ebp - 0x14], edx
mov dword [ebx + 0x5c], eax
cmp ecx, 0x11e
ja 0x472604
cmp dword [ebp - 0x44], 0x1e
ja 0x472604
mov eax, dword [ebp - 0x24]
and dword [ebx + 0x68], 0
mov dword [ebx], eax
jmp case.0x471d87.16
mov dword [edi + 0x18], str.too_many_length_or_distance_symbols
jmp 0x472ee3
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, 3
jb 0x472610
mov eax, dword [ebx + 0x68]
mov ecx, edx
and ecx, 7
shr edx, 3
mov dword [ebp - 0x14], edx
movzx eax, word [eax*2 + 0x4b5ae0]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
sub esi, 3
mov dword [ebp - 0xc], esi
mov eax, dword [ebx + 0x68]
cmp eax, dword [ebx + 0x5c]
jb 0x472637
cmp eax, 0x13
jae 0x472688
mov eax, dword [ebx + 0x68]
xor ecx, ecx
movzx eax, word [eax*2 + 0x4b5ae0]
mov word [ebx + eax*2 + 0x70], cx
inc dword [ebx + 0x68]
cmp dword [ebx + 0x68], 0x13
jb 0x47266d
lea eax, [ebx + 0x530]
lea edx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [edx], eax
lea ecx, [ebx + 0x54]
lea eax, [ebx + 0x2f0]
mov dword [ecx], 7
push eax
push ecx
push edx
push 0x13
lea eax, [ebx + 0x70]
push eax
push 0
call fcn.004732e8
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4726ce
mov dword [edi + 0x18], str.invalid_code_lengths_set
jmp 0x472ee3
mov eax, dword [ebp - 0x40]
mov ecx, eax
and dword [ebx + 0x68], 0
mov dword [ebx], eax
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp dword [ebx + 0x68], eax
jae 0x47290f
mov ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x44], eax
jmp 0x472720
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x44]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov ecx, dword [ebx + 0x4c]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x30], eax
cmp ecx, esi
ja 0x4726f6
mov ecx, eax
shr ecx, 0x10
cmp cx, word [ebp - 0x24]
jae 0x4727a2
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x44], ecx
cmp esi, ecx
jae 0x47277e
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x472f40
mov edx, dword [ebp - 8]
dec ecx
mov dword [ebp - 0x10], ecx
mov ecx, esi
add esi, 8
mov dword [ebp - 0xc], esi
movzx edx, byte [edx]
shl edx, cl
add dword [ebp - 0x14], edx
inc dword [ebp - 8]
cmp esi, dword [ebp - 0x44]
jb 0x472751
mov edx, dword [ebp - 0x14]
movzx ecx, ah
mov ax, word [ebp - 0x2e]
sub esi, ecx
shr edx, cl
mov ecx, dword [ebx + 0x68]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov word [ebx + ecx*2 + 0x70], ax
inc dword [ebx + 0x68]
mov ecx, dword [ebx + 0x68]
jmp 0x4728ff
mov ecx, dword [ebp - 0x24]
cmp word [ebp - 0x2e], cx
jne 0x47281f
movzx eax, ah
mov dword [ebp - 0x38], eax
lea ecx, [eax + 2]
mov dword [ebp - 0x44], ecx
cmp esi, ecx
jae 0x4727ea
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
add esi, 8
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], esi
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov dword [ebp - 0x14], edx
cmp esi, dword [ebp - 0x44]
jb 0x4727bb
mov eax, dword [ebp - 0x38]
mov ecx, eax
sub esi, eax
mov eax, dword [ebx + 0x68]
shr edx, cl
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
test eax, eax
je 0x47295f
movzx eax, word [ebx + eax*2 + 0x6e]
mov ecx, edx
and ecx, 3
shr edx, 2
add ecx, 3
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], ecx
sub esi, 2
jmp 0x4728c3
mov ecx, dword [ebp - 0x40]
cmp word [ebp - 0x2e], cx
movzx ecx, ah
jne 0x472872
mov dword [ebp - 0x44], ecx
jmp 0x47285a
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x44]
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
lea eax, [ecx + 3]
cmp esi, eax
jb 0x472830
shr edx, cl
mov eax, edx
and eax, 7
add eax, 3
shr edx, 3
push 0xfffffffffffffffd
jmp 0x4728b7
mov dword [ebp - 0x44], ecx
jmp 0x4728a1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebp - 0x44]
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
lea eax, [ecx + 7]
cmp esi, eax
jb 0x472877
shr edx, cl
mov eax, edx
and eax, 0x7f
add eax, 0xb
shr edx, 7
push 0xfffffffffffffff9
mov dword [ebp - 0x30], eax
pop eax
sub eax, ecx
add esi, eax
and dword [ebp - 0x38], 0
mov ecx, dword [ebx + 0x68]
mov eax, dword [ebx + 0x64]
add ecx, dword [ebp - 0x30]
add eax, dword [ebx + 0x60]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp ecx, eax
ja 0x47295f
mov edi, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebx + 0x68]
mov word [ebx + eax*2 + 0x70], dx
mov ecx, dword [ebx + 0x68]
lea ecx, [ecx + 1]
mov dword [ebx + 0x68], ecx
sub edi, 1
jne 0x4728e3
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x64]
add eax, dword [ebx + 0x60]
cmp ecx, eax
jb 0x4726e8
mov ecx, dword [ebx]
cmp ecx, 0x1b
je 0x472ee9
lea eax, [ebx + 0x530]
lea ecx, [ebx + 0x6c]
mov dword [ebx + 0x4c], eax
mov dword [ecx], eax
lea edx, [ebx + 0x2f0]
push edx
lea eax, [ebx + 0x54]
push eax
push ecx
push dword [ebx + 0x60]
mov dword [eax], 9
lea eax, [ebx + 0x70]
push eax
push 1
call fcn.004732e8
add esp, 0x18
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x47296b
mov edx, dword [ebp - 0x14]
mov dword [edi + 0x18], str.invalid_literal_lengths_set
jmp 0x472ee3
mov dword [edi + 0x18], str.invalid_bit_length_repeat
jmp 0x472ee3
lea ecx, [ebx + 0x6c]
mov eax, dword [ecx]
lea edx, [ebx + 0x2f0]
mov dword [ebx + 0x50], eax
lea eax, [ebx + 0x58]
push edx
push eax
mov dword [eax], 6
mov eax, dword [ebx + 0x60]
push ecx
push dword [ebx + 0x64]
add eax, 0x38
lea eax, [ebx + eax*2]
push eax
push 2
call fcn.004732e8
mov edx, dword [ebp - 0x14]
add esp, 0x18
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x4729b2
mov dword [edi + 0x18], str.invalid_distances_set
jmp 0x472ee3
mov dword [ebx], 0x12
mov eax, dword [ebp - 0x10]
cmp eax, 6
jb 0x472a10
cmp dword [ebp - 0x18], 0x102
jb 0x472a10
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x28]
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebp - 8]
mov dword [edi], ecx
mov dword [edi + 4], eax
push edi
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], esi
call fcn.00471915
mov eax, dword [edi + 0xc]
mov edx, dword [ebx + 0x38]
mov esi, dword [ebx + 0x3c]
mov dword [ebp - 0x20], eax
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
pop ecx
mov dword [ebp - 0x10], eax
jmp 0x471eb7
mov ecx, dword [ebx + 0x54]
xor eax, eax
inc eax
shl eax, cl
dec eax
mov dword [ebp - 0x44], eax
jmp 0x472a48
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 0x44]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov ecx, dword [ebx + 0x4c]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x472a1e
test al, al
je 0x472afd
test al, 0xf0
jne 0x472afd
mov ecx, eax
xor esi, esi
shr ecx, 8
inc esi
movzx edi, cl
mov edx, eax
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl esi, cl
mov ecx, edi
dec esi
mov dword [ebp - 0x38], edx
and esi, dword [ebp - 0x14]
shr esi, cl
mov ecx, dword [ebx + 0x4c]
add esi, eax
mov eax, dword [ecx + esi*4]
jmp 0x472adf
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
mov edi, dword [ebp - 8]
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
add esi, 8
mov dword [ebp - 0xc], esi
xor esi, esi
movzx eax, byte [edi]
inc esi
shl eax, cl
add dword [ebp - 0x14], eax
inc edi
movzx eax, word [ebp - 0x36]
mov dword [ebp - 8], edi
movzx edi, dh
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 0x14]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, esi
ja 0x472a98
mov edi, dword [ebp + 8]
movzx ecx, dh
mov edx, dword [ebp - 0x14]
shr edx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov ecx, eax
mov dword [ebp - 0x14], edx
shr ecx, 0x10
mov dword [ebp - 0xc], esi
mov dword [ebx + 0x40], ecx
test al, al
jne 0x472b26
mov dword [ebx], 0x17
jmp 0x472ee9
test al, 0x20
jne 0x47257d
test al, 0x40
je 0x472b3e
mov dword [edi + 0x18], str.invalid_literal_length_code
jmp 0x472ee3
movzx eax, al
and eax, 0xf
mov dword [ebx], 0x13
mov dword [ebx + 0x48], eax
mov edi, dword [ebx + 0x48]
test edi, edi
je 0x472b98
jmp 0x472b7d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, edi
jb 0x472b56
xor eax, eax
mov ecx, edi
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x40], eax
sub esi, edi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov dword [ebx], 0x14
mov ecx, dword [ebx + 0x58]
xor eax, eax
lea edi, [eax + 1]
shl edi, cl
jmp 0x472bd1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov ecx, dword [ebx + 0x50]
lea eax, [edi - 1]
and eax, edx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x472baa
test al, 0xf0
jne 0x472c7e
mov ecx, eax
xor esi, esi
shr ecx, 8
inc esi
movzx edi, cl
mov edx, eax
movzx ecx, al
add ecx, edi
shr eax, 0x10
shl esi, cl
mov ecx, edi
dec esi
mov dword [ebp - 0x38], edx
and esi, dword [ebp - 0x14]
shr esi, cl
mov ecx, dword [ebx + 0x50]
add esi, eax
mov eax, dword [ecx + esi*4]
jmp 0x472c63
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
mov edi, dword [ebp - 8]
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
add esi, 8
mov dword [ebp - 0xc], esi
xor esi, esi
movzx eax, byte [edi]
inc esi
shl eax, cl
add dword [ebp - 0x14], eax
inc edi
movzx eax, word [ebp - 0x36]
mov dword [ebp - 8], edi
movzx edi, dh
movzx ecx, dl
add ecx, edi
shl esi, cl
mov ecx, edi
dec esi
and esi, dword [ebp - 0x14]
shr esi, cl
add esi, eax
mov eax, dword [ebx + 0x50]
mov eax, dword [eax + esi*4]
mov esi, dword [ebp - 0xc]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edi
cmp ecx, esi
ja 0x472c1c
movzx ecx, dh
mov edx, dword [ebp - 0x14]
shr edx, cl
sub esi, ecx
mov edi, dword [ebp + 8]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr edx, cl
sub esi, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
test al, 0x40
je 0x472ca3
mov dword [edi + 0x18], str.invalid_distance_code
jmp 0x472ee3
mov ecx, eax
mov dword [ebx], 0x15
shr ecx, 0x10
movzx eax, al
and eax, 0xf
mov dword [ebx + 0x44], ecx
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x472d06
jmp 0x472ced
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
mov ecx, dword [ebx + 0x48]
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, ecx
jb 0x472cc3
xor eax, eax
inc eax
shl eax, cl
dec eax
and eax, edx
shr edx, cl
add dword [ebx + 0x44], eax
sub esi, ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov eax, dword [ebx + 0x2c]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
add eax, ecx
cmp dword [ebx + 0x44], eax
jbe 0x472d22
mov dword [edi + 0x18], str.invalid_distance_too_far_back
jmp 0x472ee3
mov dword [ebx], 0x16
jmp 0x472d2d
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x472f40
sub ecx, eax
mov eax, dword [ebx + 0x44]
cmp eax, ecx
jbe 0x472d65
sub eax, ecx
mov ecx, dword [ebx + 0x30]
cmp eax, ecx
jbe 0x472d4f
sub eax, ecx
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x40]
sub ecx, eax
add ecx, dword [ebx + 0x34]
mov edi, edx
cmp eax, edx
cmovbe edi, eax
mov eax, edx
mov dword [ebp - 0x38], edi
jmp 0x472d70
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov eax, dword [ebx + 0x40]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x18]
mov edi, edx
cmp dword [ebp - 0x38], edx
cmovbe edi, dword [ebp - 0x38]
sub edx, edi
sub eax, edi
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x20]
sub ecx, edx
mov dword [ebx + 0x40], eax
mov al, byte [ecx + edx]
mov byte [edx], al
inc edx
sub edi, 1
jne 0x472d8b
cmp dword [ebx + 0x40], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x14]
jne 0x472ee9
mov dword [ebx], 0x12
jmp 0x472ee9
cmp dword [ebp - 0x18], 0
je 0x472f40
mov ecx, dword [ebp - 0x20]
mov al, byte [ebx + 0x40]
mov byte [ecx], al
inc ecx
dec dword [ebp - 0x18]
mov dword [ebp - 0x20], ecx
jmp 0x472da9
cmp dword [ebx + 8], 0
je 0x472e8b
jmp 0x472e02
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, 0x20
jb 0x472ddb
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
sub ecx, eax
add dword [edi + 0x14], ecx
add dword [ebx + 0x1c], ecx
test ecx, ecx
je 0x472e44
mov eax, dword [ebp - 0x20]
sub eax, ecx
cmp dword [ebx + 0x10], 0
push ecx
push eax
push dword [ebx + 0x18]
je 0x472e30
call fcn.0046fec9
jmp 0x472e35
call fcn.0046fc88
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov dword [ebx + 0x18], eax
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, edx
and ecx, 0xff00
mov eax, edx
shl eax, 0x10
add ecx, eax
mov eax, edx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
mov eax, edx
shr eax, 0x18
add ecx, eax
cmp dword [ebx + 0x10], 0
cmovne ecx, edx
cmp ecx, dword [ebx + 0x18]
je 0x472e81
mov dword [edi + 0x18], str.incorrect_data_check
jmp 0x472ee3
xor edx, edx
xor esi, esi
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
mov dword [ebx], 0x19
cmp dword [ebx + 8], 0
je 0x472e9d
cmp dword [ebx + 0x10], 0
jne 0x472ed2
mov ecx, dword [ebp - 0xc]
mov dword [ebx], 0x1a
jmp 0x472f2d
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x472f43
dec eax
mov ecx, esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
shl eax, cl
add edx, eax
inc dword [ebp - 8]
add esi, 8
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], esi
cmp esi, 0x20
jb 0x472eab
cmp edx, dword [ebx + 0x1c]
je 0x472f1f
mov dword [edi + 0x18], str.incorrect_length_check
mov dword [ebx], 0x1b
mov ecx, dword [ebx]
mov eax, ecx
cmp eax, 0x1d
jbe 0x471d81
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [ebp - 0x20]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 4], eax
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], esi
push 2
jmp 0x472ef8
and dword [ebp - 0x14], 0
xor ecx, ecx
jmp 0x472ea0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], 1
jmp 0x472f46
mov dword [ebp - 0x2c], 0xfffffffd
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x28]
mov dword [esi + 0xc], edx
mov edx, dword [ebp - 0x18]
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 8]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esi], edx
cmp dword [ebx + 0x28], 0
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
jne 0x472f79
cmp dword [ebx], 0x18
jge 0x472f93
cmp edi, dword [esi + 0x10]
je 0x472f93
push edi
push esi
call fcn.00473206
pop ecx
pop ecx
test eax, eax
je 0x472f93
mov dword [ebx], 0x1c
push 0xfffffffffffffffc
jmp 0x472ef8
mov eax, dword [ebp - 0x3c]
sub eax, dword [esi + 4]
sub edi, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], edi
add dword [ebx + 0x1c], edi
cmp dword [ebx + 8], 0
mov dword [ebp - 0x3c], eax
je 0x472fd7
test edi, edi
je 0x472fd7
mov eax, dword [esi + 0xc]
sub eax, edi
cmp dword [ebx + 0x10], 0
push edi
push eax
push dword [ebx + 0x18]
je 0x472fc9
call fcn.0046fec9
jmp 0x472fce
call fcn.0046fc88
mov dword [ebx + 0x18], eax
add esp, 0xc
mov dword [esi + 0x30], eax
mov ecx, dword [ebx + 4]
mov edx, pe_nt_image_headers32
neg ecx
sbb ecx, ecx
xor eax, eax
and ecx, 0x40
cmp dword [ebx], 0xb
cmove eax, edx
add ecx, eax
add ecx, dword [ebx + 0x3c]
cmp dword [ebp - 0x3c], 0
mov dword [esi + 0x2c], ecx
jne 0x473000
test edi, edi
je 0x473006
cmp dword [ebp + 0xc], 4
jne 0x473016
mov eax, dword [ebp - 0x2c]
test eax, eax
push 0xfffffffffffffffb
pop ecx
cmove eax, ecx
jmp 0x472ef9
mov eax, dword [ebp - 0x2c]
jmp 0x472ef9