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

Disassembly:
mov dword [rsp + 0x10], edx
push r13
push r15
sub rsp, 0x88
test rcx, rcx
mov r15, rcx
je 0x4101d090
mov r13, qword [rcx + 0x28]
test r13, r13
je 0x4101d090
cmp qword [rcx + 0x10], 0
je 0x4101d090
cmp qword [rcx], 0
jne 0x4101b4c3
cmp dword [rcx + 8], 0
jne 0x4101d090
cmp dword [r13], 0xb
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x58], r14
jne 0x4101b4eb
mov dword [r13], 0xc
mov r10d, dword [rcx + 0x18]
mov eax, dword [r13]
mov r9, qword [rcx + 0x10]
mov esi, dword [rcx + 8]
mov rbp, qword [rcx]
mov r12d, dword [r13 + 0x40]
mov edi, dword [r13 + 0x44]
xor r14d, r14d
cmp eax, 0x1e
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x40], r9
mov dword [rsp + 0xb0], r10d
mov dword [rsp + 0x38], esi
mov r8d, r10d
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0xa0], r14d
ja case.default.0x4101b55d
lea r11, [0x41000000]
lea ebx, [r14 + 1]
nop
nop
nop
cdqe
mov ecx, dword [r11 + rax*4 + 0x1d0a4]
add rcx, r11
jmp rcx
mov edx, dword [r13 + 8]
test edx, edx
jne 0x4101b574
mov dword [r13], 0xc
jmp 0x4101cb16
cmp edi, 0x10
jae 0x4101b5a2
nop
nop
test esi, esi
je 0x4101ce3a
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x10
jb 0x4101b580
test dl, 2
je 0x4101b605
cmp r12d, 0x8b1f
jne 0x4101b605
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.4101d430
lea rdx, [rsp + 0xb8]
mov r8d, 2
mov ecx, eax
mov byte [rsp + 0xb8], 0x1f
mov byte [rsp + 0xb9], 0x8b
mov dword [r13 + 0x18], eax
call fcn.4101d440
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
mov dword [r13 + 0x18], eax
mov r12d, r14d
mov edi, r14d
mov dword [r13], ebx
jmp 0x4101cb16
mov rax, qword [r13 + 0x20]
mov dword [r13 + 0x10], r14d
test rax, rax
je 0x4101b619
mov dword [rax + 0x40], 0xffffffff
test byte [r13 + 8], 1
je 0x4101b6f0
movzx ecx, r12b
mov eax, r12d
shr eax, 8
shl ecx, 8
add ecx, eax
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
imul eax, eax, 0x1f
cmp ecx, eax
jne 0x4101b6f0
mov eax, r12d
and al, 0xf
cmp al, 8
je 0x4101b671
lea rax, str.unknown_compression_method
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov eax, dword [r13 + 0x28]
shr r12d, 4
add edi, 0xfffffffc
mov ecx, r12d
and ecx, 0xf
add ecx, 8
test eax, eax
jne 0x4101b6d4
mov dword [r13 + 0x28], ecx
mov eax, ebx
xor r8d, r8d
xor edx, edx
shl eax, cl
xor ecx, ecx
mov dword [r13 + 0x14], eax
call fcn.4101d120
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
shr r12d, 8
mov dword [r13 + 0x18], eax
not r12d
mov dword [r15 + 0x4c], eax
mov edi, r14d
and r12d, 2
or r12d, 9
mov dword [r13], r12d
mov r12d, r14d
jmp 0x4101cb16
cmp ecx, eax
jbe 0x4101b68d
lea rax, str.invalid_window_size
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
lea rax, str.incorrect_header_check
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
cmp edi, 0x10
jae 0x4101b732
nop
test esi, esi
je 0x4101ce29
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x10
jb 0x4101b710
cmp r12b, 8
mov dword [r13 + 0x10], r12d
je 0x4101b754
lea rax, str.unknown_compression_method
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
test r12d, 0xe000
je 0x4101b775
lea rax, str.unknown_header_flags_set
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x4101b789
mov eax, r12d
shr eax, 8
and eax, 1
mov dword [rcx], eax
bt dword [r13 + 0x10], 9
jae 0x4101b7c0
mov ecx, dword [r13 + 0x18]
mov byte [rsp + 0xb8], r12b
shr r12d, 8
lea rdx, [rsp + 0xb8]
mov r8d, 2
mov byte [rsp + 0xb9], r12b
call fcn.4101d440
mov dword [r13 + 0x18], eax
mov r12d, r14d
mov edi, r14d
mov dword [r13], 2
jmp 0x4101b7d5
cmp edi, 0x20
jae 0x4101b7f7
test esi, esi
je 0x4101ce18
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x20
jb 0x4101b7d5
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x4101b804
mov dword [rax + 4], r12d
bt dword [r13 + 0x10], 9
jae 0x4101b855
mov ecx, dword [r13 + 0x18]
mov eax, r12d
mov byte [rsp + 0xb8], r12b
shr eax, 8
lea rdx, [rsp + 0xb8]
mov r8d, 4
mov byte [rsp + 0xb9], al
mov eax, r12d
shr r12d, 0x18
shr eax, 0x10
mov byte [rsp + 0xbb], r12b
mov byte [rsp + 0xba], al
call fcn.4101d440
mov dword [r13 + 0x18], eax
mov r12d, r14d
mov edi, r14d
mov dword [r13], 3
jmp 0x4101b870
cmp edi, 0x10
jae 0x4101b892
nop
nop
test esi, esi
je 0x4101ce07
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x10
jb 0x4101b870
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x4101b8af
movzx eax, r12b
mov dword [rcx + 8], eax
mov rax, qword [r13 + 0x20]
mov ecx, r12d
shr ecx, 8
mov dword [rax + 0xc], ecx
bt dword [r13 + 0x10], 9
jae 0x4101b8e6
mov ecx, dword [r13 + 0x18]
mov byte [rsp + 0xb8], r12b
shr r12d, 8
lea rdx, [rsp + 0xb8]
mov r8d, 2
mov byte [rsp + 0xb9], r12b
call fcn.4101d440
mov dword [r13 + 0x18], eax
mov r12d, r14d
mov edi, r14d
mov dword [r13], 4
bt dword [r13 + 0x10], 0xa
jae 0x4101b973
cmp edi, 0x10
jae 0x4101b923
test esi, esi
je 0x4101cdf6
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x10
jb 0x4101b901
mov rax, qword [r13 + 0x20]
mov dword [r13 + 0x48], r12d
test rax, rax
je 0x4101b934
mov dword [rax + 0x18], r12d
bt dword [r13 + 0x10], 9
jae 0x4101b96b
mov ecx, dword [r13 + 0x18]
mov byte [rsp + 0xb8], r12b
shr r12d, 8
lea rdx, [rsp + 0xb8]
mov r8d, 2
mov byte [rsp + 0xb9], r12b
call fcn.4101d440
mov dword [r13 + 0x18], eax
mov r12d, r14d
mov edi, r14d
jmp 0x4101b980
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x4101b980
mov qword [rax + 0x10], r14
mov dword [r13], 5
bt dword [r13 + 0x10], 0xa
jae 0x4101ba15
mov ecx, dword [r13 + 0x48]
cmp ecx, esi
mov ebx, ecx
cmova ebx, esi
test ebx, ebx
je 0x4101ba0a
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x4101b9da
mov r9, qword [rax + 0x10]
test r9, r9
je 0x4101b9da
mov edx, dword [rax + 0x18]
sub edx, ecx
mov ecx, dword [rax + 0x1c]
lea eax, [rbx + rdx]
cmp eax, ecx
jbe 0x4101b9c8
sub ecx, edx
jmp 0x4101b9ca
mov ecx, ebx
mov r8d, ecx
mov ecx, edx
mov rdx, rbp
add rcx, r9
call fcn.41217500
bt dword [r13 + 0x10], 9
jae 0x4101b9ff
test rbp, rbp
jne 0x4101b9ec
mov eax, r14d
jmp 0x4101b9fb
mov ecx, dword [r13 + 0x18]
mov r8d, ebx
mov rdx, rbp
call fcn.4101d440
mov dword [r13 + 0x18], eax
mov eax, ebx
sub esi, ebx
add rbp, rax
sub dword [r13 + 0x48], ebx
cmp dword [r13 + 0x48], 0
jne 0x4101cde5
mov dword [r13 + 0x48], r14d
mov dword [r13], 6
bt dword [r13 + 0x10], 0xb
jae 0x4101bab2
test esi, esi
je 0x4101cdd4
mov r8, rbp
nop
nop
mov rax, qword [r13 + 0x20]
movzx ebx, byte [r8]
add r14d, 1
add r8, 1
test rax, rax
je 0x4101ba6f
mov rdx, qword [rax + 0x20]
test rdx, rdx
je 0x4101ba6f
mov ecx, dword [r13 + 0x48]
cmp ecx, dword [rax + 0x28]
jae 0x4101ba6f
mov byte [rcx + rdx], bl
add dword [r13 + 0x48], 1
test ebx, ebx
je 0x4101ba78
cmp r14d, esi
jb 0x4101ba40
bt dword [r13 + 0x10], 9
jae 0x4101ba9c
test rbp, rbp
jne 0x4101ba89
xor eax, eax
jmp 0x4101ba98
mov ecx, dword [r13 + 0x18]
mov r8d, r14d
mov rdx, rbp
call fcn.4101d440
mov dword [r13 + 0x18], eax
mov eax, r14d
sub esi, r14d
add rbp, rax
test ebx, ebx
jne 0x4101cdc3
xor r14d, r14d
jmp 0x4101babf
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x4101babf
mov qword [rax + 0x20], r14
mov dword [r13 + 0x48], r14d
mov dword [r13], 7
bt dword [r13 + 0x10], 0xc
jae 0x4101bb52
test esi, esi
je 0x4101cdaf
mov r8, rbp
nop
mov rax, qword [r13 + 0x20]
movzx ebx, byte [r8]
add r14d, 1
add r8, 1
test rax, rax
je 0x4101bb0f
mov rdx, qword [rax + 0x30]
test rdx, rdx
je 0x4101bb0f
mov ecx, dword [r13 + 0x48]
cmp ecx, dword [rax + 0x38]
jae 0x4101bb0f
mov byte [rcx + rdx], bl
add dword [r13 + 0x48], 1
test ebx, ebx
je 0x4101bb18
cmp r14d, esi
jb 0x4101bae0
bt dword [r13 + 0x10], 9
jae 0x4101bb3c
test rbp, rbp
jne 0x4101bb29
xor eax, eax
jmp 0x4101bb38
mov ecx, dword [r13 + 0x18]
mov r8d, r14d
mov rdx, rbp
call fcn.4101d440
mov dword [r13 + 0x18], eax
mov eax, r14d
sub esi, r14d
add rbp, rax
test ebx, ebx
jne 0x4101cd9b
xor r14d, r14d
jmp 0x4101bb5f
mov rax, qword [r13 + 0x20]
test rax, rax
je 0x4101bb5f
mov qword [rax + 0x30], r14
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
mov dword [r13], 8
mov ebx, 1
bt dword [r13 + 0x10], 9
jae 0x4101bbd0
cmp edi, 0x10
jae 0x4101bba8
test esi, esi
je 0x4101cd87
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x10
jb 0x4101bb86
movzx eax, word [r13 + 0x18]
cmp r12d, eax
je 0x4101bbca
lea rax, str.header_crc_mismatch
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r12d, r14d
mov edi, r14d
mov rcx, qword [r13 + 0x20]
test rcx, rcx
je 0x4101bbed
mov eax, dword [r13 + 0x10]
sar eax, 9
and eax, 1
mov dword [rcx + 0x3c], eax
mov rax, qword [r13 + 0x20]
mov dword [rax + 0x40], ebx
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.4101d430
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
mov dword [r13 + 0x18], eax
mov dword [r15 + 0x4c], eax
mov dword [r13], 0xb
jmp 0x4101cb16
cmp edi, 0x20
jae 0x4101bc42
test esi, esi
je 0x4101cd73
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x20
jb 0x4101bc20
mov ecx, r12d
mov eax, r12d
mov edi, r14d
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, r12d
shr r12d, 0x18
shr eax, 8
shl ecx, 8
and eax, 0xff00
add eax, ecx
add eax, r12d
mov r12d, r14d
mov dword [r13 + 0x18], eax
mov dword [r15 + 0x4c], eax
mov dword [r13], 0xa
cmp dword [r13 + 0xc], 0
je 0x4101cb43
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.4101d120
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
mov edx, dword [rsp + 0xa8]
mov dword [r13 + 0x18], eax
mov dword [r15 + 0x4c], eax
mov dword [r13], 0xb
cmp edx, 5
je 0x4101cd5f
cmp edx, 6
je 0x4101cd4b
cmp dword [r13 + 4], 0
je 0x4101bceb
mov ecx, edi
mov dword [r13], 0x1a
and ecx, 7
shr r12d, cl
sub edi, ecx
jmp 0x4101cb16
cmp edi, 3
jae 0x4101bd12
test esi, esi
je 0x4101cd37
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 3
jb 0x4101bcf0
mov eax, r12d
shr r12d, 1
add edi, 0xffffffff
and eax, 1
mov dword [r13 + 4], eax
mov eax, r12d
and eax, 3
je 0x4101bdc2
sub eax, 1
je 0x4101bd74
sub eax, 1
je 0x4101bd60
cmp eax, 1
jne 0x4101bdca
lea rax, str.invalid_block_type
shr r12d, 2
add edi, 0xfffffffe
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
shr r12d, 2
mov dword [r13], 0x10
add edi, 0xfffffffe
jmp 0x4101cb16
cmp edx, 6
lea rax, [0x412cdc10]
mov dword [r13 + 0x68], 9
mov qword [r13 + 0x58], rax
lea rax, [0x412ce410]
mov dword [r13 + 0x6c], 5
mov qword [r13 + 0x60], rax
mov dword [r13], 0x13
jne 0x4101bdca
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
shr r12d, 2
add edi, 0xfffffffe
jmp 0x4101ce49
mov dword [r13], 0xd
shr r12d, 2
add edi, 0xfffffffe
jmp 0x4101cb16
mov ecx, edi
and ecx, 7
sub edi, ecx
shr r12d, cl
cmp edi, 0x20
jae 0x4101be07
test esi, esi
je 0x4101cd23
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x20
jb 0x4101bde5
mov eax, r12d
movzx ecx, r12w
not eax
shr eax, 0x10
cmp ecx, eax
je 0x4101be2f
lea rax, str.invalid_stored_block_lengths
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
cmp edx, 6
mov dword [r13 + 0x48], ecx
mov r12d, r14d
mov edi, r14d
mov dword [r13], 0xe
je 0x4101cd0f
mov dword [r13], 0xf
mov r14d, dword [r13 + 0x48]
test r14d, r14d
je 0x4101beb2
cmp r14d, esi
cmova r14d, esi
cmp r14d, r10d
cmova r14d, r10d
test r14d, r14d
je 0x4101ccfb
mov r8d, r14d
mov rdx, rbp
mov rcx, r9
mov ebx, r14d
call fcn.41217500
mov r10d, dword [rsp + 0xb0]
mov r9, qword [rsp + 0x40]
sub r10d, r14d
sub esi, r14d
add r9, rbx
add rbp, rbx
sub dword [r13 + 0x48], r14d
mov dword [rsp + 0xb0], r10d
mov qword [rsp + 0x40], r9
jmp 0x4101cb16
mov dword [r13], 0xb
jmp 0x4101cb16
cmp edi, 0xe
jae 0x4101bee6
test esi, esi
je 0x4101cce7
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0xe
jb 0x4101bec4
mov ecx, r12d
shr r12d, 5
add edi, 0xfffffff2
mov edx, r12d
shr r12d, 5
and ecx, 0x1f
mov eax, r12d
and edx, 0x1f
add ecx, 0x101
and eax, 0xf
add edx, 1
shr r12d, 4
add eax, 4
cmp ecx, 0x11e
mov dword [r13 + 0x74], ecx
mov dword [r13 + 0x70], eax
mov dword [r13 + 0x78], edx
ja 0x4101c047
cmp edx, 0x1e
ja 0x4101c047
mov dword [r13 + 0x7c], r14d
mov dword [r13], 0x11
mov eax, dword [r13 + 0x70]
cmp dword [r13 + 0x7c], eax
jae 0x4101bfaa
nop
nop
cmp edi, 3
jae 0x4101bf77
test esi, esi
je 0x4101ccd3
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 3
jb 0x4101bf55
mov eax, dword [r13 + 0x7c]
mov cl, r12b
add edi, 0xfffffffd
movzx eax, word [r11 + rax*2 + 0x2cb7e8]
and cx, 7
shr r12d, 3
mov word [r13 + rax*2 + 0x88], cx
add dword [r13 + 0x7c], 1
mov eax, dword [r13 + 0x70]
cmp dword [r13 + 0x7c], eax
jb 0x4101bf50
cmp dword [r13 + 0x7c], 0x13
jae 0x4101bfd5
mov eax, dword [r13 + 0x7c]
movzx eax, word [r11 + rax*2 + 0x2cb7e8]
mov word [r13 + rax*2 + 0x88], 0
add dword [r13 + 0x7c], 1
cmp dword [r13 + 0x7c], 0x13
jb 0x4101bfb1
lea rcx, [r13 + 0x68]
lea rax, [r13 + 0x548]
lea r9, [r13 + 0x80]
mov qword [r9], rax
mov qword [r13 + 0x58], rax
lea rax, [r13 + 0x308]
mov qword [rsp + 0x28], rax
mov dword [rcx], 7
mov qword [rsp + 0x20], rcx
xor ecx, ecx
lea rdx, [r13 + 0x88]
lea r8d, [rcx + 0x13]
call fcn.4101f6e0
test eax, eax
mov dword [rsp + 0xa0], eax
je 0x4101c05f
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
lea rax, str.invalid_code_lengths_set
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
lea rax, str.too_many_length_or_distance_symbols
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r10d, dword [rsp + 0xb0]
mov dword [r13 + 0x7c], r14d
mov dword [r13], 0x12
mov eax, dword [r13 + 0x78]
add eax, dword [r13 + 0x74]
cmp dword [r13 + 0x7c], eax
jae 0x4101c28a
nop
nop
nop
mov ecx, dword [r13 + 0x68]
mov eax, ebx
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
mov dword [rsp + 0x34], eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x4101c0fd
test esi, esi
je 0x4101cc83
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
mov ecx, dword [r13 + 0x68]
add esi, 0xffffffff
add r12d, eax
mov eax, ebx
add rbp, 1
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
mov dword [rsp + 0x34], eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x4101c0b8
mov edx, eax
shr edx, 0x10
cmp dx, 0x10
jae 0x4101c12a
shr eax, 8
movzx ecx, al
mov eax, dword [r13 + 0x7c]
mov word [r13 + rax*2 + 0x88], dx
shr r12d, cl
sub edi, ecx
add dword [r13 + 0x7c], 1
jmp 0x4101c278
cmp dx, 0x10
jne 0x4101c19e
movzx edx, byte [rsp + 0x35]
shr eax, 8
movzx ecx, al
add ecx, 2
cmp edi, ecx
jae 0x4101c169
test esi, esi
je 0x4101ccbf
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
movzx eax, dl
add eax, 2
cmp edi, eax
jb 0x4101c142
mov eax, dword [r13 + 0x7c]
movzx ecx, dl
shr r12d, cl
sub edi, ecx
test eax, eax
je 0x4101c2bd
mov edx, r12d
add eax, 0xffffffff
shr r12d, 2
movzx r8d, word [r13 + rax*2 + 0x88]
and edx, 3
add edx, 3
add edi, 0xfffffffe
jmp 0x4101c246
cmp word [rsp + 0x36], 0x11
jne 0x4101c1f7
movzx r9d, byte [rsp + 0x35]
lea edx, [r9 + 3]
cmp edi, edx
jae 0x4101c1d5
test esi, esi
je 0x4101ccab
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, edx
jb 0x4101c1b4
mov ecx, r9d
mov eax, 0xfffffffd
mov r8d, r14d
shr r12d, cl
sub eax, r9d
mov edx, r12d
shr r12d, 3
and edx, 7
add edx, 3
add edi, eax
jmp 0x4101c246
movzx r9d, byte [rsp + 0x35]
lea edx, [r9 + 7]
cmp edi, edx
jae 0x4101c226
test esi, esi
je 0x4101cc97
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, edx
jb 0x4101c205
mov ecx, r9d
mov eax, 0xfffffff9
mov r8d, r14d
shr r12d, cl
sub eax, r9d
mov edx, r12d
shr r12d, 7
and edx, 0x7f
add edx, 0xb
add edi, eax
mov eax, dword [r13 + 0x7c]
lea ecx, [rdx + rax]
mov eax, dword [r13 + 0x78]
add eax, dword [r13 + 0x74]
cmp ecx, eax
ja 0x4101c2da
test edx, edx
je 0x4101c278
mov eax, dword [r13 + 0x7c]
mov word [r13 + rax*2 + 0x88], r8w
add dword [r13 + 0x7c], 1
add edx, 0xffffffff
jne 0x4101c261
mov eax, dword [r13 + 0x78]
add eax, dword [r13 + 0x74]
cmp dword [r13 + 0x7c], eax
jb 0x4101c090
cmp dword [r13], 0x1d
je 0x4101cb11
cmp word [r13 + 0x288], 0
jne 0x4101c2f7
mov r9, qword [rsp + 0x40]
lea rax, str.invalid_code____missing_end_of_block
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r9, qword [rsp + 0x40]
lea rax, str.invalid_bit_length_repeat
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r9, qword [rsp + 0x40]
lea rax, str.invalid_bit_length_repeat
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r8d, dword [r13 + 0x74]
lea rax, [r13 + 0x548]
lea r14, [r13 + 0x308]
mov qword [r13 + 0x80], rax
mov qword [r13 + 0x58], rax
lea rax, [r13 + 0x68]
lea rdx, [r13 + 0x88]
lea r9, [r13 + 0x80]
mov ecx, 1
mov qword [rsp + 0x28], r14
mov dword [rax], 9
mov qword [rsp + 0x20], rax
call fcn.4101f6e0
test eax, eax
mov dword [rsp + 0xa0], eax
je 0x4101c370
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
lea rax, str.invalid_literal_lengths_set
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov rax, qword [r13 + 0x80]
mov r8d, dword [r13 + 0x78]
lea rcx, [r13 + 0x6c]
mov qword [r13 + 0x60], rax
mov eax, dword [r13 + 0x74]
mov dword [rcx], 6
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rcx
lea r9, [r13 + 0x80]
lea rdx, [r13 + rax*2 + 0x88]
mov ecx, 2
call fcn.4101f6e0
test eax, eax
mov r14d, eax
mov dword [rsp + 0xa0], eax
je 0x4101c3e3
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
lea rax, str.invalid_distances_set
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov ecx, dword [rsp + 0xa8]
mov dword [r13], 0x13
cmp ecx, 6
je 0x4101ce49
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0xb0]
mov ebx, 1
xor r14d, r14d
mov dword [r13], 0x14
cmp esi, 6
jb 0x4101c48c
cmp r10d, 0x102
jb 0x4101c48c
mov qword [r15 + 0x10], r9
mov dword [r15 + 0x18], r10d
mov qword [r15], rbp
mov dword [r15 + 8], esi
mov edx, r8d
mov rcx, r15
mov dword [r13 + 0x40], r12d
mov dword [r13 + 0x44], edi
call fcn.4101f1e0
cmp dword [r13], 0xb
mov r9, qword [r15 + 0x10]
mov r10d, dword [r15 + 0x18]
mov rbp, qword [r15]
mov esi, dword [r15 + 8]
mov r12d, dword [r13 + 0x40]
mov edi, dword [r13 + 0x44]
mov qword [rsp + 0x40], r9
mov dword [rsp + 0xb0], r10d
jne 0x4101cb16
mov dword [r13 + 0x1bdc], 0xffffffff
jmp 0x4101cb16
mov ecx, dword [r13 + 0x68]
mov r11, qword [r13 + 0x58]
mov eax, ebx
shl eax, cl
mov dword [r13 + 0x1bdc], r14d
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov eax, dword [r11 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x4101c4f9
test esi, esi
je 0x4101cc5b
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
mov ecx, dword [r13 + 0x68]
add esi, 0xffffffff
add r12d, eax
mov eax, ebx
add rbp, 1
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x4101c4b8
test al, al
je 0x4101c5ca
test al, 0xf0
jne 0x4101c5ca
mov r10d, eax
mov cl, al
mov dword [rsp + 0x34], eax
shr r10d, 8
mov r9d, ebx
mov edx, eax
movzx r8d, r10b
shr eax, 0x10
add ecx, r8d
shl r9d, cl
mov ecx, r8d
sub r9d, 1
and r9d, r12d
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
movzx r11d, byte [rsp + 0x35]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, edi
jbe 0x4101c5ba
movzx r10d, word [rsp + 0x36]
nop
test esi, esi
je 0x4101cc6f
movzx eax, byte [rbp]
mov ecx, edi
movzx r9d, r11b
shl eax, cl
mov r8d, ebx
add edi, 8
add r12d, eax
mov al, dl
add esi, 0xffffffff
lea ecx, [r9 + rax]
movzx eax, r10w
add rbp, 1
shl r8d, cl
mov ecx, r9d
sub r8d, 1
and r8d, r12d
shr r8d, cl
add r8d, eax
mov rax, qword [r13 + 0x58]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, edi
ja 0x4101c560
movzx ecx, r11b
shr r12d, cl
sub edi, ecx
mov dword [r13 + 0x1bdc], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [r13 + 0x1bdc], ecx
shr r12d, cl
sub edi, ecx
mov ecx, eax
shr ecx, 0x10
test al, al
mov dword [r13 + 0x48], ecx
jne 0x4101c605
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
mov dword [r13], 0x19
jmp 0x4101cb16
test al, 0x20
je 0x4101c62e
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
mov dword [r13 + 0x1bdc], 0xffffffff
mov dword [r13], 0xb
jmp 0x4101cb16
test al, 0x40
je 0x4101c657
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
lea rax, str.invalid_literal_length_code
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
and eax, 0xf
mov dword [r13], 0x15
mov dword [r13 + 0x50], eax
mov edx, dword [r13 + 0x50]
test edx, edx
je 0x4101c6b1
cmp edi, edx
jae 0x4101c695
test esi, esi
je 0x4101cc47
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, dword [r13 + 0x50]
jb 0x4101c672
mov ecx, edx
mov eax, ebx
sub edi, edx
shl eax, cl
sub eax, 1
and eax, r12d
shr r12d, cl
add dword [r13 + 0x48], eax
add dword [r13 + 0x1bdc], edx
mov eax, dword [r13 + 0x48]
mov dword [r13], 0x16
mov dword [r13 + 0x1be0], eax
mov ecx, dword [r13 + 0x6c]
mov r11, qword [r13 + 0x60]
mov eax, ebx
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov eax, dword [r11 + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
jbe 0x4101c731
nop
nop
test esi, esi
je 0x4101cc1f
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
mov ecx, dword [r13 + 0x6c]
add esi, 0xffffffff
add r12d, eax
mov eax, ebx
add rbp, 1
shl eax, cl
lea ecx, [rax - 1]
mov eax, r12d
and rcx, rax
mov rax, qword [r13 + 0x60]
mov eax, dword [rax + rcx*4]
mov ecx, eax
shr ecx, 8
movzx ecx, cl
cmp ecx, edi
ja 0x4101c6f0
test al, 0xf0
jne 0x4101c7fa
mov r10d, eax
mov cl, al
mov dword [rsp + 0x34], eax
shr r10d, 8
mov r9d, ebx
mov edx, eax
movzx r8d, r10b
shr eax, 0x10
add ecx, r8d
shl r9d, cl
mov ecx, r8d
sub r9d, 1
and r9d, r12d
shr r9d, cl
add r9d, eax
mov eax, dword [r11 + r9*4]
movzx r11d, byte [rsp + 0x35]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
movzx ecx, r10b
add r8d, ecx
cmp r8d, edi
jbe 0x4101c7ea
movzx r10d, word [rsp + 0x36]
nop
test esi, esi
je 0x4101cc33
movzx eax, byte [rbp]
mov ecx, edi
movzx r9d, r11b
shl eax, cl
mov r8d, ebx
add edi, 8
add r12d, eax
mov al, dl
add esi, 0xffffffff
lea ecx, [r9 + rax]
movzx eax, r10w
add rbp, 1
shl r8d, cl
mov ecx, r9d
sub r8d, 1
and r8d, r12d
shr r8d, cl
add r8d, eax
mov rax, qword [r13 + 0x60]
mov eax, dword [rax + r8*4]
mov ecx, eax
shr ecx, 8
movzx r8d, cl
add r8d, r9d
cmp r8d, edi
ja 0x4101c790
movzx ecx, r11b
shr r12d, cl
sub edi, ecx
add dword [r13 + 0x1bdc], ecx
mov ecx, eax
shr ecx, 8
movzx ecx, cl
add dword [r13 + 0x1bdc], ecx
shr r12d, cl
sub edi, ecx
test al, 0x40
je 0x4101c837
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
lea rax, str.invalid_distance_code
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r9, qword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
mov r10d, dword [rsp + 0xb0]
mov ecx, eax
mov dword [r13], 0x17
shr ecx, 0x10
and eax, 0xf
mov dword [r13 + 0x50], eax
mov dword [r13 + 0x4c], ecx
mov edx, dword [r13 + 0x50]
test edx, edx
je 0x4101c8af
cmp edi, edx
jae 0x4101c893
nop
test esi, esi
je 0x4101cc0b
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, dword [r13 + 0x50]
jb 0x4101c870
mov ecx, edx
mov eax, ebx
sub edi, edx
shl eax, cl
sub eax, 1
and eax, r12d
shr r12d, cl
add dword [r13 + 0x4c], eax
add dword [r13 + 0x1bdc], edx
mov dword [r13], 0x18
test r10d, r10d
je 0x4101cbf7
mov edx, dword [r13 + 0x4c]
mov eax, r8d
sub eax, r10d
cmp edx, eax
jbe 0x4101c922
sub edx, eax
cmp edx, dword [r13 + 0x30]
jbe 0x4101c8f8
cmp dword [r13 + 0x1bd8], 0
je 0x4101c8f8
lea rax, str.invalid_distance_too_far_back
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov eax, dword [r13 + 0x34]
cmp edx, eax
jbe 0x4101c90e
mov ecx, dword [r13 + 0x2c]
sub edx, eax
sub ecx, edx
add rcx, qword [r13 + 0x38]
jmp 0x4101c916
sub eax, edx
mov ecx, eax
add rcx, qword [r13 + 0x38]
mov eax, dword [r13 + 0x48]
cmp edx, eax
jbe 0x4101c92e
mov edx, eax
jmp 0x4101c92e
mov eax, dword [r13 + 0x48]
mov rcx, r9
sub rcx, rdx
mov edx, eax
cmp edx, r10d
cmova edx, r10d
sub r10d, edx
sub eax, edx
mov dword [r13 + 0x48], eax
mov dword [rsp + 0xb0], r10d
nop
nop
nop
movzx eax, byte [rcx]
add r9, 1
add rcx, 1
add edx, 0xffffffff
mov byte [r9 - 1], al
jne 0x4101c950
cmp dword [r13 + 0x48], edx
mov qword [rsp + 0x40], r9
jne 0x4101cb16
mov dword [r13], 0x14
jmp 0x4101cb16
test r10d, r10d
je 0x4101cbe3
movzx eax, byte [r13 + 0x48]
add r9, 1
add r10d, 0xffffffff
mov byte [r9 - 1], al
mov dword [rsp + 0xb0], r10d
mov qword [rsp + 0x40], r9
mov dword [r13], 0x14
jmp 0x4101cb16
cmp dword [r13 + 8], 0
je 0x4101caa7
cmp edi, 0x20
jae 0x4101c9e6
test esi, esi
je 0x4101cbcf
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x20
jb 0x4101c9c4
sub r8d, r10d
add dword [r15 + 0x1c], r8d
add dword [r13 + 0x1c], r8d
test r8d, r8d
je 0x4101ca4c
cmp dword [r13 + 0x10], 0
je 0x4101ca25
mov eax, r8d
mov rdx, r9
sub rdx, rax
jne 0x4101ca0d
mov eax, r14d
jmp 0x4101ca44
mov ecx, dword [r13 + 0x18]
call fcn.4101d440
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
jmp 0x4101ca44
mov ecx, dword [r13 + 0x18]
mov eax, r8d
mov rdx, r9
sub rdx, rax
call fcn.4101d120
mov r9, qword [rsp + 0x40]
mov r10d, dword [rsp + 0xb0]
mov dword [r13 + 0x18], eax
mov dword [r15 + 0x4c], eax
cmp dword [r13 + 0x10], 0
mov dword [rsp + 0x30], r10d
je 0x4101ca5d
mov ecx, r12d
jmp 0x4101ca86
mov ecx, r12d
mov eax, r12d
shl eax, 0x10
and ecx, 0xff00
add ecx, eax
mov eax, r12d
shr eax, 8
shl ecx, 8
and eax, 0xff00
add ecx, eax
mov eax, r12d
shr eax, 0x18
add ecx, eax
cmp ecx, dword [r13 + 0x18]
je 0x4101caa1
lea rax, str.incorrect_data_check
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r12d, r14d
mov edi, r14d
mov dword [r13], 0x1b
cmp dword [r13 + 8], 0
je 0x4101cb92
cmp dword [r13 + 0x10], 0
je 0x4101cb92
cmp edi, 0x20
jae 0x4101caf2
nop
nop
test esi, esi
je 0x4101cbbb
movzx eax, byte [rbp]
mov ecx, edi
add edi, 8
shl eax, cl
add esi, 0xffffffff
add rbp, 1
add r12d, eax
cmp edi, 0x20
jb 0x4101cad0
cmp r12d, dword [r13 + 0x1c]
je 0x4101cb8c
lea rax, str.incorrect_length_check
mov qword [r15 + 0x20], rax
mov dword [r13], 0x1d
jmp 0x4101cb16
mov r9, qword [rsp + 0x40]
mov eax, dword [r13]
cmp eax, 0x1e
ja case.default.0x4101b55d
mov r8d, dword [rsp + 0x30]
mov edx, dword [rsp + 0xa8]
mov ebx, 1
xor r14d, r14d
lea r11, [0x41000000]
jmp 0x4101b550
mov qword [r15 + 0x10], r9
mov dword [r15 + 0x18], r10d
mov qword [r15], rbp
mov dword [r15 + 8], esi
mov eax, 2
mov dword [r13 + 0x40], r12d
mov dword [r13 + 0x44], edi
mov rbx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov r12, qword [rsp + 0x60]
mov r14, qword [rsp + 0x58]
add rsp, 0x88
pop r15
pop r13
ret
mov r12d, r14d
mov edi, r14d
mov dword [r13], 0x1c
mov ecx, dword [rsp + 0xa8]
mov r14d, ebx
jmp 0x4101ce49
mov ecx, dword [rsp + 0xa8]
mov r14d, 0xfffffffd
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
jmp 0x4101ce49
mov r14d, dword [rsp + 0xa0]
mov ecx, dword [rsp + 0xa8]
mov rax, qword [rsp + 0x40]
mov qword [r15], rbp
mov dword [r15 + 8], esi
mov qword [r15 + 0x10], rax
mov eax, dword [rsp + 0xb0]
mov dword [r15 + 0x18], eax
cmp dword [r13 + 0x2c], 0
mov dword [r13 + 0x40], r12d
mov dword [r13 + 0x44], edi
jne 0x4101cea1
mov r12d, dword [rsp + 0x30]
cmp r12d, dword [r15 + 0x18]
je 0x4101cf9e
mov eax, dword [r13]
cmp eax, 0x1d
jge 0x4101cf99
cmp eax, 0x1a
jl 0x4101cea6
cmp ecx, 4
jne 0x4101cea6
xor r9d, r9d
jmp 0x4101cfa1
mov r12d, dword [rsp + 0x30]
mov rbx, qword [r15 + 0x28]
mov rbp, qword [r15 + 0x10]
mov esi, r12d
sub esi, dword [r15 + 0x18]
cmp qword [rbx + 0x38], 0
jne 0x4101ceee
mov ecx, dword [rbx + 0x28]
mov edi, 1
mov edx, edi
mov r8d, edi
shl edx, cl
mov rcx, qword [r15 + 0x40]
call qword [r15 + 0x30]
test rax, rax
mov qword [rbx + 0x38], rax
jne 0x4101cef3
mov dword [r13], 0x1e
mov eax, 0xfffffffc
jmp 0x4101cb5f
mov edi, 1
cmp dword [rbx + 0x2c], 0
jne 0x4101cf09
mov ecx, dword [rbx + 0x28]
shl edi, cl
xor eax, eax
mov dword [rbx + 0x34], eax
mov dword [rbx + 0x30], eax
mov dword [rbx + 0x2c], edi
mov edi, dword [rbx + 0x2c]
cmp esi, edi
jb 0x4101cf31
mov rcx, qword [rbx + 0x38]
sub rbp, rdi
mov r8, rdi
mov rdx, rbp
call fcn.41217500
mov eax, dword [rbx + 0x2c]
xor r9d, r9d
mov dword [rbx + 0x30], eax
mov dword [rbx + 0x34], r9d
jmp 0x4101cfa1
sub edi, dword [rbx + 0x34]
mov ecx, dword [rbx + 0x34]
mov eax, esi
cmp edi, esi
mov rdx, rbp
cmova edi, esi
add rcx, qword [rbx + 0x38]
sub rdx, rax
mov r8d, edi
call fcn.41217500
sub esi, edi
je 0x4101cf74
mov rcx, qword [rbx + 0x38]
mov r8d, esi
sub rbp, r8
mov rdx, rbp
call fcn.41217500
mov eax, dword [rbx + 0x2c]
mov dword [rbx + 0x34], esi
mov dword [rbx + 0x30], eax
xor r9d, r9d
jmp 0x4101cfa1
mov ecx, dword [rbx + 0x2c]
add dword [rbx + 0x34], edi
cmp dword [rbx + 0x34], ecx
jne 0x4101cf88
xor r9d, r9d
mov dword [rbx + 0x34], r9d
jmp 0x4101cf8b
xor r9d, r9d
mov eax, dword [rbx + 0x30]
cmp eax, ecx
jae 0x4101cfa1
add eax, edi
mov dword [rbx + 0x30], eax
jmp 0x4101cfa1
xor r9d, r9d
jmp 0x4101cfa1
xor r9d, r9d
sub r12d, dword [r15 + 0x18]
mov r10d, dword [rsp + 0x38]
sub r10d, dword [r15 + 8]
add dword [r15 + 0x1c], r12d
add dword [r15 + 0xc], r10d
add dword [r13 + 0x1c], r12d
cmp dword [r13 + 8], 0
mov dword [rsp + 0x38], r10d
je 0x4101d01f
test r12d, r12d
je 0x4101d01f
cmp dword [r13 + 0x10], 0
je 0x4101cff9
mov rdx, qword [r15 + 0x10]
mov eax, r12d
sub rdx, rax
jne 0x4101cfe3
mov eax, r9d
jmp 0x4101d017
mov ecx, dword [r13 + 0x18]
mov r8d, r12d
call fcn.4101d440
mov r10d, dword [rsp + 0x38]
xor r9d, r9d
jmp 0x4101d017
mov rdx, qword [r15 + 0x10]
mov ecx, dword [r13 + 0x18]
mov eax, r12d
sub rdx, rax
mov r8d, r12d
call fcn.4101d120
mov r10d, dword [rsp + 0x38]
xor r9d, r9d
mov dword [r13 + 0x18], eax
mov dword [r15 + 0x4c], eax
mov edx, dword [r13]
cmp edx, 0x13
je 0x4101d032
cmp edx, 0xe
je 0x4101d032
mov r8d, r9d
jmp 0x4101d038
mov r8d, 0x100
mov eax, dword [r13 + 4]
neg eax
mov eax, 0x80
sbb ecx, ecx
and ecx, 0x40
cmp edx, 0xb
cmove r9d, eax
lea eax, [r8 + rcx]
add r9d, eax
add r9d, dword [r13 + 0x44]
test r10d, r10d
mov dword [r15 + 0x48], r9d
jne 0x4101d068
test r12d, r12d
je 0x4101d072
cmp dword [rsp + 0xa8], 4
jne 0x4101d07e
mov eax, 0xfffffffb
test r14d, r14d
cmove r14d, eax
mov eax, r14d
jmp 0x4101cb5f
mov eax, 0xfffffffe
jmp 0x4101cb5f
mov eax, 0xfffffffe
add rsp, 0x88
pop r15
pop r13
ret