Function at 0x140001472
Capabilities:
Get graphical window text

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x220
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1c0], rcx
mov rax, qword [sym.imp.USER32.dll_GetForegroundWindow]
call rax
mov qword [rbp + 0x198], rax
lea rax, [rbp + 0x15f]
mov qword [rbp + 0x188], rax
nop
nop
lea rdx, [rbp + 0x15f]
lea rax, [rbp + 0x130]
mov r9, rdx
mov r8d, 0
mov edx, 0x2000
mov rcx, rax
call dbg.std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> >::basic_string<std::allocator<wchar_t> >(unsigned long long, wchar_t, std::allocator<wchar_t> const&)
lea rax, [rbp + 0x15f]
mov rcx, rax
call dbg.std::__new_allocator<wchar_t>::~__new_allocator()
nop
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::size___const
mov ebx, eax
lea rax, [rbp + 0x130]
mov edx, 0
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::operator___unsigned_long_long_
mov rdx, rax
mov rax, qword [rbp + 0x198]
mov r8d, ebx
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_GetWindowTextW]
call rax
mov dword [rbp + 0x194], eax
cmp dword [rbp + 0x194], 0
jne 0x1400015e9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x190], eax
cmp dword [rbp + 0x190], 0
jne 0x14000155c
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
jmp 0x140001626
lea rax, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_stringstream_char__std::char_traits_char___std::allocator_char___::basic_stringstream__
lea rax, [rbp - 0x60]
add rax, 0x10
lea rdx, str.GetWindowTextW___failed_with_error
mov rcx, rax
call sym.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 rcx, rax
mov eax, dword [rbp + 0x190]
mov edx, eax
call sym.std::ostream::operator___unsigned_long_
mov ecx, 0x10
call sym.__cxa_allocate_exception
mov rbx, rax
lea rax, [rbp + 0x160]
lea rdx, [rbp - 0x60]
mov rcx, rax
call sym.std::__cxx11::basic_stringstream_char__std::char_traits_char___std::allocator_char___::str___const
lea rax, [rbp + 0x160]
mov rdx, rax
mov rcx, rbx
call sym.std::runtime_error::runtime_error_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
lea rax, [rbp + 0x160]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
mov r8, qword [0x140009600]
lea rax, sym.imp.libstdc_6.dll_operator_new_unsigned_long_long_
mov rdx, rax
mov rcx, rbx
call sym.__cxa_throw
mov eax, dword [rbp + 0x194]
movsxd rdx, eax
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::resize_unsigned_long_long_
lea rax, [rbp + 0x130]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::shrink_to_fit__
lea rdx, [rbp + 0x130]
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call sym.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 + 0x130]
mov rcx, rax
call fcn.140004368
jmp 0x1400016a7
mov rax, qword [rbp + 0x1c0]
add rsp, 0x220
pop rbx
pop rsi
pop rbp
ret