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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x2c
test eax, eax
push ebp
push edi
je 0x10013f8a
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x10013f8a
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10013f8a
mov ebp, dword [eax]
test ebp, ebp
jne 0x100129f6
cmp dword [eax + 4], ebp
jne 0x10013f8a
cmp dword [edi], 0xb
jne 0x10012a01
mov dword [edi], 0xc
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov eax, dword [edi]
cmp eax, 0x1e
push ebx
mov ebx, dword [edi + 0x38]
push esi
mov esi, dword [edi + 0x3c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 0
jbe switch.0x10012a58
mov eax, 0xfffffffe
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x2c
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
jmp dword [eax*4 + 0x10013f98]
cmp dword [edi + 8], 0
jne 0x10012a70
mov dword [edi], 0xc
jmp 0x10013e2e
cmp esi, 0x10
jae 0x10012a9d
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x10012a75
test byte [edi + 8], 2
je 0x10012aea
cmp ebx, 0x8b1f
jne 0x10012aea
push 0
xor edx, edx
xor ecx, ecx
call fcn.10014080
add esp, 4
mov edx, 2
lea ecx, [esp + 0x20]
mov dword [edi + 0x18], eax
mov byte [esp + 0x20], 0x1f
mov byte [esp + 0x21], 0x8b
call fcn.10014090
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 1
jmp 0x10013e2e
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [edi + 0x10], 0
je 0x10012aff
mov dword [eax + 0x30], 0xffffffff
test byte [edi + 8], 1
je 0x10012baa
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 0x10012baa
mov edx, ebx
and dl, 0xf
cmp dl, 8
je 0x10012b41
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.unknown_compression_method
jmp 0x10013e28
mov eax, dword [edi + 0x24]
shr ebx, 4
mov ecx, ebx
and ecx, 0xf
sub esi, 4
add ecx, 8
test eax, eax
mov dword [esp + 0x18], ebx
jne 0x10012b96
mov dword [edi + 0x24], ecx
mov edx, 1
shl edx, cl
xor eax, eax
xor ecx, ecx
mov dword [edi + 0x14], edx
xor edx, edx
call fcn.100163c0
mov ecx, dword [esp + 0x40]
shr ebx, 8
not ebx
and ebx, 2
or ebx, 9
mov dword [edi], ebx
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x10013e2e
cmp ecx, eax
jbe 0x10012b5d
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_window_size
jmp 0x10013e28
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_header_check
jmp 0x10013e28
cmp esi, 0x10
jae 0x10012be8
nop
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x10012bc0
cmp bl, 8
mov dword [edi + 0x10], ebx
je 0x10012c00
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.unknown_compression_method
jmp 0x10013e28
test ebx, 0xe000
je 0x10012c18
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.unknown_header_flags_set
jmp 0x10013e28
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10012c29
mov ecx, ebx
shr ecx, 8
and ecx, 1
mov dword [eax], ecx
test dword [edi + 0x10], 0x200
je 0x10012c55
mov eax, dword [edi + 0x18]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.10014090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 2
jmp 0x10012c66
cmp esi, 0x20
jae 0x10012c8a
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
jb 0x10012c66
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10012c94
mov dword [eax + 4], ebx
test dword [edi + 0x10], 0x200
je 0x10012cd2
mov eax, dword [edi + 0x18]
mov ecx, ebx
mov edx, ebx
shr ecx, 8
shr edx, 0x10
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], cl
mov byte [esp + 0x22], dl
shr ebx, 0x18
mov edx, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x23], bl
call fcn.10014090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
xor esi, esi
mov dword [edi], 3
jmp 0x10012ce3
cmp esi, 0x10
jae 0x10012d07
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
jb 0x10012ce3
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10012d24
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 0x10012d50
mov eax, dword [edi + 0x18]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.10014090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 4
test dword [edi + 0x10], 0x400
je 0x10012dd7
cmp esi, 0x10
jae 0x10012d94
lea esp, [esp]
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
jb 0x10012d70
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [edi + 0x40], ebx
je 0x10012da1
mov dword [eax + 0x14], ebx
test dword [edi + 0x10], 0x200
je 0x10012dcd
mov eax, dword [edi + 0x18]
mov byte [esp + 0x20], bl
shr ebx, 8
mov edx, 2
lea ecx, [esp + 0x20]
mov byte [esp + 0x21], bl
call fcn.10014090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
jmp 0x10012de5
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10012de5
mov dword [eax + 0x10], 0
mov dword [edi], 5
test dword [edi + 0x10], 0x400
je 0x10012e98
mov ecx, dword [edi + 0x40]
cmp ecx, edx
mov dword [esp + 0x14], ecx
jbe 0x10012e09
mov ecx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
je 0x10012e8e
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10012e59
mov eax, dword [eax + 0x10]
test eax, eax
mov dword [esp + 0x34], eax
je 0x10012e59
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x14]
sub eax, dword [edi + 0x40]
mov edx, dword [edi + 0x20]
mov edx, dword [edx + 0x18]
add ecx, eax
cmp ecx, edx
jbe 0x10012e3c
sub edx, eax
jmp 0x10012e40
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
push edx
add ecx, eax
push ebp
push ecx
call fcn.10022400
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
add esp, 0xc
test dword [edi + 0x10], 0x200
je 0x10012e83
test ebp, ebp
mov eax, dword [edi + 0x18]
jne 0x10012e6d
xor eax, eax
jmp 0x10012e80
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.10014090
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
sub edx, ecx
add ebp, ecx
sub dword [edi + 0x40], ecx
mov dword [esp + 0x10], edx
cmp dword [edi + 0x40], 0
jne 0x10013e8c
mov dword [edi + 0x40], 0
mov dword [edi], 6
test dword [edi + 0x10], 0x800
je 0x10012f4a
test edx, edx
je 0x10013e8c
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + ebp]
add eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [esp + 0x28], ecx
je 0x10012efc
mov ecx, dword [eax + 0x1c]
test ecx, ecx
mov dword [esp + 0x34], ecx
je 0x10012efc
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x20]
jae 0x10012efc
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x28]
mov byte [edx + ecx], al
add dword [edi + 0x40], 1
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
je 0x10012f0b
cmp eax, edx
jb 0x10012ec0
test dword [edi + 0x10], 0x200
je 0x10012f35
test ebp, ebp
mov eax, dword [edi + 0x18]
jne 0x10012f1f
xor eax, eax
jmp 0x10012f2e
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.10014090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x10], edx
jne 0x10013e8c
jmp 0x10012f58
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10012f58
mov dword [eax + 0x1c], 0
mov dword [edi + 0x40], 0
mov dword [edi], 7
test dword [edi + 0x10], 0x1000
je 0x1001300a
test edx, edx
je 0x10013e8c
xor eax, eax
lea esp, [esp]
movzx ecx, byte [eax + ebp]
add eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0x20]
test eax, eax
mov dword [esp + 0x28], ecx
je 0x10012fbc
mov ecx, dword [eax + 0x24]
test ecx, ecx
mov dword [esp + 0x34], ecx
je 0x10012fbc
mov ecx, dword [edi + 0x40]
cmp ecx, dword [eax + 0x28]
jae 0x10012fbc
mov edx, dword [esp + 0x34]
mov al, byte [esp + 0x28]
mov byte [edx + ecx], al
add dword [edi + 0x40], 1
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x28], 0
mov eax, dword [esp + 0x14]
je 0x10012fcb
cmp eax, edx
jb 0x10012f80
test dword [edi + 0x10], 0x200
je 0x10012ff5
test ebp, ebp
mov eax, dword [edi + 0x18]
jne 0x10012fdf
xor eax, eax
jmp 0x10012fee
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.10014090
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esp + 0x14]
sub edx, eax
add ebp, eax
cmp dword [esp + 0x28], 0
mov dword [esp + 0x10], edx
jne 0x10013e8c
jmp 0x10013018
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10013018
mov dword [eax + 0x24], 0
mov dword [edi], 8
test dword [edi + 0x10], 0x200
je 0x10013078
cmp esi, 0x10
jae 0x10013058
lea esp, [esp]
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x10013030
movzx ecx, word [edi + 0x18]
cmp ebx, ecx
je 0x10013070
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.header_crc_mismatch
jmp 0x10013e28
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10013095
mov ecx, dword [edi + 0x10]
sar ecx, 9
and ecx, 1
mov dword [eax + 0x2c], ecx
mov edx, dword [edi + 0x20]
mov dword [edx + 0x30], 1
push 0
xor edx, edx
xor ecx, ecx
call fcn.10014080
mov ecx, dword [esp + 0x44]
add esp, 4
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
mov dword [edi], 0xb
jmp 0x10013e2e
cmp esi, 0x20
jae 0x100130e8
lea ecx, [ecx]
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x100130c0
mov ecx, ebx
and ecx, 0xff00
mov eax, ebx
shl eax, 0x10
add ecx, eax
xor eax, eax
mov ah, byte [esp + 0x1a]
shl ecx, 8
shr ebx, 0x18
mov dword [edi], 0xa
add ecx, eax
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x40]
xor ebx, ebx
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
xor esi, esi
cmp dword [edi + 0xc], 0
je 0x10013e46
xor eax, eax
xor edx, edx
xor ecx, ecx
call fcn.100163c0
mov edx, dword [esp + 0x40]
mov dword [edx + 0x30], eax
mov edx, dword [esp + 0x10]
mov dword [edi + 0x18], eax
mov dword [edi], 0xb
cmp dword [edi + 4], 0
je 0x10013163
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
mov dword [edi], 0x1a
mov dword [esp + 0x18], ebx
jmp 0x10013e2e
cmp esi, 3
jae 0x1001318c
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 3
mov dword [esp + 0x10], edx
jb 0x10013168
mov ecx, ebx
shr ebx, 1
mov eax, ebx
and ecx, 1
and eax, 3
sub esi, 1
cmp eax, 3
mov dword [edi + 4], ecx
ja case.default.0x100131a3
jmp dword [eax*4 + 0x10014014]
shr ebx, 2
mov dword [edi], 0xd
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x10013e2e
shr ebx, 2
mov dword [edi + 0x4c], 0x10032770
mov dword [edi + 0x54], 9
mov dword [edi + 0x50], 0x10032f70
mov dword [edi + 0x58], 5
mov dword [edi], 0x13
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x10013e2e
shr ebx, 2
mov dword [edi], 0x10
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x10013e2e
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_block_type
mov dword [edi], 0x1d
shr ebx, 2
mov dword [esp + 0x18], ebx
sub esi, 2
jmp 0x10013e2e
mov ecx, esi
and ecx, 7
shr ebx, cl
sub esi, ecx
cmp esi, 0x20
mov dword [esp + 0x18], ebx
jae 0x1001325f
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x10013237
mov ecx, ebx
mov eax, ebx
not ecx
and eax, 0xffff
shr ecx, 0x10
cmp eax, ecx
je 0x10013281
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_stored_block_lengths
jmp 0x10013e28
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [edi + 0x40], eax
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0xe
mov dword [edi], 0xf
mov eax, dword [edi + 0x40]
test eax, eax
mov dword [esp + 0x14], eax
je 0x100130ad
cmp eax, edx
jbe 0x100132b5
mov eax, edx
mov dword [esp + 0x14], edx
cmp eax, ecx
jbe 0x100132bf
mov eax, ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x10013e8c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
push eax
push ebp
push ecx
call fcn.10022400
mov eax, dword [esp + 0x20]
sub dword [esp + 0x1c], eax
sub dword [esp + 0x28], eax
add dword [esp + 0x30], eax
add esp, 0xc
add ebp, eax
sub dword [edi + 0x40], eax
jmp 0x10013e2e
cmp esi, 0xe
jae 0x10013324
lea esp, [esp]
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0xe
mov dword [esp + 0x10], edx
jb 0x10013300
mov ecx, ebx
and ecx, 0x1f
shr ebx, 5
add ecx, 0x101
mov eax, ebx
mov dword [edi + 0x60], ecx
shr ebx, 5
mov ecx, ebx
and eax, 0x1f
and ecx, 0xf
add eax, 1
add ecx, 4
shr ebx, 4
sub esi, 0xe
cmp dword [edi + 0x60], 0x11e
mov dword [edi + 0x64], eax
mov dword [edi + 0x5c], ecx
mov dword [esp + 0x18], ebx
ja 0x1001344f
cmp eax, 0x1e
ja 0x1001344f
mov dword [edi + 0x68], 0
mov dword [edi], 0x11
mov eax, dword [edi + 0x68]
cmp eax, dword [edi + 0x5c]
jae 0x100133d8
cmp esi, 3
jae 0x100133ac
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 3
mov dword [esp + 0x10], edx
jb 0x10013388
mov eax, dword [edi + 0x68]
movzx eax, word [eax*2 + 0x10032ff0]
movzx ecx, bl
and ecx, 7
mov word [edi + eax*2 + 0x70], cx
add dword [edi + 0x68], 1
mov ecx, dword [edi + 0x68]
shr ebx, 3
sub esi, 3
cmp ecx, dword [edi + 0x5c]
mov dword [esp + 0x18], ebx
jb 0x10013383
cmp dword [edi + 0x68], 0x13
jae 0x10013409
xor ecx, ecx
mov eax, 1
jmp 0x100133f0
mov edx, dword [edi + 0x68]
movzx edx, word [edx*2 + 0x10032ff0]
mov word [edi + edx*2 + 0x70], cx
add dword [edi + 0x68], eax
cmp dword [edi + 0x68], 0x13
jb 0x100133f0
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
push ecx
lea edx, [edi + 0x54]
push 0x13
lea ecx, [edi + 0x70]
push 0
mov dword [edx], 7
call fcn.10015eb0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x1001345f
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_code_lengths_set
jmp 0x10013e28
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.too_many_length_or_distance_symbols
jmp 0x10013e28
mov edx, dword [esp + 0x10]
mov dword [edi + 0x68], 0
mov dword [edi], 0x12
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jae 0x100136b7
nop
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x100134e9
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
ja 0x100134a5
mov ecx, eax
shr ecx, 0x10
cmp ecx, 0x10
jae 0x1001354b
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp esi, ecx
jae 0x1001352a
nop
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
mov eax, dword [esp + 0x14]
movzx ecx, ah
cmp esi, ecx
mov dword [esp + 0x10], edx
jb 0x10013500
movzx ecx, ah
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
mov cx, word [esp + 0x16]
mov word [edi + eax*2 + 0x70], cx
add dword [edi + 0x68], 1
mov dword [esp + 0x18], ebx
jmp 0x100136a8
mov cx, word [esp + 0x16]
cmp cx, 0x10
jne 0x100135c1
movzx ecx, ah
lea eax, [ecx + 2]
cmp esi, eax
mov dword [esp + 0x28], ecx
jae 0x1001358e
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x28]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 2]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x10013564
mov eax, dword [edi + 0x68]
shr ebx, cl
sub esi, ecx
test eax, eax
mov dword [esp + 0x18], ebx
je 0x100136da
movzx ecx, word [edi + eax*2 + 0x6e]
mov eax, ebx
and eax, 3
add eax, 3
shr ebx, 2
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
sub esi, 2
jmp 0x10013670
cmp cx, 0x11
movzx ecx, ah
mov dword [esp + 0x28], ecx
jne 0x10013617
lea eax, [ecx + 3]
cmp esi, eax
jae 0x100135ff
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x28]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 3]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x100135d5
shr ebx, cl
mov eax, ebx
and eax, 7
add eax, 3
mov dword [esp + 0x14], eax
shr ebx, 3
mov eax, 0xfffffffd
jmp 0x10013660
lea eax, [ecx + 7]
cmp esi, eax
jae 0x1001364a
mov edi, edi
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x28]
sub edx, 1
add esi, 8
add ebx, eax
lea eax, [ecx + 7]
add ebp, 1
cmp esi, eax
mov dword [esp + 0x10], edx
jb 0x10013620
shr ebx, cl
mov eax, ebx
and eax, 0x7f
add eax, 0xb
mov dword [esp + 0x14], eax
shr ebx, 7
mov eax, 0xfffffff9
sub eax, ecx
add esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], 0
mov ecx, dword [edi + 0x68]
add ecx, eax
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
mov dword [esp + 0x18], ebx
cmp ecx, eax
ja 0x100136ea
cmp dword [esp + 0x14], 0
je 0x100136a8
mov eax, dword [esp + 0x28]
mov edi, edi
mov ecx, dword [edi + 0x68]
sub dword [esp + 0x14], 1
mov word [edi + ecx*2 + 0x70], ax
add dword [edi + 0x68], 1
cmp dword [esp + 0x14], 0
jne 0x10013690
mov eax, dword [edi + 0x64]
add eax, dword [edi + 0x60]
cmp dword [edi + 0x68], eax
jb 0x10013480
cmp dword [edi], 0x1d
je 0x10013e2e
cmp word [edi + 0x270], 0
jne 0x100136fa
mov eax, dword [esp + 0x40]
mov dword [eax + 0x18], str.invalid_code____missing_end_of_block
jmp 0x10013e28
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_bit_length_repeat
jmp 0x10013e28
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_bit_length_repeat
jmp 0x10013e28
lea eax, [edi + 0x530]
lea ecx, [edi + 0x6c]
mov dword [ecx], eax
mov dword [edi + 0x4c], eax
lea eax, [edi + 0x2f0]
push eax
push ecx
mov ecx, dword [edi + 0x60]
push ecx
lea edx, [edi + 0x54]
lea ecx, [edi + 0x70]
push 1
mov dword [edx], 9
call fcn.10015eb0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x10013742
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_lengths_set
jmp 0x10013e28
mov ecx, dword [edi + 0x6c]
lea eax, [edi + 0x6c]
mov dword [edi + 0x50], ecx
lea ecx, [edi + 0x2f0]
push ecx
mov ecx, dword [edi + 0x60]
push eax
mov eax, dword [edi + 0x64]
push eax
lea edx, [edi + 0x58]
lea ecx, [edi + ecx*2 + 0x70]
push 2
mov dword [edx], 6
call fcn.10015eb0
add esp, 0x10
test eax, eax
mov dword [esp + 0x30], eax
je 0x10013789
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_distances_set
jmp 0x10013e28
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [edi], 0x13
mov dword [edi], 0x14
cmp edx, 6
jb 0x10013816
cmp ecx, 0x102
jb 0x10013816
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
mov dword [eax], ebp
mov dword [eax + 4], ecx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
call fcn.10016640
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov ebx, dword [edi + 0x38]
mov esi, dword [edi + 0x3c]
add esp, 8
cmp dword [edi], 0xb
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ebx
jne 0x10013e2e
mov dword [edi + 0x1bc4], 0xffffffff
jmp 0x10013e2e
mov ecx, dword [edi + 0x54]
mov eax, 1
shl eax, cl
mov dword [edi + 0x1bc4], 0
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x1001388b
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x54]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x4c]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
ja 0x10013847
test al, al
je 0x10013960
test al, 0xf0
jne 0x10013960
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x28], ecx
movzx ecx, al
add ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x28]
sub eax, 1
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x4c]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x1001394d
mov edi, edi
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
sub edx, 1
add esi, 8
add ebx, eax
movzx eax, ch
add ecx, eax
mov dword [esp + 0x28], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x28]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x1a]
add eax, ecx
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x28]
cmp eax, esi
ja 0x100138f0
movzx ecx, byte [esp + 0x19]
mov eax, dword [esp + 0x14]
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
shr ebx, cl
sub esi, ecx
mov dword [esp + 0x28], ecx
mov ecx, eax
shr ecx, 0x10
test al, al
mov dword [esp + 0x18], ebx
mov dword [edi + 0x40], ecx
jne 0x10013991
mov dword [edi], 0x19
jmp 0x10013e2e
test al, 0x20
je 0x100139aa
mov dword [edi + 0x1bc4], 0xffffffff
mov dword [edi], 0xb
jmp 0x10013e2e
test al, 0x40
je 0x100139be
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_literal_length_code
jmp 0x10013e28
and eax, 0xf
mov dword [edi + 0x48], eax
mov dword [edi], 0x15
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10013a15
cmp esi, eax
jae 0x100139f9
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, dword [edi + 0x48]
mov dword [esp + 0x10], edx
jb 0x100139d5
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
sub esi, ecx
sub eax, 1
and eax, ebx
add dword [edi + 0x40], eax
shr ebx, cl
add dword [edi + 0x1bc4], ecx
mov ecx, dword [edi + 0x40]
mov dword [edi + 0x1bc8], ecx
mov dword [edi], 0x16
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
sub eax, 1
and eax, ebx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
jbe 0x10013a94
jmp 0x10013a50
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [edi + 0x58]
sub edx, 1
add esi, 8
add ebx, eax
mov eax, 1
shl eax, cl
mov ecx, dword [edi + 0x50]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
mov eax, dword [ecx + eax*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, esi
mov dword [esp + 0x14], eax
ja 0x10013a50
test al, 0xf0
jne 0x10013b60
mov ecx, eax
shr ecx, 8
mov dword [esp + 0x34], ecx
movzx ecx, cl
mov dword [esp + 0x28], ecx
movzx ecx, al
add ecx, dword [esp + 0x28]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x28]
sub eax, 1
and eax, ebx
shr eax, cl
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
add eax, ecx
mov ecx, eax
mov eax, dword [edi + 0x50]
mov eax, dword [eax + ecx*4]
movzx ecx, byte [esp + 0x34]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, ecx
cmp eax, esi
jbe 0x10013b4d
nop
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
mov ecx, dword [esp + 0x18]
sub edx, 1
add esi, 8
add ebx, eax
movzx eax, ch
add ecx, eax
mov dword [esp + 0x28], eax
mov eax, 1
shl eax, cl
mov ecx, dword [esp + 0x28]
add ebp, 1
mov dword [esp + 0x10], edx
sub eax, 1
and eax, ebx
shr eax, cl
movzx ecx, word [esp + 0x1a]
add eax, ecx
mov ecx, dword [edi + 0x50]
mov eax, dword [ecx + eax*4]
mov dword [esp + 0x14], eax
shr eax, 8
movzx eax, al
add eax, dword [esp + 0x28]
cmp eax, esi
ja 0x10013af0
movzx ecx, byte [esp + 0x19]
mov eax, dword [esp + 0x14]
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
shr ebx, cl
sub esi, ecx
test al, 0x40
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ebx
je 0x10013b8e
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.invalid_distance_code
jmp 0x10013e28
mov ecx, eax
shr ecx, 0x10
and eax, 0xf
mov dword [edi + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + 0x48], eax
mov dword [edi], 0x17
mov eax, dword [edi + 0x48]
test eax, eax
je 0x10013bf9
cmp esi, eax
jae 0x10013bd5
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, dword [edi + 0x48]
mov dword [esp + 0x10], edx
jb 0x10013bb1
mov ecx, dword [edi + 0x48]
mov eax, 1
shl eax, cl
sub esi, ecx
sub eax, 1
and eax, ebx
add dword [edi + 0x44], eax
shr ebx, cl
add dword [edi + 0x1bc4], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], ebx
mov dword [edi], 0x18
test ecx, ecx
je 0x10013e8c
mov eax, dword [esp + 0x2c]
mov edx, dword [edi + 0x44]
sub eax, ecx
cmp edx, eax
jbe 0x10013cba
sub edx, eax
cmp edx, dword [edi + 0x2c]
mov dword [esp + 0x14], edx
jbe 0x10013c3c
cmp dword [edi + 0x1bc0], 0
je 0x10013c3c
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.invalid_distance_too_far_back
jmp 0x10013e28
mov ecx, dword [edi + 0x30]
cmp edx, ecx
mov eax, dword [edi + 0x34]
jbe 0x10013c53
add eax, dword [edi + 0x28]
sub edx, ecx
mov dword [esp + 0x14], edx
sub eax, edx
jmp 0x10013c57
sub eax, edx
add eax, ecx
mov ecx, dword [edi + 0x40]
cmp edx, ecx
mov dword [esp + 0x34], ecx
jbe 0x10013c68
mov edx, ecx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
jbe 0x10013c76
mov edx, ecx
mov dword [esp + 0x14], edx
sub ecx, edx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
sub ecx, edx
mov dword [edi + 0x40], ecx
mov ecx, dword [esp + 0x24]
lea esp, [esp]
mov dl, byte [eax]
mov byte [ecx], dl
add ecx, 1
add eax, 1
sub dword [esp + 0x14], 1
jne 0x10013c90
cmp dword [edi + 0x40], 0
mov dword [esp + 0x24], ecx
jne 0x10013e2e
mov dword [edi], 0x14
jmp 0x10013e2e
mov eax, dword [esp + 0x24]
sub eax, edx
mov edx, dword [edi + 0x40]
mov dword [esp + 0x34], edx
mov dword [esp + 0x14], edx
jmp 0x10013c6c
test ecx, ecx
je 0x10013e8c
mov eax, dword [esp + 0x24]
mov dl, byte [edi + 0x40]
mov byte [eax], dl
add eax, 1
sub ecx, 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ecx
mov dword [edi], 0x14
jmp 0x10013e2e
cmp dword [edi + 8], 0
je 0x10013dd0
cmp esi, 0x20
jae 0x10013d2e
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x10013d06
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
add dword [ecx + 0x14], eax
add dword [edi + 0x1c], eax
test eax, eax
mov dword [esp + 0x2c], eax
je 0x10013d88
cmp dword [edi + 0x10], 0
je 0x10013d68
mov ecx, dword [esp + 0x24]
sub ecx, eax
mov eax, dword [edi + 0x18]
jne 0x10013d5d
xor eax, eax
jmp 0x10013d7e
mov edx, dword [esp + 0x2c]
call fcn.10014090
jmp 0x10013d7a
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x18]
sub edx, eax
call fcn.100163c0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x40]
mov dword [edi + 0x18], eax
mov dword [ecx + 0x30], eax
cmp dword [edi + 0x10], 0
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
mov eax, ebx
jne 0x10013db6
and eax, 0xff00
mov ecx, ebx
shl ecx, 0x10
add eax, ecx
xor ecx, ecx
mov ch, byte [esp + 0x1a]
shl eax, 8
add eax, ecx
mov ecx, ebx
shr ecx, 0x18
add eax, ecx
cmp eax, dword [edi + 0x18]
je 0x10013dc8
mov edx, dword [esp + 0x40]
mov dword [edx + 0x18], str.incorrect_data_check
jmp 0x10013e28
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [edi], 0x1b
cmp dword [edi + 8], 0
je 0x10013e74
cmp dword [edi + 0x10], 0
je 0x10013e74
cmp esi, 0x20
jae 0x10013e18
nop
test edx, edx
je 0x10013e8c
movzx eax, byte [ebp]
mov ecx, esi
shl eax, cl
sub edx, 1
add esi, 8
add ebp, 1
add ebx, eax
cmp esi, 0x20
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ebx
jb 0x10013df0
cmp ebx, dword [edi + 0x1c]
je 0x10013e70
mov ecx, dword [esp + 0x40]
mov dword [ecx + 0x18], str.incorrect_length_check
mov dword [edi], 0x1d
mov eax, dword [edi]
cmp eax, 0x1e
jbe 0x10012a50
pop esi
pop ebx
pop edi
mov eax, 0xfffffffe
pop ebp
add esp, 0x2c
ret
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x3c], esi
pop esi
mov dword [edi + 0x38], ebx
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x18]
pop ebx
mov dword [eax], ebp
pop edi
mov dword [eax + 0x10], ecx
mov dword [eax + 4], edx
mov eax, 2
pop ebp
add esp, 0x2c
ret
xor ebx, ebx
xor esi, esi
mov dword [edi], 0x1c
mov dword [esp + 0x30], 1
jmp 0x10013e8c
mov dword [esp + 0x30], 0xfffffffd
cmp dword [edi + 0x28], 0
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov dword [eax], ebp
mov dword [eax + 4], edx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], esi
jne 0x10013ebc
cmp dword [edi], 0x1a
jge 0x10013ee0
mov edx, ecx
cmp dword [esp + 0x2c], edx
je 0x10013ee0
push eax
mov eax, dword [esp + 0x30]
call fcn.100128d0
add esp, 4
test eax, eax
je 0x10013ee0
mov dword [edi], 0x1e
pop esi
pop ebx
pop edi
mov eax, 0xfffffffc
pop ebp
add esp, 0x2c
ret
mov esi, dword [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
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 0x10013f37
test eax, eax
je 0x10013f37
cmp dword [edi + 0x10], 0
je 0x10013f24
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov ebx, dword [edi + 0x18]
jne 0x10013f19
xor eax, eax
jmp 0x10013f31
mov edx, eax
mov eax, ebx
call fcn.10014090
jmp 0x10013f31
mov edx, dword [esi + 0xc]
mov ecx, dword [edi + 0x18]
sub edx, eax
call fcn.100163c0
mov dword [edi + 0x18], eax
mov dword [esi + 0x30], eax
mov eax, dword [edi]
cmp eax, 0x13
je 0x10013f47
cmp eax, 0xe
je 0x10013f47
xor ecx, ecx
jmp 0x10013f4c
mov ecx, 0x100
mov edx, dword [edi + 4]
neg edx
sbb edx, edx
xor ebx, ebx
and edx, 0x40
cmp eax, 0xb
mov eax, dword [esp + 0x30]
setne bl
add edx, ecx
sub ebx, 1
and ebx, 0x80
add ebx, edx
add ebx, dword [edi + 0x3c]
test eax, eax
mov dword [esi + 0x2c], ebx
jne 0x10012a3b
pop esi
pop ebx
pop edi
mov eax, 0xfffffffb
pop ebp
add esp, 0x2c
ret
pop edi
mov eax, 0xfffffffe
pop ebp
add esp, 0x2c
ret