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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x30
push ebx
push esi
push edi
test edx, edx
je case.default.0x402ebf
mov edi, dword [edx + 0x1c]
test edi, edi
je case.default.0x402ebf
mov ecx, dword [edx + 0xc]
test ecx, ecx
je case.default.0x402ebf
mov eax, dword [edx]
test eax, eax
jne 0x402e7d
cmp dword [edx + 4], eax
jne case.default.0x402ebf
cmp dword [edi], 0xb
jne 0x402e88
mov dword [edi], 0xc
mov esi, dword [edi + 0x3c]
and dword [ebp - 0x28], 0
mov ebx, dword [edi + 0x38]
mov dword [ebp - 4], eax
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [edx + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x20], ecx
cmp eax, 0x1e
jbe switch.0x00402ebf
push 0xfffffffffffffffe
pop eax
pop edi
pop esi
pop ebx
leave
ret
mov edx, dword [ebp + 8]
jmp dword [eax*4 + 0x404084]
mov eax, dword [edi + 8]
test eax, eax
jne 0x402efa
mov dword [edi], 0xc
jmp 0x403f4e
cmp dword [ebp - 8], 0
je 0x403f9c
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add ebx, edx
inc dword [ebp - 4]
add esi, 8
mov dword [ebp - 0x10], esi
cmp esi, 0x10
jb 0x402ed8
test al, 2
je 0x402f38
cmp ebx, 0x8b1f
jne 0x402f38
xor esi, esi
push 2
push esi
lea edx, [ebp - 0x18]
mov dword [edi + 0x18], esi
mov byte [ebp - 0x18], 0x1f
mov byte [ebp - 0x17], 0x8b
call fcn.004019dc
pop ecx
pop ecx
mov dword [edi + 0x18], eax
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [edi], 1
jmp 0x403f4e
mov eax, dword [edi + 0x20]
and dword [edi + 0x10], 0
test eax, eax
je 0x402f47
or dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x402fd7
movzx eax, bl
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
push 0x1f
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x402fd7
mov eax, ebx
and al, 0xf
cmp al, 8
je 0x402f80
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x403f48
mov eax, dword [edi + 0x24]
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
sub esi, 4
add ecx, 8
mov dword [ebp - 0x10], esi
test eax, eax
jne 0x402fc4
mov dword [edi + 0x24], ecx
shr ebx, 8
xor eax, eax
inc eax
not ebx
and ebx, 2
mov edx, eax
shl edx, cl
mov ecx, dword [ebp + 8]
or ebx, 9
mov dword [edi], ebx
xor ebx, ebx
mov dword [edi + 0x14], edx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
xor esi, esi
jmp 0x40356e
cmp ecx, eax
jbe 0x402f9b
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_window_size
jmp 0x403f48
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_header_check
jmp 0x403f48
cmp esi, 0x10
jae 0x403015
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
mov dword [ebp - 0x10], esi
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x10
jb 0x402feb
mov edx, dword [ebp + 8]
mov dword [edi + 0x10], ebx
cmp bl, 8
je 0x403029
mov dword [edx + 0x18], str.unknown_compression_method
jmp 0x403f48
test ebx, 0xe000
je 0x40303d
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x403f48
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40304e
mov ecx, ebx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test dword [edi + 0x10], 0x200
je 0x403075
mov byte [ebp - 0x18], bl
push 2
push dword [edi + 0x18]
shr ebx, 8
lea edx, [ebp - 0x18]
mov byte [ebp - 0x17], bl
call fcn.004019dc
mov edx, dword [ebp + 8]
pop ecx
pop ecx
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
cmp esi, 0x20
jae 0x4030ab
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x20
jb 0x403084
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4030b5
mov dword [eax + 4], ebx
test dword [edi + 0x10], 0x200
je 0x4030ec
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x17], al
mov eax, ebx
mov byte [ebp - 0x18], bl
push 4
push dword [edi + 0x18]
shr eax, 0x10
shr ebx, 0x18
lea edx, [ebp - 0x18]
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], bl
call fcn.004019dc
mov edx, dword [ebp + 8]
pop ecx
pop ecx
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
cmp esi, 0x10
jae 0x403122
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x10
jb 0x4030fb
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40313f
mov ecx, ebx
and ecx, 0xff
mov dword [eax + 8], ecx
mov ecx, dword [edi + 0x20]
mov eax, ebx
shr eax, 8
mov dword [ecx + 0xc], eax
test dword [edi + 0x10], 0x200
je 0x403166
mov byte [ebp - 0x18], bl
push 2
push dword [edi + 0x18]
shr ebx, 8
lea edx, [ebp - 0x18]
mov byte [ebp - 0x17], bl
call fcn.004019dc
mov edx, dword [ebp + 8]
pop ecx
pop ecx
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x4031e5
cmp esi, 0x10
jae 0x4031a8
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x10
jb 0x403181
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x20]
mov dword [edi + 0x40], ebx
test eax, eax
je 0x4031b5
mov dword [eax + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x4031dc
mov byte [ebp - 0x18], bl
push 2
push dword [edi + 0x18]
shr ebx, 8
lea edx, [ebp - 0x18]
mov byte [ebp - 0x17], bl
call fcn.004019dc
mov edx, dword [ebp + 8]
pop ecx
pop ecx
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x10], esi
jmp 0x4031f0
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4031f0
and dword [eax + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x403289
mov edx, dword [edi + 0x40]
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp edx, eax
jbe 0x403213
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40327c
mov ecx, dword [edi + 0x20]
test ecx, ecx
je 0x403254
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x403254
mov eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
sub eax, edx
mov edx, dword [ebp - 0xc]
add edx, eax
cmp edx, ecx
jbe 0x40323f
sub ecx, eax
jmp 0x403242
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x24]
push dword [ebp - 4]
add ecx, eax
push ecx
call fcn.0040c880
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x403270
push dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.004019dc
pop ecx
pop ecx
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 4], eax
sub dword [edi + 0x40], eax
cmp dword [edi + 0x40], 0
jne 0x403f9c
mov edx, dword [ebp + 8]
and dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x403319
cmp dword [ebp - 8], 0
je 0x403f9c
xor eax, eax
mov ecx, dword [ebp - 4]
movzx edx, byte [eax + ecx]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x24], edx
test eax, eax
je 0x4032d8
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x4032d8
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x4032d8
mov eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
inc dword [edi + 0x40]
test edx, edx
je 0x4032e4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jb 0x4032a8
test dword [edi + 0x10], 0x200
je 0x403303
push dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.004019dc
mov edx, dword [ebp - 0x24]
pop ecx
pop ecx
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 4], eax
test edx, edx
jne 0x403f9c
mov edx, dword [ebp + 8]
jmp 0x403324
mov eax, dword [edi + 0x20]
test eax, eax
je 0x403324
and dword [eax + 0x1c], 0
and dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x4033bc
cmp dword [ebp - 8], 0
je 0x403f9c
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
movzx edx, byte [ecx + eax]
mov eax, dword [edi + 0x20]
inc dword [ebp - 0xc]
mov dword [ebp - 0x24], edx
test eax, eax
je 0x40337b
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x40337b
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x40337b
mov eax, dword [ebp - 0x2c]
mov byte [eax + ecx], dl
inc dword [edi + 0x40]
test edx, edx
je 0x403387
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jb 0x403349
test dword [edi + 0x10], 0x200
je 0x4033a6
push dword [ebp - 0xc]
mov edx, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.004019dc
mov edx, dword [ebp - 0x24]
pop ecx
pop ecx
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 4], eax
test edx, edx
jne 0x403f9c
mov edx, dword [ebp + 8]
jmp 0x4033c7
mov eax, dword [edi + 0x20]
test eax, eax
je 0x4033c7
and dword [eax + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x403420
cmp esi, 0x10
jae 0x403405
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
mov dword [ebp - 0x10], esi
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x10
jb 0x4033db
mov edx, dword [ebp + 8]
movzx eax, word [edi + 0x18]
cmp ebx, eax
je 0x403419
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x403f48
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x40343d
mov ecx, dword [edi + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov eax, dword [edi + 0x20]
mov dword [eax + 0x30], 1
and dword [edi + 0x18], 0
and dword [edx + 0x30], 0
jmp 0x403b7c
cmp esi, 0x20
jae 0x403476
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x20
jb 0x40344f
mov edx, dword [ebp + 8]
mov ecx, ebx
mov eax, 0xff00
and ecx, eax
mov esi, ebx
shl esi, 0x10
add ecx, esi
mov esi, ebx
shr esi, 8
and esi, eax
shl ecx, 8
shr ebx, 0x18
add ecx, esi
lea eax, [ecx + ebx]
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x403f5e
xor eax, eax
inc eax
mov dword [edi + 0x18], eax
mov dword [edx + 0x30], eax
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x4034de
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x10], esi
mov dword [edi], 0x1a
jmp 0x403f4e
cmp esi, 3
jae 0x40350a
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
add ebx, eax
inc dword [ebp - 4]
cmp esi, 3
jb 0x4034e3
mov edx, dword [ebp + 8]
mov eax, ebx
and eax, 1
shr ebx, 1
mov dword [edi + 4], eax
mov eax, ebx
and eax, 3
dec esi
sub eax, 0
je 0x403563
dec eax
je 0x40353f
dec eax
je 0x403537
dec eax
jne 0x403569
mov dword [edx + 0x18], str.invalid_block_type
mov dword [edi], 0x1d
jmp 0x403569
mov dword [edi], 0x10
jmp 0x403569
mov dword [edi + 0x4c], 0x411588
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x411d88
mov dword [edi + 0x58], 5
mov dword [edi], 0x13
jmp 0x403569
mov dword [edi], 0xd
shr ebx, 2
dec esi
dec esi
mov dword [ebp - 0x10], esi
jmp 0x403f4e
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
mov dword [ebp - 0x10], esi
cmp esi, 0x20
jae 0x4035b1
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
mov dword [ebp - 0x10], esi
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x20
jb 0x403587
mov edx, dword [ebp + 8]
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x4035cf
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x403f48
xor ebx, ebx
xor esi, esi
mov dword [edi + 0x40], eax
mov dword [ebp - 0x10], esi
mov dword [edi], 0xe
mov dword [edi], 0xf
mov eax, dword [edi + 0x40]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x403b7c
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], eax
jbe 0x4035fe
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 0xc], eax
jbe 0x403609
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403f9c
push dword [ebp - 0xc]
push dword [ebp - 4]
push dword [ebp - 0x1c]
call fcn.0040c880
mov eax, dword [ebp - 0xc]
sub dword [ebp - 8], eax
add dword [ebp - 4], eax
sub dword [ebp - 0x14], eax
add dword [ebp - 0x1c], eax
add esp, 0xc
sub dword [edi + 0x40], eax
jmp 0x403f4e
cmp esi, 0xe
jae 0x403667
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0xe
jb 0x403640
mov edx, dword [ebp + 8]
mov eax, ebx
and eax, 0x1f
add eax, 0x101
mov dword [edi + 0x60], eax
shr ebx, 5
mov eax, ebx
and eax, 0x1f
inc eax
shr ebx, 5
mov dword [edi + 0x64], eax
mov eax, ebx
and eax, 0xf
add eax, 4
sub esi, 0xe
shr ebx, 4
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x5c], eax
mov dword [ebp - 0x10], esi
ja 0x4036b2
cmp dword [edi + 0x64], 0x1e
ja 0x4036b2
and dword [edi + 0x68], 0
mov dword [edi], 0x11
jmp case.0x402ebf.17
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x403f48
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add esi, 8
cmp esi, 3
jb 0x4036be
mov ecx, dword [edi + 0x68]
movzx ecx, word [ecx*2 + 0x411e08]
mov eax, ebx
and eax, 7
mov word [edi + ecx*2 + 0x70], ax
inc dword [edi + 0x68]
shr ebx, 3
sub esi, 3
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 0x68]
cmp eax, dword [edi + 0x5c]
jb 0x4036dd
jmp 0x403722
mov eax, dword [edi + 0x68]
movzx eax, word [eax*2 + 0x411e08]
xor ecx, ecx
mov word [edi + eax*2 + 0x70], cx
inc dword [edi + 0x68]
cmp dword [edi + 0x68], 0x13
jb 0x40370d
lea eax, [edi + 0x530]
lea esi, [edi + 0x6c]
mov dword [esi], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
push 0x13
lea eax, [edi + 0x70]
push eax
lea ecx, [edi + 0x54]
push 0
mov dword [ecx], 7
call fcn.00404137
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40376f
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code_lengths_set
jmp 0x403f48
and dword [edi + 0x68], 0
mov dword [edi], 0x12
jmp case.0x402ebf.18
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add esi, 8
mov ecx, dword [edi + 0x54]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [edi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0x24], eax
cmp ecx, esi
ja 0x40377e
mov edx, eax
shr edx, 0x10
cmp dx, 0x10
jae 0x4037e5
shr eax, 8
movzx ecx, al
mov eax, dword [edi + 0x68]
sub esi, ecx
shr ebx, cl
mov word [edi + eax*2 + 0x70], dx
inc dword [edi + 0x68]
mov dword [ebp - 0x10], esi
jmp case.0x402ebf.18
jne 0x403848
mov ecx, eax
shr ecx, 8
movzx ecx, cl
jmp 0x403813
cmp dword [ebp - 8], 0
je 0x403f9c
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
movzx ecx, ah
add ebx, edx
inc dword [ebp - 4]
add esi, 8
inc ecx
inc ecx
cmp esi, ecx
jb 0x4037f1
movzx ecx, ah
mov eax, dword [edi + 0x68]
sub esi, ecx
shr ebx, cl
mov dword [ebp - 0x10], esi
test eax, eax
je 0x403936
movzx eax, word [edi + eax*2 + 0x6e]
mov dword [ebp - 0x24], eax
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
dec esi
dec esi
jmp 0x4038cd
cmp word [ebp - 0x22], 0x11
movzx edx, ah
jne 0x4038ac
jmp 0x403873
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add esi, 8
lea eax, [edx + 3]
cmp esi, eax
jb 0x403854
mov ecx, edx
shr ebx, cl
push 0xfffffffffffffffd
mov eax, ebx
and eax, 7
add eax, 3
shr ebx, 3
jmp 0x4038c4
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add ebx, eax
inc dword [ebp - 4]
add esi, 8
lea eax, [edx + 7]
cmp esi, eax
jb 0x40388d
mov ecx, edx
shr ebx, cl
push 0xfffffffffffffff9
mov eax, ebx
and eax, 0x7f
add eax, 0xb
shr ebx, 7
and dword [ebp - 0x24], 0
pop ecx
sub ecx, edx
add esi, ecx
mov ecx, dword [edi + 0x64]
mov edx, dword [edi + 0x68]
add ecx, dword [edi + 0x60]
add edx, eax
mov dword [ebp - 0x10], esi
cmp edx, ecx
jbe 0x403921
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
mov dword [edi], 0x1d
cmp dword [edi], 0x1d
je 0x403f4e
cmp word [edi + 0x270], 0
jne 0x403945
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
jmp 0x403f48
mov ecx, dword [edi + 0x68]
mov dx, word [ebp - 0x24]
dec eax
mov word [edi + ecx*2 + 0x70], dx
inc dword [edi + 0x68]
test eax, eax
jne 0x403911
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jb 0x40379d
jmp 0x4038ef
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_bit_length_repeat
jmp 0x403f48
lea eax, [edi + 0x530]
lea esi, [edi + 0x6c]
mov dword [esi], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
push dword [edi + 0x60]
lea eax, [edi + 0x70]
push eax
lea ecx, [edi + 0x54]
push 1
mov dword [ecx], 9
call fcn.00404137
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x40398d
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x10]
mov dword [eax + 0x18], str.invalid_literal_lengths_set
jmp 0x403f48
mov eax, dword [esi]
mov dword [edi + 0x50], eax
lea eax, [edi + 0x2f0]
push eax
push dword [edi + 0x64]
mov eax, dword [edi + 0x60]
lea eax, [edi + eax*2 + 0x70]
push eax
lea ecx, [edi + 0x58]
push 2
mov dword [ecx], 6
call fcn.00404137
mov esi, dword [ebp - 0x10]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4039d0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distances_set
jmp 0x403f48
mov dword [edi], 0x13
mov dword [edi], 0x14
cmp dword [ebp - 8], 6
jb 0x403a4e
cmp dword [ebp - 0x14], 0x102
jb 0x403a4e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
push eax
mov dword [eax + 4], ecx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.0040285d
cmp dword [edi], 0xb
mov eax, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
mov ebx, dword [edi + 0x38]
pop ecx
pop ecx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
jne 0x403f4e
or dword [edi + 0x1bc4], 0xffffffff
jmp 0x403f4e
mov ecx, dword [edi + 0x54]
and dword [edi + 0x1bc4], 0
mov eax, dword [edi + 0x4c]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
jmp 0x403a98
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
add esi, 8
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [edi + 0x4c]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x403a68
test al, al
je 0x403b45
test al, 0xf0
jne 0x403b45
mov dword [ebp - 0x10], eax
shr dword [ebp - 0x10], 8
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x24], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
shr eax, 0x10
dec edx
and edx, ebx
shr edx, cl
add edx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0x10]
jmp 0x403b29
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
movzx edx, byte [ebp - 0xb]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
movzx ecx, byte [ebp - 0xc]
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add esi, 8
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, esi
ja 0x403ae8
movzx ecx, byte [ebp - 0xb]
shr ebx, cl
sub esi, ecx
mov dword [edi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
sub esi, ecx
shr ebx, cl
mov ecx, eax
shr ecx, 0x10
mov dword [ebp - 0x10], esi
mov dword [edi + 0x40], ecx
test al, al
jne 0x403b71
mov dword [edi], 0x19
jmp 0x403f4e
test al, 0x20
je 0x403b87
or dword [edi + 0x1bc4], 0xffffffff
mov dword [edi], 0xb
jmp 0x403f4e
test al, 0x40
je 0x403b9a
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x403f48
movzx eax, al
and eax, 0xf
mov dword [edi + 0x48], eax
mov dword [edi], 0x15
mov eax, dword [edi + 0x48]
test eax, eax
je 0x403bef
cmp esi, eax
jae 0x403bd8
cmp dword [ebp - 8], 0
je 0x403f9c
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add esi, 8
add ebx, edx
inc dword [ebp - 4]
cmp esi, dword [edi + 0x48]
jb 0x403bb4
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
sub esi, eax
dec edx
and edx, ebx
add dword [edi + 0x40], edx
shr ebx, cl
add dword [edi + 0x1bc4], eax
mov eax, dword [edi + 0x40]
mov dword [edi + 0x1bc8], eax
mov dword [edi], 0x16
mov ecx, dword [edi + 0x58]
mov eax, dword [edi + 0x50]
xor edx, edx
inc edx
shl edx, cl
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
jmp 0x403c41
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x58]
add esi, 8
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [edi + 0x50]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
ja 0x403c11
test al, 0xf0
jne 0x403ce6
mov dword [ebp - 0x10], eax
shr dword [ebp - 0x10], 8
movzx edx, byte [ebp - 0x10]
mov dword [ebp - 0x24], edx
movzx ecx, al
add ecx, edx
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0xc], eax
shr eax, 0x10
dec edx
and edx, ebx
shr edx, cl
add edx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + edx*4]
movzx edx, byte [ebp - 0x10]
jmp 0x403cca
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
movzx edx, byte [ebp - 0xb]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
movzx ecx, byte [ebp - 0xc]
add ebx, eax
inc dword [ebp - 4]
xor eax, eax
add ecx, edx
inc eax
shl eax, cl
add esi, 8
mov ecx, edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0xa]
add eax, ecx
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add ecx, edx
cmp ecx, esi
ja 0x403c89
movzx ecx, byte [ebp - 0xb]
shr ebx, cl
sub esi, ecx
add dword [edi + 0x1bc4], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [edi + 0x1bc4], ecx
sub esi, ecx
shr ebx, cl
mov dword [ebp - 0x10], esi
test al, 0x40
je 0x403d0e
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x403f48
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], eax
mov dword [edi], 0x17
mov eax, dword [edi + 0x48]
test eax, eax
je 0x403d6e
cmp esi, eax
jae 0x403d54
cmp dword [ebp - 8], 0
je 0x403f9c
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx]
dec dword [ebp - 8]
mov ecx, esi
shl edx, cl
add esi, 8
add ebx, edx
inc dword [ebp - 4]
cmp esi, dword [edi + 0x48]
jb 0x403d30
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
sub esi, eax
mov dword [ebp - 0x10], esi
dec edx
and edx, ebx
add dword [edi + 0x44], edx
shr ebx, cl
add dword [edi + 0x1bc4], eax
mov dword [edi], 0x18
cmp dword [ebp - 0x14], 0
je 0x403f9c
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
mov ecx, dword [edi + 0x44]
cmp ecx, eax
jbe 0x403dd5
sub ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, dword [edi + 0x2c]
jbe 0x403dad
cmp dword [edi + 0x1bc0], 0
je 0x403dad
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x403f48
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x34]
cmp ecx, edx
jbe 0x403dc3
add eax, dword [edi + 0x28]
sub ecx, edx
mov dword [ebp - 0xc], ecx
sub eax, ecx
jmp 0x403dc7
sub eax, ecx
add eax, edx
mov edx, dword [edi + 0x40]
mov dword [ebp - 0x24], edx
cmp ecx, edx
jbe 0x403de3
mov ecx, edx
jmp 0x403de0
mov eax, dword [ebp - 0x1c]
sub eax, ecx
mov ecx, dword [edi + 0x40]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0xc], ecx
cmp ecx, dword [ebp - 0x14]
jbe 0x403dee
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x24]
sub dword [ebp - 0x14], ecx
sub edx, ecx
mov dword [edi + 0x40], edx
mov edx, dword [ebp - 0x1c]
mov cl, byte [eax]
inc dword [ebp - 0x1c]
inc eax
dec dword [ebp - 0xc]
mov byte [edx], cl
jne 0x403df9
cmp dword [edi + 0x40], 0
jne 0x403f4e
jmp 0x403e2d
cmp dword [ebp - 0x14], 0
je 0x403f9c
mov ecx, dword [ebp - 0x1c]
mov al, byte [edi + 0x40]
inc dword [ebp - 0x1c]
dec dword [ebp - 0x14]
mov byte [ecx], al
mov dword [edi], 0x14
jmp 0x403f4e
cmp dword [edi + 8], 0
je 0x403efb
cmp esi, 0x20
jae 0x403e71
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
mov dword [ebp - 0x10], esi
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x20
jb 0x403e47
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x14]
add dword [edx + 0x14], eax
add dword [edi + 0x1c], eax
mov dword [ebp - 0x20], eax
test eax, eax
je 0x403eb5
cmp dword [edi + 0x10], 0
push eax
je 0x403e9b
mov edx, dword [ebp - 0x1c]
push dword [edi + 0x18]
sub edx, eax
call fcn.004019dc
pop ecx
jmp 0x403ea9
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x20]
mov eax, dword [edi + 0x18]
call fcn.004017c2
pop ecx
mov ecx, dword [ebp + 8]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov edx, ecx
cmp dword [edi + 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, ebx
jne 0x403ee6
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
mov ecx, ebx
shr ecx, 8
and ecx, 0xff00
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [edi + 0x18]
je 0x403ef4
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x403f48
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [edi], 0x1b
cmp dword [edi + 8], 0
je 0x403f86
cmp dword [edi + 0x10], 0
je 0x403f86
cmp esi, 0x20
jae 0x403f3c
cmp dword [ebp - 8], 0
je 0x403f9c
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
dec dword [ebp - 8]
mov ecx, esi
shl eax, cl
add esi, 8
mov dword [ebp - 0x10], esi
add ebx, eax
inc dword [ebp - 4]
cmp esi, 0x20
jb 0x403f12
mov edx, dword [ebp + 8]
cmp ebx, dword [edi + 0x1c]
je 0x403f82
mov dword [edx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1d
mov eax, dword [edi]
cmp eax, 0x1e
jbe 0x402ebc
jmp case.default.0x402ebf
mov eax, dword [ebp - 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
push 2
jmp 0x402eb6
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1c
mov dword [ebp - 0x28], 1
jmp 0x403f9c
mov dword [ebp - 0x28], 0xfffffffd
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], edx
mov edx, dword [ebp - 8]
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x403fd3
cmp dword [ebp - 0x20], ecx
je 0x403fef
mov eax, dword [edi]
cmp eax, 0x1d
jge 0x403fef
cmp eax, 0x1a
jge 0x403fef
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
call fcn.00402d79
test eax, eax
je 0x403fef
mov dword [edi], 0x1e
push 0xfffffffffffffffc
jmp 0x402eb6
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x20]
sub eax, dword [esi + 0x10]
sub ecx, dword [esi + 4]
add dword [esi + 0x14], eax
add dword [esi + 8], ecx
add dword [edi + 0x1c], eax
cmp dword [edi + 8], 0
je 0x40403c
test eax, eax
je 0x40403c
cmp dword [edi + 0x10], 0
push eax
je 0x404028
mov edx, dword [esi + 0xc]
push dword [edi + 0x18]
sub edx, eax
call fcn.004019dc
pop ecx
jmp 0x404035
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov eax, dword [edi + 0x18]
call fcn.004017c2
pop ecx
mov dword [edi + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [edi]
cmp eax, 0xb
jne 0x404048
lea ecx, [eax + 0x75]
jmp 0x40404a
xor ecx, ecx
cmp eax, 0x13
je 0x404058
cmp eax, 0xe
je 0x404058
xor eax, eax
jmp 0x40405d
mov eax, 0x100
mov edx, dword [edi + 4]
neg edx
sbb edx, edx
and edx, 0x40
add edx, eax
mov eax, dword [ebp - 0x28]
add edx, ecx
add edx, dword [edi + 0x3c]
mov dword [esi + 0x2c], edx
test eax, eax
jne 0x402eb7
push 0xfffffffffffffffb
jmp 0x402eb6