// File: allardlamberink[P]fritz-curl/fritz-curl.cpp
// Function: getXmlProp(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string getXmlProp(string xmlstring, string xpath)
{
	string retval = "Error reading XML property";

	//// Read the XML config string into the property tree. Catch any exception
	try {
		ptree pt;
		stringstream xmlstream; xmlstream << xmlstring;
		read_xml(xmlstream, pt);
		retval = pt.get<std::string>(xpath);
	}
	catch (std::exception &e)
	{
		std::cout << "Error reading xml property: " << e.what() << "\n";
	}
	return retval;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x280, %rsp            # imm = 0x280
movq %rdx, -0x268(%rbp)
movq %rsi, -0x260(%rbp)
movq %rdi, -0x250(%rbp)
movq %rdi, %rax
movq %rax, -0x258(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
leaq -0x1a(%rbp), %rdi
movq %rdi, -0x248(%rbp)
callq 0x4590
movq -0x250(%rbp), %rdi
movq -0x248(%rbp), %rdx
leaq 0x17e5f(%rip), %rsi     # 0x1d0ae
callq 0x72c0
jmp 0x5256
leaq -0x1a(%rbp), %rdi
callq 0x4670
leaq -0x58(%rbp), %rdi
callq 0x75a0
jmp 0x526a
leaq -0x1e0(%rbp), %rdi
callq 0x4250
jmp 0x5278
movq -0x260(%rbp), %rsi
leaq -0x1d0(%rbp), %rdi
callq 0x4240
jmp 0x528d
leaq -0x1e0(%rbp), %rdi
leaq -0x58(%rbp), %rsi
xorl %edx, %edx
callq 0x7630
jmp 0x52a1
movq -0x268(%rbp), %rsi
leaq -0x230(%rbp), %rdi
movl $0x2e, %edx
callq 0x7700
jmp 0x52bb
leaq -0x200(%rbp), %rdi
leaq -0x58(%rbp), %rsi
leaq -0x230(%rbp), %rdx
callq 0x76b0
jmp 0x52d4
movq -0x250(%rbp), %rdi
leaq -0x200(%rbp), %rsi
callq 0x4380
leaq -0x200(%rbp), %rdi
callq 0x4688
leaq -0x230(%rbp), %rdi
callq 0x7750
leaq -0x1e0(%rbp), %rdi
callq 0x42a0
leaq -0x58(%rbp), %rdi
callq 0x7770
jmp 0x540c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x1a(%rbp), %rdi
callq 0x4670
jmp 0x5463
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x538a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x5381
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x5375
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x230(%rbp), %rdi
callq 0x7750
leaq -0x1e0(%rbp), %rdi
callq 0x42a0
leaq -0x58(%rbp), %rdi
callq 0x7770
movl -0x2c(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x5457
movq -0x28(%rbp), %rdi
callq 0x40a0
movq %rax, -0x240(%rbp)
movq 0x23c0f(%rip), %rdi     # 0x28fc0
leaq 0x17d11(%rip), %rsi     # 0x1d0c9
callq 0x43b0
movq %rax, -0x270(%rbp)
jmp 0x53c6
movq -0x240(%rbp), %rdi
movq (%rdi), %rax
movq 0x10(%rax), %rax
callq *%rax
movq -0x270(%rbp), %rdi
movq %rax, %rsi
callq 0x43b0
movq %rax, -0x278(%rbp)
jmp 0x53ee
movq -0x278(%rbp), %rdi
leaq 0x18155(%rip), %rsi     # 0x1d551
callq 0x43b0
jmp 0x5403
callq 0x4470
jmp 0x540a
jmp 0x540c
movb $0x1, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0x5447
jmp 0x543b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
callq 0x4470
jmp 0x5439
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
jmp 0x5457
jmp 0x5457
movq -0x250(%rbp), %rdi
callq 0x4688
movq -0x258(%rbp), %rax
addq $0x280, %rsp            # imm = 0x280
popq %rbp
retq
movq -0x250(%rbp), %rdi
callq 0x4688
movq -0x28(%rbp), %rdi
callq 0x43f0
movq %rax, %rdi
callq 0x77d0
nopw %cs:(%rax,%rax)