// File: mniip[P]sandbox/config.cpp
// Function: process_line(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_istringstream<char, std::char_traits<char>, std::allocator<char>>&)
static void process_line(std::string key, std::istringstream &iss)
{
	if(key == "program")
	{
		iss >> conf_program;
	}
	else if(key == "arg")
	{
		std::string arg;
		if(iss >> arg)
			conf_arg.push_back(arg);
	}
	else if(key == "closefds")
	{
		conf_closefds = true;
	}
	else if(key == "clearenv")
	{
		conf_clearenv = true;
	}
	else if(key == "unsetenv")
	{
		std::string env;
		if(iss >> env)
			conf_unsetenv.push_back(env);
	}
	else if(key == "setenv")
	{
		std::string env, val;
		if(iss >> env >> val)
			conf_setenv.push_back(std::make_pair(env, val));
	}
	else if(key == "see")
	{
		std::string path;
		if(iss >> path)
			conf_see.push_back(path);
	}
	else if(key == "write")
	{
		std::string path;
		if(iss >> path)
			conf_write.push_back(path);
	}
	else if(key == "maxthreads")
	{
		int th;
		if(iss >> th)
			conf_maxthreads = th;
	}
	else if(key == "chdir")
	{
		if(iss >> conf_chdirto)
			conf_chdir = true;
	}
	else if(key == "rlimit")
	{
		std::string name;
		rlim_t value;
		if(iss >> name >> value)
			if(rlim_name.find(name) != rlim_name.end())
				conf_rlimit.push_back(std::make_pair(rlim_name[name], value));
	}
	else if(key == "http")
	{
		std::string url;
		if(iss >> url)
			conf_http.push_back(url);
	}
	else if(key == "downloadpat")
	{
		std::string pat;
		if(iss >> pat)
			conf_downloadpat = pat;
	}
	else if(key == "sockdir")
	{
		std::string dir;
		if(iss >> dir)
			conf_sockdir = dir;
	}
	else if(key == "wakeup")
	{
		conf_wakeup = true;
	}
	else if(key == "timelimit")
	{
		int limit;
		if(iss >> limit)
			conf_timelimit = limit;
	}
	else if(key == "report")
	{
		conf_report = true;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2f0, %rsp            # imm = 0x2F0
movq %rdi, -0x1e0(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
leaq 0x5f7d(%rip), %rsi      # 0x1c4fe
callq 0x72a0
testb $0x1, %al
jne 0x1658c
jmp 0x165a1
movq -0x10(%rbp), %rdi
leaq 0x10ff1(%rip), %rsi     # 0x27588
callq 0x5630
jmp 0x16ed3
movq -0x1e0(%rbp), %rdi
leaq 0x5f57(%rip), %rsi      # 0x1c506
callq 0x72a0
testb $0x1, %al
jne 0x165bd
jmp 0x1664c
leaq -0x30(%rbp), %rdi
movq %rdi, -0x1f0(%rbp)
callq 0x5700
movq -0x1f0(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x1e8(%rbp)
jmp 0x165e6
movq -0x1e8(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x1f1(%rbp)
jmp 0x16604
movb -0x1f1(%rbp), %al
testb $0x1, %al
jne 0x16610
jmp 0x1663e
leaq 0x10f91(%rip), %rdi     # 0x275a8
leaq -0x30(%rbp), %rsi
callq 0x17b00
jmp 0x16622
jmp 0x1663e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
leaq -0x30(%rbp), %rdi
callq 0x59b8
jmp 0x16ed1
movq -0x1e0(%rbp), %rdi
leaq 0x5eb0(%rip), %rsi      # 0x1c50a
callq 0x72a0
testb $0x1, %al
jne 0x16665
jmp 0x16671
movb $0x1, 0x10f54(%rip)     # 0x275c0
jmp 0x16ecf
movq -0x1e0(%rbp), %rdi
leaq 0x5e94(%rip), %rsi      # 0x1c513
callq 0x72a0
testb $0x1, %al
jne 0x1668a
jmp 0x16696
movb $0x1, 0x10f30(%rip)     # 0x275c1
jmp 0x16ecd
movq -0x1e0(%rbp), %rdi
leaq 0x5e78(%rip), %rsi      # 0x1c51c
callq 0x72a0
testb $0x1, %al
jne 0x166b2
jmp 0x16741
leaq -0x60(%rbp), %rdi
movq %rdi, -0x208(%rbp)
callq 0x5700
movq -0x208(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x200(%rbp)
jmp 0x166db
movq -0x200(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x209(%rbp)
jmp 0x166f9
movb -0x209(%rbp), %al
testb $0x1, %al
jne 0x16705
jmp 0x16733
leaq 0x10ed4(%rip), %rdi     # 0x275e0
leaq -0x60(%rbp), %rsi
callq 0x17b00
jmp 0x16717
jmp 0x16733
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
leaq -0x60(%rbp), %rdi
callq 0x59b8
jmp 0x16ecb
movq -0x1e0(%rbp), %rdi
leaq 0x5dcf(%rip), %rsi      # 0x1c51e
callq 0x72a0
testb $0x1, %al
jne 0x1675d
jmp 0x16870
leaq -0x80(%rbp), %rdi
movq %rdi, -0x220(%rbp)
callq 0x5700
leaq -0xa0(%rbp), %rdi
callq 0x5700
movq -0x220(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x218(%rbp)
jmp 0x16792
movq -0x218(%rbp), %rdi
leaq -0xa0(%rbp), %rsi
callq 0x5630
movq %rax, -0x228(%rbp)
jmp 0x167ae
movq -0x228(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x229(%rbp)
jmp 0x167cc
movb -0x229(%rbp), %al
testb $0x1, %al
jne 0x167d8
jmp 0x1683c
leaq -0xe0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
leaq -0xa0(%rbp), %rdx
callq 0x17ba0
jmp 0x167f1
leaq 0x10dd0(%rip), %rdi     # 0x275c8
leaq -0xe0(%rbp), %rsi
callq 0x17b70
jmp 0x16806
leaq -0xe0(%rbp), %rdi
callq 0x17be0
jmp 0x1683c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x16856
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0xe0(%rbp), %rdi
callq 0x17be0
jmp 0x16856
leaq -0xa0(%rbp), %rdi
callq 0x59b8
leaq -0x80(%rbp), %rdi
callq 0x59b8
jmp 0x16ec9
leaq -0xa0(%rbp), %rdi
callq 0x59b8
leaq -0x80(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
movq -0x1e0(%rbp), %rdi
leaq 0x5ca7(%rip), %rsi      # 0x1c525
callq 0x72a0
testb $0x1, %al
jne 0x1688c
jmp 0x16927
leaq -0x100(%rbp), %rdi
movq %rdi, -0x240(%rbp)
callq 0x5700
movq -0x240(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x238(%rbp)
jmp 0x168b8
movq -0x238(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x241(%rbp)
jmp 0x168d6
movb -0x241(%rbp), %al
testb $0x1, %al
jne 0x168e2
jmp 0x16916
leaq 0x10d0f(%rip), %rdi     # 0x275f8
leaq -0x100(%rbp), %rsi
callq 0x17b00
jmp 0x168f7
jmp 0x16916
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x100(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
leaq -0x100(%rbp), %rdi
callq 0x59b8
jmp 0x16ec7
movq -0x1e0(%rbp), %rdi
leaq 0x5bf4(%rip), %rsi      # 0x1c529
callq 0x72a0
testb $0x1, %al
jne 0x16943
jmp 0x169de
leaq -0x120(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x5700
movq -0x258(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x250(%rbp)
jmp 0x1696f
movq -0x250(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x259(%rbp)
jmp 0x1698d
movb -0x259(%rbp), %al
testb $0x1, %al
jne 0x16999
jmp 0x169cd
leaq 0x10c70(%rip), %rdi     # 0x27610
leaq -0x120(%rbp), %rsi
callq 0x17b00
jmp 0x169ae
jmp 0x169cd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x120(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
leaq -0x120(%rbp), %rdi
callq 0x59b8
jmp 0x16ec5
movq -0x1e0(%rbp), %rdi
leaq 0x5b43(%rip), %rsi      # 0x1c52f
callq 0x72a0
testb $0x1, %al
jne 0x169f7
jmp 0x16a2d
movq -0x10(%rbp), %rdi
leaq -0x124(%rbp), %rsi
callq 0x5300
movq %rax, %rdi
movq (%rdi), %rax
addq -0x18(%rax), %rdi
callq 0x5620
testb $0x1, %al
jne 0x16a1c
jmp 0x16a28
movl -0x124(%rbp), %eax
movl %eax, 0x10ad4(%rip)     # 0x274fc
jmp 0x16ec3
movq -0x1e0(%rbp), %rdi
leaq 0x5aff(%rip), %rsi      # 0x1c53a
callq 0x72a0
testb $0x1, %al
jne 0x16a46
jmp 0x16a77
movq -0x10(%rbp), %rdi
leaq 0x10bdf(%rip), %rsi     # 0x27630
callq 0x5630
movq %rax, %rdi
movq (%rdi), %rax
addq -0x18(%rax), %rdi
callq 0x5620
testb $0x1, %al
jne 0x16a6b
jmp 0x16a72
movb $0x1, 0x10bb6(%rip)     # 0x27628
jmp 0x16ec1
movq -0x1e0(%rbp), %rdi
leaq 0x5abb(%rip), %rsi      # 0x1c540
callq 0x72a0
testb $0x1, %al
jne 0x16a93
jmp 0x16c00
leaq -0x148(%rbp), %rdi
movq %rdi, -0x270(%rbp)
callq 0x5700
movq -0x270(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x268(%rbp)
jmp 0x16abf
movq -0x268(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x5750
movq %rax, -0x278(%rbp)
jmp 0x16adb
movq -0x278(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x279(%rbp)
jmp 0x16af9
movb -0x279(%rbp), %al
testb $0x1, %al
jne 0x16b08
jmp 0x16bef
leaq 0x10bb9(%rip), %rdi     # 0x276c8
leaq -0x148(%rbp), %rsi
callq 0x17c40
movq %rax, -0x288(%rbp)
jmp 0x16b24
movq -0x288(%rbp), %rax
movq %rax, -0x158(%rbp)
leaq 0x10b8f(%rip), %rdi     # 0x276c8
callq 0x17c70
movq %rax, -0x160(%rbp)
leaq -0x158(%rbp), %rdi
leaq -0x160(%rbp), %rsi
callq 0x17c10
testb $0x1, %al
jne 0x16b61
jmp 0x16bed
leaq 0x10b60(%rip), %rdi     # 0x276c8
leaq -0x148(%rbp), %rsi
callq 0x17d00
movq %rax, -0x290(%rbp)
jmp 0x16b7d
movq -0x290(%rbp), %rdi
leaq -0x150(%rbp), %rsi
callq 0x17cd0
movq %rdx, -0x2a0(%rbp)
movl %eax, -0x294(%rbp)
jmp 0x16b9f
movq -0x2a0(%rbp), %rax
movl -0x294(%rbp), %ecx
movl %ecx, -0x170(%rbp)
movq %rax, -0x168(%rbp)
leaq 0x10a90(%rip), %rdi     # 0x27650
leaq -0x170(%rbp), %rsi
callq 0x17ca0
jmp 0x16bce
jmp 0x16bed
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x148(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
jmp 0x16bef
leaq -0x148(%rbp), %rdi
callq 0x59b8
jmp 0x16ebf
movq -0x1e0(%rbp), %rdi
leaq 0x5939(%rip), %rsi      # 0x1c547
callq 0x72a0
testb $0x1, %al
jne 0x16c1c
jmp 0x16cb7
leaq -0x190(%rbp), %rdi
movq %rdi, -0x2b0(%rbp)
callq 0x5700
movq -0x2b0(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x2a8(%rbp)
jmp 0x16c48
movq -0x2a8(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x2b1(%rbp)
jmp 0x16c66
movb -0x2b1(%rbp), %al
testb $0x1, %al
jne 0x16c72
jmp 0x16ca6
leaq 0x109ef(%rip), %rdi     # 0x27668
leaq -0x190(%rbp), %rsi
callq 0x17b00
jmp 0x16c87
jmp 0x16ca6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x190(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
leaq -0x190(%rbp), %rdi
callq 0x59b8
jmp 0x16ebd
movq -0x1e0(%rbp), %rdi
leaq 0x5887(%rip), %rsi      # 0x1c54c
callq 0x72a0
testb $0x1, %al
jne 0x16cd3
jmp 0x16d6e
leaq -0x1b0(%rbp), %rdi
movq %rdi, -0x2c8(%rbp)
callq 0x5700
movq -0x2c8(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x2c0(%rbp)
jmp 0x16cff
movq -0x2c0(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x2c9(%rbp)
jmp 0x16d1d
movb -0x2c9(%rbp), %al
testb $0x1, %al
jne 0x16d29
jmp 0x16d5d
leaq 0x10950(%rip), %rdi     # 0x27680
leaq -0x1b0(%rbp), %rsi
callq 0x5050
jmp 0x16d3e
jmp 0x16d5d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x1b0(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
leaq -0x1b0(%rbp), %rdi
callq 0x59b8
jmp 0x16ebb
movq -0x1e0(%rbp), %rdi
leaq 0x57dc(%rip), %rsi      # 0x1c558
callq 0x72a0
testb $0x1, %al
jne 0x16d8a
jmp 0x16e25
leaq -0x1d0(%rbp), %rdi
movq %rdi, -0x2e0(%rbp)
callq 0x5700
movq -0x2e0(%rbp), %rsi
movq -0x10(%rbp), %rdi
callq 0x5630
movq %rax, -0x2d8(%rbp)
jmp 0x16db6
movq -0x2d8(%rbp), %rdi
movq (%rdi), %rax
movq -0x18(%rax), %rax
addq %rax, %rdi
callq 0x5620
movb %al, -0x2e1(%rbp)
jmp 0x16dd4
movb -0x2e1(%rbp), %al
testb $0x1, %al
jne 0x16de0
jmp 0x16e14
leaq 0x108b9(%rip), %rdi     # 0x276a0
leaq -0x1d0(%rbp), %rsi
callq 0x5050
jmp 0x16df5
jmp 0x16e14
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x1d0(%rbp), %rdi
callq 0x59b8
jmp 0x16edc
leaq -0x1d0(%rbp), %rdi
callq 0x59b8
jmp 0x16eb9
movq -0x1e0(%rbp), %rdi
leaq 0x572d(%rip), %rsi      # 0x1c560
callq 0x72a0
testb $0x1, %al
jne 0x16e3e
jmp 0x16e47
movb $0x1, 0x1087b(%rip)     # 0x276c0
jmp 0x16eb7
movq -0x1e0(%rbp), %rdi
leaq 0x5712(%rip), %rsi      # 0x1c567
callq 0x72a0
testb $0x1, %al
jne 0x16e60
jmp 0x16e93
movq -0x10(%rbp), %rdi
leaq -0x1d4(%rbp), %rsi
callq 0x5300
movq %rax, %rdi
movq (%rdi), %rax
addq -0x18(%rax), %rdi
callq 0x5620
testb $0x1, %al
jne 0x16e85
jmp 0x16e91
movl -0x1d4(%rbp), %eax
movl %eax, 0x1066f(%rip)     # 0x27500
jmp 0x16eb5
movq -0x1e0(%rbp), %rdi
leaq 0x56d0(%rip), %rsi      # 0x1c571
callq 0x72a0
testb $0x1, %al
jne 0x16eac
jmp 0x16eb3
movb $0x1, 0x1080e(%rip)     # 0x276c1
jmp 0x16eb5
jmp 0x16eb7
jmp 0x16eb9
jmp 0x16ebb
jmp 0x16ebd
jmp 0x16ebf
jmp 0x16ec1
jmp 0x16ec3
jmp 0x16ec5
jmp 0x16ec7
jmp 0x16ec9
jmp 0x16ecb
jmp 0x16ecd
jmp 0x16ecf
jmp 0x16ed1
jmp 0x16ed3
addq $0x2f0, %rsp            # imm = 0x2F0
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x58f0
nopw %cs:(%rax,%rax)
nop