Function at 0x140002180
Capabilities:
Check if file exists
Create directory
Download url
Get file attributes
Receive data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
mov rbx, rcx
xor r15d, r15d
lea rdx, [rbp - 1]
call fcn.140001980
mov rdx, qword [rbp + 0x17]
cmp rdx, 0xf
jbe 0x1400021f8
inc rdx
mov rcx, qword [rbp - 1]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021f3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024fc
call fcn.140006180
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r15
mov qword [rbp + 0x17], r15
mov r8d, 0xb
lea rdx, str.PutinImage
lea rcx, [rbp - 1]
call fcn.140005130
nop
lea rdx, [rbx + 0x114]
xorps xmm0, xmm0
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rdx + r8], 0
jne 0x140002240
lea rcx, [rbp - 0x21]
call fcn.140005130
nop
mov rcx, qword [rbp - 0x11]
dec rcx
mov qword [rbp - 0x11], rcx
lea rax, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rax, qword [rbp - 0x21]
mov byte [rax + rcx], 0
lea r9, [rbp - 1]
mov rdi, qword [rbp - 1]
mov r14, qword [rbp + 0x17]
cmp r14, 0xf
cmova r9, rdi
mov rcx, qword [rbp - 0x11]
mov rdx, qword [rbp - 9]
mov rax, rdx
sub rax, rcx
mov rsi, qword [rbp + 0xf]
cmp rsi, rax
ja 0x1400022c8
lea rax, [rcx + rsi]
mov qword [rbp - 0x11], rax
lea rbx, [rbp - 0x21]
cmp rdx, 0xf
cmova rbx, qword [rbp - 0x21]
add rbx, rcx
mov r8, rsi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x1400022e1
mov qword [rsp + 0x20], rsi
mov rdx, rsi
lea rcx, [rbp - 0x21]
call fcn.140005420
mov r14, qword [rbp + 0x17]
mov rdi, qword [rbp - 1]
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rcx, qword [rbp - 0x21]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1400022fe
test al, 0x10
jne 0x14000235a
lea rcx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rcx, qword [rbp - 0x21]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x14000235a
lea rdx, str.Error_creating_directory:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e10
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova rdx, qword [rbp - 0x21]
mov r8, qword [rbp - 0x11]
mov rcx, rax
call fcn.140005900
mov rcx, rax
lea rdx, [0x140004fe0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140002483
movabs rax, 0x7fffffffffffffff
mov rcx, qword [rbp - 0x11]
sub rax, rcx
cmp rax, 0x13
jb 0x140002534
lea r9, [rbp - 0x21]
cmp qword [rbp - 9], 0xf
cmova r9, qword [rbp - 0x21]
mov qword [rsp + 0x30], 0x13
lea rax, str._vladimir_putin.jpg
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp + 0x1f]
call fcn.1400057c0
nop
lea r8, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0xf
cmova r8, qword [rbp + 0x1f]
mov qword [rsp + 0x20], r15
xor r9d, r9d
lea rdx, str.https:__wegotthiscovered.com_wp_content_uploads_2022_12_vladimir_putin.jpg
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
test eax, eax
je 0x1400023ef
lea rdx, str.Error_downloading_image_from_URL:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e10
mov rcx, rax
lea rdx, str.https:__wegotthiscovered.com_wp_content_uploads_2022_12_vladimir_putin.jpg
jmp 0x14000241e
lea r8, [rbp + 0x1f]
cmp qword [rbp + 0x37], 0xf
cmova r8, qword [rbp + 0x1f]
xor edx, edx
lea ecx, [rdx + 0x14]
lea r9d, [rdx + 1]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
test eax, eax
jne 0x140002434
lea rdx, str.Error_setting_desktop_wallpaper.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e10
lea rdx, [0x140004fe0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0x37]
cmp rdx, 0xf
jbe 0x140002472
inc rdx
mov rcx, qword [rbp + 0x1f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000246d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000246d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006180
movdqa xmm0, xmmword [0x140008c70]
movdqu xmmword [rbp + 0x2f], xmm0
mov byte [rbp + 0x1f], 0
mov rdx, qword [rbp - 9]
cmp rdx, 0xf
jbe 0x1400024c1
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400024bc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006180
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], 0xf
mov byte [rbp - 0x21], 0
cmp r14, 0xf
jbe 0x14000250b
lea rdx, [r14 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x140002503
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002503
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.140006180
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.140006160
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400011b0
nop
int3