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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
push edi
test eax, eax
je 0x10003a59
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x10003a59
cmp dword [eax + 0xc], 0
je 0x10003a59
cmp dword [eax], 0
jne 0x100027f6
cmp dword [eax + 4], 0
jne 0x10003a59
cmp dword [edi], 0xb
jne 0x10002801
mov dword [edi], 0xc
mov ecx, dword [eax + 0xc]
mov edx, dword [eax]
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 4]
push ebx
mov ebx, dword [edi + 0x30]
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
push esi
mov esi, dword [edi + 0x34]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], 0
cmp eax, 0x1c
ja case.default.0x10002838
jmp dword [eax*4 + 0x10003a64]
cmp dword [edi + 8], 0
jne 0x10002850
mov dword [edi], 0xc
jmp 0x10003907
cmp esi, 0x10
jae 0x10002877
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x10002855
mov eax, dword [edi + 8]
and eax, 1
je 0x100028c2
cmp ebx, 0x8b1f
jne 0x100028c2
push 0
xor edx, edx
xor ecx, ecx
call fcn.10001140
add esp, 4
mov edx, 2
lea ecx, [ebp - 0x14]
mov dword [edi + 0x14], eax
mov byte [ebp - 0x14], 0x1f
mov byte [ebp - 0x13], 0x8b
call fcn.10001160
mov edx, dword [ebp - 8]
xor ebx, ebx
mov dword [edi + 0x14], eax
xor esi, esi
mov dword [edi], 1
jmp 0x10003907
mov dword [edi + 0x10], 0
test eax, eax
je 0x1000295c
movzx eax, bl
shl eax, 8
mov ecx, ebx
shr ecx, 8
add eax, ecx
xor edx, edx
mov ecx, 0x1f
div ecx
test edx, edx
jne 0x1000295c
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x10002907
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x10003901
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
add ecx, 8
sub esi, 4
cmp ecx, dword [edi + 0x1c]
jbe 0x1000292c
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_window_size
mov edx, dword [ebp - 8]
jmp 0x10003901
push 0
xor eax, eax
xor ecx, ecx
call fcn.10001000
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
mov dword [edi], ebx
add esp, 4
xor ebx, ebx
xor esi, esi
jmp 0x10003907
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.incorrect_header_check
mov edx, dword [ebp - 8]
jmp 0x10003901
cmp esi, 0x10
jae 0x10002995
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x10002973
mov dword [edi + 0x10], ebx
cmp bl, 8
je 0x100029ac
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x10003901
test ebx, 0xe000
je 0x100029c3
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.unknown_header_flags_set
jmp 0x10003901
test ebx, 0x200
je 0x100029ea
mov eax, dword [edi + 0x14]
mov byte [ebp - 0x14], bl
shr ebx, 8
mov edx, 2
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
call fcn.10001160
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x10002a00
cmp esi, 0x20
jae 0x10002a22
jmp 0x10002a00
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x10002a00
test dword [edi + 0x10], 0x200
je 0x10002a5a
mov eax, dword [edi + 0x14]
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x10
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], cl
mov byte [ebp - 0x12], dl
shr ebx, 0x18
mov edx, 4
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x11], bl
call fcn.10001160
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x10002a70
cmp esi, 0x10
jae 0x10002a92
jmp 0x10002a70
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x10002a70
test dword [edi + 0x10], 0x200
je 0x10002aba
mov eax, dword [edi + 0x14]
mov byte [ebp - 0x14], bl
shr ebx, 8
mov edx, 2
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
call fcn.10001160
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x10002b23
cmp esi, 0x10
jae 0x10002af4
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x10002ad2
test dword [edi + 0x10], 0x200
mov dword [edi + 0x38], ebx
je 0x10002b1f
mov eax, dword [edi + 0x14]
mov byte [ebp - 0x14], bl
shr ebx, 8
mov edx, 2
lea ecx, [ebp - 0x14]
mov byte [ebp - 0x13], bl
call fcn.10001160
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x10002b8a
mov ecx, dword [edi + 0x38]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
cmp ecx, eax
jbe 0x10002b44
mov ecx, eax
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x10002b80
test dword [edi + 0x10], 0x200
je 0x10002b70
mov eax, dword [edi + 0x14]
test edx, edx
jne 0x10002b5c
xor eax, eax
jmp 0x10002b6d
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.10001160
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x38]
sub dword [ebp - 4], ecx
add edx, ecx
sub eax, ecx
mov dword [ebp - 8], edx
mov dword [edi + 0x38], eax
cmp dword [edi + 0x38], 0
jne 0x10003961
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x10002bf3
cmp dword [ebp - 4], 0
je 0x10003961
xor ecx, ecx
movzx eax, byte [ecx + edx]
inc ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10002bb6
cmp ecx, dword [ebp - 4]
jb 0x10002ba5
test dword [edi + 0x10], 0x2000
mov dword [ebp - 0xc], ecx
je 0x10002be1
mov eax, dword [edi + 0x14]
test edx, edx
jne 0x10002bcd
xor eax, eax
jmp 0x10002bde
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.10001160
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
sub dword [ebp - 4], ecx
add edx, ecx
cmp dword [ebp - 0x20], 0
mov dword [ebp - 8], edx
jne 0x10003961
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x10002c5e
cmp dword [ebp - 4], 0
je 0x10003961
xor ecx, ecx
mov edi, edi
movzx eax, byte [ecx + edx]
inc ecx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x10002c21
cmp ecx, dword [ebp - 4]
jb 0x10002c10
test dword [edi + 0x10], 0x2000
mov dword [ebp - 0xc], ecx
je 0x10002c4c
mov eax, dword [edi + 0x14]
test edx, edx
jne 0x10002c38
xor eax, eax
jmp 0x10002c49
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.10001160
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
sub dword [ebp - 4], ecx
add edx, ecx
cmp dword [ebp - 0x20], 0
mov dword [ebp - 8], edx
jne 0x10003961
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x10002caf
cmp esi, 0x10
jae 0x10002c94
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x10
jb 0x10002c72
movzx ecx, word [edi + 0x14]
cmp ebx, ecx
je 0x10002cab
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.header_crc_mismatch
jmp 0x10003901
xor ebx, ebx
xor esi, esi
push 0
xor edx, edx
xor ecx, ecx
call fcn.10001140
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
add esp, 4
mov dword [edi], 0xb
jmp 0x10003907
cmp esi, 0x20
jae 0x10002d02
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x10002ce0
mov ecx, ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
mov eax, ebx
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
shr ebx, 0x18
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 0xa
cmp dword [edi + 0xc], 0
je 0x1000391e
push 0
xor eax, eax
xor ecx, ecx
call fcn.10001000
mov edx, dword [ebp + 8]
mov dword [edi + 0x14], eax
mov dword [edx + 0x30], eax
mov edx, dword [ebp - 8]
add esp, 4
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x10002d7d
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x18
jmp 0x10003907
cmp esi, 3
jae 0x10002da4
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 3
jb 0x10002d82
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
dec esi
mov dword [edi + 4], ecx
cmp eax, 3
ja case.default.0x10002db9
jmp dword [eax*4 + 0x10003ad8]
shr ebx, 2
mov dword [edi], 0xd
sub esi, 2
jmp 0x10003907
shr ebx, 2
mov dword [edi + 0x44], 0x10135108
mov dword [edi + 0x4c], 9
mov dword [edi + 0x48], 0x10135908
mov dword [edi + 0x50], 5
mov dword [edi], 0x12
sub esi, 2
jmp 0x10003907
shr ebx, 2
mov dword [edi], 0xf
sub esi, 2
jmp 0x10003907
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_block_type
mov dword [edi], 0x1b
shr ebx, 2
sub esi, 2
jmp 0x10003907
mov ecx, esi
and ecx, 7
sub esi, ecx
shr ebx, cl
cmp esi, 0x20
jae 0x10002e62
jmp 0x10002e40
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x10002e40
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x10002e83
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_stored_block_lengths
jmp 0x10003901
xor ebx, ebx
mov dword [edi + 0x38], eax
xor esi, esi
mov dword [edi], 0xe
mov eax, dword [edi + 0x38]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100034eb
mov ecx, dword [ebp - 4]
cmp eax, ecx
jbe 0x10002eaa
mov eax, ecx
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x10002eb6
mov eax, ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10003961
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
push ecx
push edx
push eax
call fcn.10037db0
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
sub dword [ebp - 4], eax
sub dword [ebp - 0x10], eax
add dword [ebp - 0x18], eax
mov edx, dword [ebp - 8]
add esp, 0xc
sub dword [edi + 0x38], eax
jmp 0x10003907
cmp esi, 0xe
jae 0x10002f13
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0xe
jb 0x10002ef1
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [edi + 0x58], ecx
shr ebx, 5
mov ecx, ebx
and eax, 0x1f
and ecx, 0xf
inc eax
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x58], 0x11e
mov dword [edi + 0x5c], eax
mov dword [edi + 0x54], ecx
ja 0x10003035
cmp eax, 0x1e
ja 0x10003035
mov dword [edi + 0x60], 0
mov dword [edi], 0x10
mov ecx, dword [edi + 0x60]
cmp ecx, dword [edi + 0x54]
jae 0x10002fbd
lea esp, [esp]
cmp esi, 3
jae 0x10002f97
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 3
jb 0x10002f75
mov eax, dword [edi + 0x60]
movzx eax, word [eax*2 + 0x10135988]
mov ecx, ebx
and ecx, 7
mov word [edi + eax*2 + 0x68], cx
inc dword [edi + 0x60]
mov ecx, dword [edi + 0x60]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x54]
jb 0x10002f70
mov eax, 0x13
cmp dword [edi + 0x60], eax
jae 0x10002fea
jmp 0x10002fd0
mov edx, dword [edi + 0x60]
movzx ecx, word [edx*2 + 0x10135988]
xor edx, edx
mov word [edi + ecx*2 + 0x68], dx
inc dword [edi + 0x60]
cmp dword [edi + 0x60], eax
jb 0x10002fd0
lea eax, [edi + 0x528]
lea edx, [edi + 0x64]
mov dword [edx], eax
mov dword [edi + 0x44], eax
lea eax, [edi + 0x4c]
push eax
push edx
mov dword [eax], 7
lea eax, [edi + 0x68]
push eax
lea ecx, [edi + 0x2e8]
push 0
mov edx, 0x13
call fcn.10003af0
mov edx, dword [ebp - 8]
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10003044
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x10003901
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.too_many_length_or_distance_symbols
jmp 0x10003901
mov dword [edi + 0x60], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jae 0x100032a1
mov ecx, dword [edi + 0x4c]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
jbe 0x100030c1
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
ja 0x10003082
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x10003122
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x10003107
jmp 0x100030e0
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
mov eax, dword [ebp - 0xc]
movzx ecx, ah
cmp esi, ecx
jb 0x100030e0
movzx ecx, ah
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
mov cx, word [ebp - 0xa]
mov word [edi + eax*2 + 0x68], cx
inc dword [edi + 0x60]
jmp 0x10003274
mov cx, word [ebp - 0xa]
cmp cx, 0x10
jne 0x10003194
movzx ecx, ah
lea eax, [ecx + 2]
mov dword [ebp - 0x24], ecx
cmp esi, eax
jae 0x10003167
lea esp, [esp]
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add esi, 8
add ebx, eax
lea eax, [ecx + 2]
mov dword [ebp - 8], edx
cmp esi, eax
jb 0x10003140
mov eax, dword [edi + 0x60]
shr ebx, cl
sub esi, ecx
test eax, eax
je 0x10003285
movzx ecx, word [edi + eax*2 + 0x66]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], eax
sub esi, 2
jmp 0x1000323f
cmp cx, 0x11
movzx ecx, ah
mov dword [ebp - 0x24], ecx
jne 0x100031ee
lea eax, [ecx + 3]
cmp esi, eax
jae 0x100031d7
jmp 0x100031b0
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add esi, 8
add ebx, eax
lea eax, [ecx + 3]
mov dword [ebp - 8], edx
cmp esi, eax
jb 0x100031b0
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [ebp - 0xc], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x10003231
lea eax, [ecx + 7]
cmp esi, eax
jae 0x1000321c
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
inc edx
add esi, 8
add ebx, eax
lea eax, [ecx + 7]
mov dword [ebp - 8], edx
cmp esi, eax
jb 0x100031f5
shr ebx, cl
mov eax, ebx
and eax, 0x7f
add eax, 0xb
mov dword [ebp - 0xc], eax
shr ebx, 7
mov eax, 0xfffffff9
sub eax, ecx
add esi, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], 0
mov ecx, dword [edi + 0x60]
add ecx, eax
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp ecx, eax
ja 0x10003291
cmp dword [ebp - 0xc], 0
je 0x10003274
mov eax, dword [ebp - 0x20]
jmp 0x10003260
mov ecx, dword [edi + 0x60]
dec dword [ebp - 0xc]
mov word [edi + ecx*2 + 0x68], ax
inc dword [edi + 0x60]
cmp dword [ebp - 0xc], 0
jne 0x10003260
mov eax, dword [edi + 0x5c]
add eax, dword [edi + 0x58]
cmp dword [edi + 0x60], eax
jb 0x10003060
jmp 0x100032a1
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x1000329b
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
mov dword [edi], 0x1b
lea eax, [edi + 0x528]
lea edx, [edi + 0x64]
mov dword [edx], eax
mov dword [edi + 0x44], eax
lea eax, [edi + 0x4c]
push eax
push edx
mov edx, dword [edi + 0x58]
mov dword [eax], 9
lea eax, [edi + 0x68]
push eax
lea ecx, [edi + 0x2e8]
push 1
call fcn.10003af0
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x100032ea
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x18], str.invalid_literal_lengths_set
jmp 0x10003901
mov edx, dword [edi + 0x64]
lea eax, [edi + 0x50]
push eax
lea ecx, [edi + 0x64]
push ecx
mov dword [eax], 6
mov eax, dword [edi + 0x58]
lea ecx, [edi + eax*2 + 0x68]
push ecx
mov dword [edi + 0x48], edx
mov edx, dword [edi + 0x5c]
push 2
lea ecx, [edi + 0x2e8]
call fcn.10003af0
add esp, 0x10
mov dword [ebp - 0x28], eax
test eax, eax
je 0x10003332
mov edx, dword [ebp + 8]
mov dword [edx + 0x18], str.invalid_distances_set
mov edx, dword [ebp - 8]
jmp 0x10003901
mov edx, dword [ebp - 8]
mov dword [edi], 0x12
cmp dword [ebp - 4], 6
jb 0x1000339c
cmp dword [ebp - 0x10], 0x102
jb 0x1000339c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov edx, dword [ebp - 4]
push ecx
mov dword [eax + 4], edx
push eax
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], esi
call fcn.100021c0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0xc]
mov ecx, dword [eax + 0x10]
mov ebx, dword [edi + 0x30]
mov esi, dword [edi + 0x34]
mov dword [ebp - 0x18], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
add esp, 8
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
jmp 0x10003907
mov ecx, dword [edi + 0x4c]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x44]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
jbe 0x100033ff
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x4c]
inc edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x44]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
ja 0x100033c0
test al, al
je 0x100034c1
test al, 0xf0
jne 0x100034c1
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x20], ecx
movzx ecx, al
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x20]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x44]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2c]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x100034b6
jmp 0x10003460
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
dec dword [ebp - 4]
inc edx
add ebx, eax
movzx eax, ch
mov dword [ebp - 0x20], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x20]
add esi, 8
mov dword [ebp - 8], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x22]
add eax, ecx
mov ecx, dword [edi + 0x44]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, dword [ebp - 0x20]
cmp eax, esi
ja 0x10003460
movzx ecx, byte [ebp - 0x23]
mov eax, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x20], ecx
mov ecx, eax
shr ecx, 0x10
mov dword [edi + 0x38], ecx
test al, al
jne 0x100034e7
mov dword [edi], 0x17
jmp 0x10003907
test al, 0x20
je 0x100034f6
mov dword [edi], 0xb
jmp 0x10003907
test al, 0x40
je 0x10003509
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_literal_length_code
jmp 0x10003901
movzx ecx, al
and ecx, 0xf
mov dword [edi + 0x40], ecx
mov dword [edi], 0x13
mov eax, dword [edi + 0x40]
test eax, eax
je 0x10003559
cmp esi, eax
jae 0x10003545
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, dword [edi + 0x40]
jb 0x10003523
mov ecx, dword [edi + 0x40]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x38], eax
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x14
mov ecx, dword [edi + 0x50]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x48]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
jbe 0x100035c2
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x50]
inc edx
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x48]
mov dword [ebp - 8], edx
dec eax
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], eax
cmp ecx, esi
ja 0x10003583
test al, 0xf0
jne 0x10003674
mov ecx, eax
shr ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, cl
mov dword [ebp - 0x20], ecx
movzx ecx, al
add ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x20]
dec eax
and eax, ebx
shr eax, cl
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x48]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [ebp - 0x2c]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x10003669
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
mov ecx, esi
shl eax, cl
mov ecx, dword [ebp - 0x24]
dec dword [ebp - 4]
inc edx
add ebx, eax
movzx eax, ch
mov dword [ebp - 0x20], eax
movzx ecx, cl
add ecx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 0x20]
add esi, 8
mov dword [ebp - 8], edx
dec eax
and eax, ebx
shr eax, cl
movzx ecx, word [ebp - 0x22]
add eax, ecx
mov ecx, dword [edi + 0x48]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0xc], eax
shr eax, 8
movzx eax, al
add eax, dword [ebp - 0x20]
cmp eax, esi
ja 0x10003613
movzx ecx, byte [ebp - 0x23]
mov eax, dword [ebp - 0xc]
shr ebx, cl
sub esi, ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
shr ebx, cl
sub esi, ecx
mov dword [ebp - 0x20], ecx
test al, 0x40
je 0x10003696
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_code
jmp 0x10003901
mov ecx, eax
movzx eax, al
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x3c], ecx
mov dword [edi + 0x40], eax
mov dword [edi], 0x15
mov eax, dword [edi + 0x40]
test eax, eax
je 0x100036f6
cmp esi, eax
jae 0x100036e2
jmp 0x100036c0
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, dword [edi + 0x40]
jb 0x100036c0
mov ecx, dword [edi + 0x40]
mov eax, 1
shl eax, cl
dec eax
and eax, ebx
add dword [edi + 0x3c], eax
shr ebx, cl
sub esi, ecx
mov ecx, dword [edi + 0x24]
sub ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0x1c]
cmp dword [edi + 0x3c], ecx
jbe 0x10003713
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.invalid_distance_too_far_back
jmp 0x10003901
mov dword [edi], 0x16
cmp dword [ebp - 0x10], 0
je 0x10003961
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x10]
mov eax, dword [edi + 0x3c]
cmp eax, ecx
jbe 0x10003767
sub eax, ecx
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0xc], eax
cmp eax, ecx
jbe 0x1000374b
sub eax, ecx
mov ecx, dword [edi + 0x2c]
add ecx, dword [edi + 0x20]
mov dword [ebp - 0xc], eax
sub ecx, eax
jmp 0x10003756
mov ecx, dword [edi + 0x2c]
sub ecx, eax
add ecx, dword [edi + 0x28]
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x20], ecx
cmp eax, ecx
jbe 0x10003778
mov eax, ecx
jmp 0x10003775
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
cmp eax, ecx
jbe 0x10003784
mov eax, ecx
mov dword [ebp - 0xc], eax
sub ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x20]
sub ecx, eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x38], ecx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ecx]
inc dword [ebp - 0x24]
mov byte [eax], cl
inc eax
sub dword [ebp - 0xc], 1
jne 0x10003794
cmp dword [edi + 0x38], 0
mov dword [ebp - 0x18], eax
jne 0x10003907
mov dword [edi], 0x12
jmp 0x10003907
cmp dword [ebp - 0x10], 0
je 0x10003961
mov eax, dword [ebp - 0x18]
mov cl, byte [edi + 0x38]
mov byte [eax], cl
inc eax
dec dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [edi], 0x12
jmp 0x10003907
cmp dword [edi + 8], 0
je 0x100038ac
cmp esi, 0x20
jae 0x10003812
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x100037f0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add dword [ecx + 0x14], eax
add dword [edi + 0x18], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10003866
cmp dword [edi + 0x10], 0
je 0x10003846
mov ecx, dword [ebp - 0x18]
sub ecx, eax
mov eax, dword [edi + 0x14]
jne 0x1000383c
xor eax, eax
jmp 0x1000385d
mov edx, dword [ebp - 0x1c]
call fcn.10001160
jmp 0x1000385a
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push ecx
sub eax, ecx
mov ecx, dword [edi + 0x14]
call fcn.10001000
add esp, 4
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [edi + 0x14], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, ebx
jne 0x10003897
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 + 0x14]
je 0x100038a8
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], str.incorrect_data_check
jmp 0x10003901
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x19
cmp dword [edi + 8], 0
je 0x1000394b
cmp dword [edi + 0x10], 0
je 0x1000394b
cmp esi, 0x20
jae 0x100038f2
jmp 0x100038d0
cmp dword [ebp - 4], 0
je 0x10003961
movzx eax, byte [edx]
dec dword [ebp - 4]
mov ecx, esi
shl eax, cl
inc edx
add esi, 8
mov dword [ebp - 8], edx
add ebx, eax
cmp esi, 0x20
jb 0x100038d0
cmp ebx, dword [edi + 0x18]
je 0x10003947
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1b
mov eax, dword [edi]
cmp eax, 0x1c
jbe switch.0x10002838
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov dword [edi + 0x34], esi
pop esi
mov dword [edi + 0x30], ebx
pop ebx
mov eax, 2
pop edi
mov esp, ebp
pop ebp
ret
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1a
mov dword [ebp - 0x28], 1
jmp 0x10003961
mov dword [ebp - 0x28], 0xfffffffd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax], edx
mov edx, dword [ebp - 4]
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
cmp dword [edi + 0x20], 0
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], esi
jne 0x10003994
cmp dword [edi], 0x18
jge 0x100039b5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
cmp eax, dword [ecx + 0x10]
je 0x100039b5
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
call fcn.100026c0
test eax, eax
je 0x100039b5
mov dword [edi], 0x1c
pop esi
pop ebx
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
sub eax, dword [esi + 4]
mov ebx, dword [ebp - 0x1c]
sub ebx, dword [esi + 0x10]
add dword [esi + 8], eax
add dword [esi + 0x14], ebx
add dword [edi + 0x18], ebx
cmp dword [edi + 8], 0
mov dword [ebp - 0x30], eax
je 0x10003a11
test ebx, ebx
je 0x10003a11
cmp dword [edi + 0x10], 0
je 0x100039f7
mov ecx, dword [esi + 0xc]
sub ecx, ebx
mov eax, dword [edi + 0x14]
jne 0x100039ee
xor eax, eax
jmp 0x10003a08
mov edx, ebx
call fcn.10001160
jmp 0x10003a08
mov eax, dword [esi + 0xc]
mov ecx, dword [edi + 0x14]
push ebx
sub eax, ebx
call fcn.10001000
add esp, 4
mov dword [edi + 0x14], eax
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [edi + 4]
neg edx
sbb edx, edx
and edx, 0x40
xor ecx, ecx
cmp dword [edi], 0xb
setne cl
dec ecx
and ecx, 0x80
add edx, ecx
add edx, dword [edi + 0x34]
mov dword [esi + 0x2c], edx
test eax, eax
jne 0x10003a4f
test ebx, ebx
jne 0x10003a4f
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x10003917
pop esi
lea eax, [ebx - 5]
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x28]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret