Function at 0x401688
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push rbp
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x80]
mov qword [rbp], rcx
mov ecx, 0
mov rax, qword [sym.imp.USER32.dll_OpenClipboard]
call rax
test eax, eax
sete al
test al, al
je 0x401707
lea rdx, str.Failed_to_open_clipboard
mov rcx, qword [0x004b8f80]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
lea rax, [rbp - 0x34]
mov rcx, rax
call fcn.004679e0
lea rax, [rbp - 0x34]
mov r8, rax
lea rdx, [0x004b404e]
mov rcx, qword [rbp]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
lea rax, [rbp - 0x34]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
jmp 0x4018e4
mov ecx, 0xd
mov rax, qword [sym.imp.USER32.dll_GetClipboardData]
call rax
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x40177f
lea rdx, str.Failed_to_retrieve_clipboard_data
mov rcx, qword [0x004b8f80]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
lea rax, [rbp - 0x33]
mov rcx, rax
call fcn.004679e0
lea rax, [rbp - 0x33]
mov r8, rax
lea rdx, [0x004b404e]
mov rcx, qword [rbp]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
lea rax, [rbp - 0x33]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
jmp 0x4018e4
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalLock]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x4017f9
lea rdx, str.Failed_to_lock_clipboard_memory
mov rcx, qword [0x004b8f80]
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rdx, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rcx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
lea rax, [rbp - 0x32]
mov rcx, rax
call fcn.004679e0
lea rax, [rbp - 0x32]
mov r8, rax
lea rdx, [0x004b404e]
mov rcx, qword [rbp]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
lea rax, [rbp - 0x32]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
jmp 0x4018e4
lea rax, [rbp - 0x31]
mov rcx, rax
call fcn.004679e0
lea rcx, [rbp - 0x31]
mov rdx, qword [rbp - 0x30]
lea rax, [rbp - 0x60]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_wchar_t_const__std::allocator_wchar_t__const_
lea rax, [rbp - 0x31]
mov rcx, rax
call sym.std::allocator_wchar_t_::allocator__
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call rax
mov rax, qword [sym.imp.USER32.dll_CloseClipboard]
call rax
lea rax, [rbp - 0x60]
mov rdx, rax
mov rcx, qword [rbp]
call method.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.basic_string_std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x4018e4
mov rax, qword [rbp]
add rsp, 0x68
pop rbx
pop rbp
ret