Function at 0x140001fa8
Capabilities:
Change the wallpaper
Check if file exists

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x338
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x2e0], rcx
lea rbx, [rbp + 0x160]
mov esi, 2
mov rcx, rbx
lea rax, [rbp + 0x1ce]
mov qword [rbp + 0x280], rax
nop
nop
lea rax, [rbp + 0x1ce]
mov r8, rax
lea rax, str..jpg
mov rdx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rdi, [rbx + 0x20]
sub rsi, 1
lea rax, [rbp + 0x1ce]
mov r8, rax
lea rax, str..png
mov rdx, rax
mov rcx, rdi
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rdi + 0x20]
sub rsi, 1
lea rdx, [rbp + 0x1ce]
mov r8, rdx
lea rdx, str..bmp
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x1ce]
mov rcx, rax
call dbg.std::__new_allocator<char>::~__new_allocator()
nop
lea rax, [rbp + 0x140]
mov rcx, rax
call fcn.1400a8760
lea rax, [rbp + 0x1cf]
mov qword [rbp + 0x278], rax
nop
nop
lea rdx, [rbp + 0x1cf]
lea rax, [rbp + 0x120]
mov r8, rdx
lea rdx, str.C:UsersPublicwallpaper_changerwallpapers_
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.basic_string_char_const__std::allocator_char__const_
lea rax, [rbp + 0x1cf]
mov rcx, rax
call dbg.std::__new_allocator<char>::~__new_allocator()
nop
lea rax, [rbp + 0x160]
mov qword [rbp + 0x2a0], rax
mov rax, qword [rbp + 0x2a0]
mov qword [rbp + 0x2a8], rax
mov rax, qword [rbp + 0x2a0]
add rax, 0x60
mov qword [rbp + 0x298], rax
jmp 0x14000216e
mov rax, qword [rbp + 0x2a8]
mov qword [rbp + 0x290], rax
lea rax, [rbp + 0x1f0]
mov rcx, qword [rbp + 0x2e0]
lea rdx, [rbp + 0x120]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__std::__cxx11:
lea rax, [rbp + 0x1d0]
mov rcx, qword [rbp + 0x290]
lea rdx, [rbp + 0x1f0]
mov r8, rcx
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____std::operator_char__std::char_traits_char___std.allocator_char____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char_____std::__cxx11::basi
lea rdx, [rbp + 0x1d0]
lea rax, [rbp + 0x140]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.operator_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____
lea rax, [rbp + 0x1d0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x1f0]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x140]
mov rcx, rax
call dbg.fileExists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
test al, al
jne 0x140002184
add qword [rbp + 0x2a8], 0x20
mov rax, qword [rbp + 0x2a8]
cmp rax, qword [rbp + 0x298]
jne 0x1400020d1
jmp 0x140002185
nop
lea rax, [rbp + 0x140]
mov rcx, rax
call dbg.fileExists(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)
xor eax, 1
test al, al
je 0x140002271
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400bae80
lea rax, [rbp - 0x60]
lea rdx, [0x1400cf488]
mov rcx, rax
call method.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std.char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
mov rbx, rax
mov rax, qword [rbp + 0x2e0]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rcx, rbx
call method.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std.char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____char_const_
mov rcx, rax
lea rax, str._in_any_supported_format._Please_notify_Tym
mov rdx, rax
call method.std::basic_ostream_wchar_t__std::char_traits_wchar_t____std::operator____wchar_t__std.char_traits_wchar_t____std::basic_ostream_wchar_t__std::char_traits_wchar_t_____wchar_t_const_
lea rax, [rbp + 0x210]
lea rdx, [rbp - 0x60]
mov rcx, rax
call method.std::__cxx11::basic_ostringstream_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___.str___const
lea rax, [rbp + 0x210]
mov rcx, rax
call dbg.ErrorMessage(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)
lea rax, [rbp + 0x210]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea rax, str.Wallpaper_file_not_found_for
mov rdx, rax
mov rax, qword [0x1400d5680]
mov rcx, rax
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 rcx, rax
mov rax, qword [rbp + 0x2e0]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rcx, rax
lea rax, str._in_any_supported_format._Please_notify_Tym_n
mov rdx, rax
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 esi, 0
lea rax, [rbp - 0x60]
mov rcx, rax
call fcn.1400bb710
jmp 0x140002445
lea rax, str.Attempting_to_set_wallpaper:
mov rdx, rax
mov rax, qword [0x1400d56a0]
mov rcx, rax
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 rcx, rax
lea rax, [rbp + 0x140]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rcx, rax
lea rax, [0x1400cf055]
mov rdx, rax
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_
lea rax, [rbp + 0x140]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov r9d, 3
mov r8, rax
mov edx, 0
mov ecx, 0x14
mov rax, qword [sym.imp.USER32.dll_SystemParametersInfoA]
call rax
test eax, eax
sete al
test al, al
je 0x140002403
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rbp + 0x28c], eax
lea rax, [rbp + 0x250]
mov edx, dword [rbp + 0x28c]
mov rcx, rax
call dbg.std::__cxx11::to_wstring(unsigned long)
lea rax, [rbp + 0x230]
lea rdx, [rbp + 0x250]
mov r8, rdx
lea rdx, [0x1400cf590]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____std::operator_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____wchar_t_const__std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t____
lea rax, [rbp + 0x230]
mov rcx, rax
call dbg.ErrorMessage(std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, std::allocator<wchar_t> > const&)
lea rax, [rbp + 0x230]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea rax, [rbp + 0x250]
mov rcx, rax
call sym.std::__cxx11::basic_string_wchar_t__std::char_traits_wchar_t___std::allocator_wchar_t___::basic_string__
lea rax, str.Failed_to_set_wallpaper._Please_notify_Tym._Error_code:
mov rdx, rax
mov rax, qword [0x1400d5680]
mov rcx, rax
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 rcx, rax
mov eax, dword [rbp + 0x28c]
mov edx, eax
call method.std::ostream.operator___unsigned_long_
mov rcx, rax
lea rax, [0x1400cf055]
mov rdx, rax
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_
cmp dword [rbp + 0x28c], 2
jne 0x1400023b6
lea rax, str.The_specified_file_was_not_found._n
mov rdx, rax
mov rax, qword [0x1400d5680]
mov rcx, rax
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_
jmp 0x1400023fc
cmp dword [rbp + 0x28c], 5
jne 0x1400023da
lea rax, str.Access_denied._Check_if_you_have_the_necessary_permissions._n
mov rdx, rax
mov rax, qword [0x1400d5680]
mov rcx, rax
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_
jmp 0x1400023fc
cmp dword [rbp + 0x28c], 0x57
jne 0x1400023fc
lea rax, str.Invalid_parameter._The_file_might_not_be_a_valid_image_format._n
mov rdx, rax
mov rax, qword [0x1400d5680]
mov rcx, rax
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 esi, 0
jmp 0x140002445
lea rax, str.Wallpaper_set_to:
mov rdx, rax
mov rax, qword [0x1400d56a0]
mov rcx, rax
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 rcx, rax
lea rax, [rbp + 0x140]
mov rdx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____char__std::char_traits_char___std.allocator_char____std::basic_ostream_char__std::char_traits_char_____std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char
mov rcx, rax
lea rax, [0x1400cf055]
mov rdx, rax
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 esi, 1
lea rax, [rbp + 0x120]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rax, [rbp + 0x140]
mov rcx, rax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
lea rbx, [rbp + 0x160]
add rbx, 0x60
lea rax, [rbp + 0x160]
cmp rbx, rax
je 0x140002488
sub rbx, 0x20
mov rcx, rbx
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
jmp 0x14000246e
nop
mov eax, esi
jmp 0x1400025a1
add rsp, 0x338
pop rbx
pop rsi
pop rdi
pop rbp
ret