Function at 0x1400010e0
Capabilities:
Check if file exists
Create process on windows
Download url
Get common file path
Get file attributes
Receive data

Disassembly:
sub rsp, 0x478
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x460], rax
xor r9d, r9d
lea rax, [rsp + 0x250]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor ecx, ecx
lea edx, [r9 + 0x10]
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000115c
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Impossible_dobtenir_le_chemin_du_r
call fcn.140001300
mov rcx, rax
lea rdx, [0x1400014e0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov eax, 1
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001770
add rsp, 0x478
ret
mov qword [rsp + 0x480], rbx
lea r8, [rsp + 0x250]
mov qword [rsp + 0x488], rsi
lea rcx, [rsp + 0x40]
mov edx, 0x104
mov qword [rsp + 0x470], rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea r8, [0x140003628]
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea r8, str.my_update_file.exe
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
xor edi, edi
lea rbx, str.http:__example.com_path_to_your_update1.exe
lea rsi, [0x140005090]
nop word [rax + rax]
mov rdx, qword [rbx]
lea r8, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
js 0x1400011fc
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, str.Mise
jmp 0x14000120a
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Erreur_lors_du_t
call fcn.140001300
lea rdx, [0x1400014e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001293
test al, 0x10
jne 0x140001293
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 3
call fcn.140001520
xor r9d, r9d
mov dword [rsp + 0x28], 1
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rdi
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
jg 0x1400012a2
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, str.Erreur_lors_de_lex
call fcn.140001300
mov rcx, rax
lea rdx, [0x1400014e0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
add rbx, 8
cmp rbx, rsi
jne 0x1400011d0
jmp 0x1400012c5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [0x140003518]
call fcn.140001300
mov rcx, rax
lea rdx, [0x1400014e0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov rdi, qword [rsp + 0x470]
xor eax, eax
mov rsi, qword [rsp + 0x488]
mov rbx, qword [rsp + 0x480]
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140001770
add rsp, 0x478
ret