// File: mniip[P]sandbox/main.cpp
// Function: TracedThread::can_write_path(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, int&)
bool can_write_path(std::string path, int at, int &error)
	{
		std::string canon = canon_path_at(tid, at, path);
		std::string cwd = canon_path_at(tid, AT_FDCWD, "");
		if(in_dir(cwd + "/http:", canon) || in_dir(cwd + "/https:", canon))
		{
			error = -EEXIST;
			return false;
		}
		for(std::vector<std::string>::const_iterator i = conf_write.begin(), end = conf_write.end(); i != end; i++)
			if(in_dir(*i, canon))
				return true;
		if(conf_report)
			if(at == AT_FDCWD)
				printf("[Write %s=%s]\n", path.c_str(), canon.c_str());
			else
				printf("[Write (%d)%s=%s]\n", at, path.c_str(), canon.c_str());
		return false;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x210, %rsp            # imm = 0x210
movq %rsi, -0x1d8(%rbp)
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq %rcx, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x1d0(%rbp)
movl 0x8(%rax), %eax
movl %eax, -0x1c8(%rbp)
movl -0x1c(%rbp), %eax
movl %eax, -0x1c4(%rbp)
leaq -0x68(%rbp), %rdi
movq %rdi, -0x1c0(%rbp)
callq 0x5210
movl -0x1c8(%rbp), %esi
movl -0x1c4(%rbp), %edx
movq -0x1c0(%rbp), %rcx
leaq -0x48(%rbp), %rdi
callq 0x137a0
jmp 0xff8c
leaq -0x68(%rbp), %rdi
callq 0x59b8
movq -0x1d0(%rbp), %rax
movl 0x8(%rax), %eax
movl %eax, -0x1e4(%rbp)
leaq -0xb9(%rbp), %rdi
movq %rdi, -0x1e0(%rbp)
callq 0x5900
movq -0x1e0(%rbp), %rdx
leaq 0xc0d9(%rip), %rsi      # 0x1c09f
leaq -0xb8(%rbp), %rdi
callq 0x72d0
jmp 0xffd4
movl -0x1e4(%rbp), %esi
leaq -0x98(%rbp), %rdi
movl $0xffffff9c, %edx       # imm = 0xFFFFFF9C
leaq -0xb8(%rbp), %rcx
callq 0x137a0
jmp 0xfff4
leaq -0xb8(%rbp), %rdi
callq 0x59b8
leaq -0xb9(%rbp), %rdi
callq 0x5560
movb $0x0, -0x121(%rbp)
movb $0x0, -0x149(%rbp)
leaq 0xc162(%rip), %rdx      # 0x1c183
leaq -0xe0(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x10ec0
jmp 0x10036
leaq -0x100(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x5210
jmp 0x10048
leaq -0xe0(%rbp), %rdi
leaq -0x100(%rbp), %rsi
callq 0x14090
movb %al, -0x1e5(%rbp)
jmp 0x10063
movb -0x1e5(%rbp), %cl
movb $0x1, %al
testb $0x1, %cl
movb %al, -0x1e6(%rbp)
jne 0x100dd
jmp 0x10078
leaq 0xc10b(%rip), %rdx      # 0x1c18a
leaq -0x120(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0x10ec0
jmp 0x10094
movb $0x1, -0x121(%rbp)
leaq -0x148(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x5210
jmp 0x100ad
movb $0x1, -0x149(%rbp)
leaq -0x120(%rbp), %rdi
leaq -0x148(%rbp), %rsi
callq 0x14090
movb %al, -0x1e7(%rbp)
jmp 0x100cf
movb -0x1e7(%rbp), %al
movb %al, -0x1e6(%rbp)
jmp 0x100dd
movb -0x1e6(%rbp), %al
movb %al, -0x1e8(%rbp)
testb $0x1, -0x149(%rbp)
jne 0x100f4
jmp 0x10100
leaq -0x148(%rbp), %rdi
callq 0x59b8
testb $0x1, -0x121(%rbp)
jne 0x1010b
jmp 0x10117
leaq -0x120(%rbp), %rdi
callq 0x59b8
leaq -0x100(%rbp), %rdi
callq 0x59b8
leaq -0xe0(%rbp), %rdi
callq 0x59b8
movb -0x1e8(%rbp), %al
testb $0x1, %al
jne 0x1013e
jmp 0x10242
movq -0x28(%rbp), %rax
movl $0xffffffef, (%rax)     # imm = 0xFFFFFFEF
movb $0x0, -0x1(%rbp)
movl $0x1, -0x150(%rbp)
jmp 0x10423
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x68(%rbp), %rdi
callq 0x59b8
jmp 0x1045b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x1019b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x59b8
leaq -0xb9(%rbp), %rdi
callq 0x5560
jmp 0x10452
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x10446
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x10231
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x10225
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x1020c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
testb $0x1, -0x149(%rbp)
jne 0x101fe
jmp 0x1020a
leaq -0x148(%rbp), %rdi
callq 0x59b8
jmp 0x1020c
testb $0x1, -0x121(%rbp)
jne 0x10217
jmp 0x10223
leaq -0x120(%rbp), %rdi
callq 0x59b8
jmp 0x10225
leaq -0x100(%rbp), %rdi
callq 0x59b8
leaq -0xe0(%rbp), %rdi
callq 0x59b8
jmp 0x10446
leaq 0x173c7(%rip), %rdi     # 0x27610
callq 0x7020
movq %rax, -0x160(%rbp)
leaq -0x158(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x7050
leaq 0x173a1(%rip), %rdi     # 0x27610
callq 0x7090
movq %rax, -0x170(%rbp)
leaq -0x168(%rbp), %rdi
leaq -0x170(%rbp), %rsi
callq 0x7050
leaq -0x158(%rbp), %rdi
leaq -0x168(%rbp), %rsi
callq 0x70c0
testb $0x1, %al
jne 0x102aa
jmp 0x1037e
leaq -0x158(%rbp), %rdi
callq 0x10ea0
movq %rax, %rsi
leaq -0x190(%rbp), %rdi
callq 0x5210
jmp 0x102c7
leaq -0x1b0(%rbp), %rdi
leaq -0x48(%rbp), %rsi
callq 0x5210
jmp 0x102d9
leaq -0x190(%rbp), %rdi
leaq -0x1b0(%rbp), %rsi
callq 0x14090
movb %al, -0x1e9(%rbp)
jmp 0x102f4
leaq -0x1b0(%rbp), %rdi
callq 0x59b8
leaq -0x190(%rbp), %rdi
callq 0x59b8
movb -0x1e9(%rbp), %al
testb $0x1, %al
jne 0x10318
jmp 0x10362
movb $0x1, -0x1(%rbp)
movl $0x1, -0x150(%rbp)
jmp 0x10423
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x10351
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x59b8
leaq -0x190(%rbp), %rdi
callq 0x59b8
jmp 0x10446
jmp 0x10364
leaq -0x158(%rbp), %rdi
xorl %esi, %esi
callq 0x7120
movq %rax, -0x1b8(%rbp)
jmp 0x1028e
leaq 0x1733c(%rip), %rax     # 0x276c1
testb $0x1, (%rax)
je 0x10415
cmpl $-0x64, -0x1c(%rbp)
jne 0x103cc
movq -0x1d8(%rbp), %rdi
callq 0x5200
movq %rax, -0x1f8(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x5200
movq -0x1f8(%rbp), %rsi
movq %rax, %rdx
leaq 0xbdd1(%rip), %rdi      # 0x1c192
xorl %eax, %eax
callq 0x5070
jmp 0x103ca
jmp 0x10413
movq -0x1d8(%rbp), %rdi
movl -0x1c(%rbp), %eax
movl %eax, -0x204(%rbp)
callq 0x5200
movq %rax, -0x200(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x5200
movl -0x204(%rbp), %esi
movq -0x200(%rbp), %rdx
movq %rax, %rcx
leaq 0xbd99(%rip), %rdi      # 0x1c1a1
xorl %eax, %eax
callq 0x5070
jmp 0x10411
jmp 0x10413
jmp 0x10415
movb $0x0, -0x1(%rbp)
movl $0x1, -0x150(%rbp)
leaq -0x98(%rbp), %rdi
callq 0x59b8
leaq -0x48(%rbp), %rdi
callq 0x59b8
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x210, %rsp            # imm = 0x210
popq %rbp
retq
leaq -0x98(%rbp), %rdi
callq 0x59b8
leaq -0x48(%rbp), %rdi
callq 0x59b8
movq -0x70(%rbp), %rdi
callq 0x58f0
nopw %cs:(%rax,%rax)
nop