Function at 0x140001d70
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response
Reference http user-agent string
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
sub rsp, 0xc70
mov rax, qword [0x14000a038]
xor rax, rsp
mov qword [rsp + 0xc60], rax
mov rbx, rcx
lea r8, [0x140006b70]
mov rdx, rcx
xor ebp, ebp
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
test eax, eax
jne 0x140001fd7
cmp qword [rsp + 0x48], rbp
je 0x140001fd7
mov rax, qword [0x14000a098]
mov qword [rsp + 0xc88], rsi
test rax, rax
jne 0x140001df5
xor r9d, r9d
mov dword [rsp + 0x20], ebp
xor r8d, r8d
lea rcx, str.Mozilla_5.0
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword [0x14000a098], rax
mov r8d, 0x1bb
mov qword [rsp + 0xc90], rdi
xor r9d, r9d
lea rdx, str.c3.yarttdn.de
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov rsi, rax
test rax, rax
je 0x140001fd3
call fcn.140001ff0
mov r9, rax
lea r8, str._wallpaper_ip_s
mov edx, 0x400
lea rcx, [rsp + 0x60]
call fcn.140001c50
lea r9, [rsp + 0x60]
mov qword [rsp + 0x20], 0x3ff
mov r8d, 0x400
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
mov dword [rsp + 0x30], 0x800000
lea r8, [rsp + 0x460]
mov qword [rsp + 0x28], rbp
lea rdx, [0x140006b68]
xor r9d, r9d
mov qword [rsp + 0x20], rbp
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov rdi, rax
test rax, rax
je 0x140001fd3
mov r9d, 4
mov dword [rsp + 0x50], 0x3300
lea r8, [rsp + 0x50]
mov rcx, rax
lea edx, [r9 + 0x1b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
je 0x140001fd3
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], ebp
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebp
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001fd3
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001fd3
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x140001fd3
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140001fd3
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x44]
mov rdx, rax
mov dword [rsp + 0x44], ebp
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
mov rcx, rbx
test eax, eax
je 0x140001fcd
mov edx, dword [rsp + 0x44]
mov r8d, 1
mov r9, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
cmp dword [rsp + 0x40], ebp
ja 0x140001f01
mov rcx, rdi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, rsi
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, 1
mov rdi, qword [rsp + 0xc90]
mov rsi, qword [rsp + 0xc88]
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.140003a40
mov rbx, qword [rsp + 0xc98]
add rsp, 0xc70
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
jmp 0x140001f9c
mov rdx, rbx
lea rcx, str.Could_not_open_file_for_writing:__s_n
call fcn.1400017b0
xor eax, eax
jmp 0x140001fac