Function at 0x417310
Capabilities:
Check if file exists
Create shortcut via ishelllink
Persist via app paths registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43e633
push eax
mov eax, 0x1c2c
mov dword fs:[0], esp
call fcn.00439c20
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c44], 0
call sub.MFC42u.DLL_CString::CString_4
mov ax, word [0x44ffe8]
mov ecx, 0x81
mov word [esp + 0x234], ax
xor eax, eax
lea edi, [esp + 0x236]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x238]
mov byte [esp + 0x1c48], 1
push ecx
push 0
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x20]
call fcn.00438620
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c44], 2
call fcn.00438bf0
test eax, eax
jne 0x4173d5
lea ecx, [esp + 0x20]
call fcn.004391b0
test eax, eax
jne 0x4173d5
push 1
lea ecx, [esp + 0x24]
call fcn.00438660
push 0
lea ecx, [esp + 0x24]
call fcn.00439210
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x234]
push edx
call esi
add esp, 4
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
shl eax, 1
push eax
lea eax, [esp + 0x238]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41755f
lea ecx, [esp + 0x234]
push ecx
lea ecx, [esp + 0x14]
call fcn.00439862
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
lea edx, [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c48], 3
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c44], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x10]
push eax
mov ebx, eax
call esi
add esp, 4
shl eax, 1
push eax
push ebx
push 1
push str.path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41755f
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [esp + 0x1c]
call fcn.00439862
push 0x80
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::CString_1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1c48], 4
call fcn.004398ce
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c44], 2
call sub.MFC42u.DLL_CString::CString
push str.uninst.exe
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00407760
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c48], 5
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c44], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x18]
push eax
mov ebp, eax
call esi
add esp, 4
shl eax, 1
push eax
push ebp
push 1
push str.UninstallString
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
jne 0x41755f
lea ecx, [esp + 0x234]
push ecx
lea ecx, [esp + 0x14]
call fcn.00439862
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
push eax
mov ebx, eax
call esi
add esp, 4
shl eax, 1
push eax
push ebx
push 1
push 0x44c3a0
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
je 0x41759c
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c44], 1
call fcn.00438650
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c44], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c44], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor eax, eax
jmp 0x417bcd
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x1c]
push edx
push 0x444420
push 1
push 0
push 0x444430
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x417b8d
lea eax, [esp + 0x234]
lea ecx, [esp + 0x10]
push eax
call fcn.00439862
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
lea ecx, [esp + 0x14]
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c48], 6
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c44], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
push 0x44c39c
lea ecx, [esp + 0x14]
call fcn.00439862
lea edx, [esp + 0x234]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42u.DLL_CString::operator_1
push 0x44c39c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x1c]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push 0x444410
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x417aca
mov dx, word [0x44ffe8]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], dx
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push 0x10
push eax
push 0
push 0x450010
call fcn.0040d230
mov ebp, dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [esp + 0x2c]
push 0x44b8f8
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x14]
push 0x80
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x2c]
push str..lnk
push eax
call ebp
mov eax, dword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x2c]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [esp + 0x24]
neg esi
mov ecx, dword [eax]
push eax
sbb esi, esi
inc esi
call dword [ecx + 8]
test esi, esi
je 0x417b81
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push 0x444410
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x417aca
mov dx, word [0x44ffe8]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], dx
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push 2
push eax
push 0
push 0x450010
call fcn.0040d230
lea ecx, [esp + 0x2c]
push 0x44b8f8
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x14]
push 0x80
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x2c]
test eax, eax
je 0x4178d3
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x43c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x43c]
test ecx, ecx
je 0x4178d3
mov ecx, 0x400
lea edi, [esp + 0xc3c]
lea edx, [esp + 0x2c]
mov word [esp + 0x43c], ax
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41784c
lea eax, [esp + 0xc3c]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xc3c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc3c]
push edx
lea ecx, [esp + 0xc40]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0xc3c]
push 0x400
lea eax, [esp + 0x440]
push edx
push eax
jmp 0x41785e
lea ecx, [esp + 0x2c]
push 0x400
lea edx, [esp + 0x440]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4178d3
lea ecx, [esp + 0x2c]
push 0x44b8f8
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x14]
push 0x80
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x2c]
push str..lnk
push eax
call ebp
mov eax, dword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x2c]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x417b81
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
lea edx, [esp + 0x234]
mov bl, 7
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c48], bl
call fcn.00439862
push 0x5c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c48], 8
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c44], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator_2
push 0x44c378
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::operator_1
push 0x44c39c
lea ecx, [esp + 0x14]
call fcn.00439862
lea edx, [esp + 0x14]
lea ecx, [esp + 0x10]
push edx
call fcn.004398ce
push 0x44c39c
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [esp + 0x1c]
push 0
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push 0x444410
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x417b6e
mov dx, word [0x44ffe8]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2e]
mov word [esp + 0x2c], dx
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x30]
push 2
push eax
push 0
push 0x450010
call fcn.0040d230
lea ecx, [esp + 0x2c]
push 0x44b8f8
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x28]
push 0x80
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x2c]
test eax, eax
je 0x417b62
mov ecx, 0x200
xor eax, eax
lea edi, [esp + 0x43c]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x43c]
test ecx, ecx
je 0x417b62
mov ecx, 0x400
lea edi, [esp + 0xc3c]
lea edx, [esp + 0x2c]
mov word [esp + 0x43c], ax
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x417adb
lea eax, [esp + 0xc3c]
push 0x800
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0xc3c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x2c]
lea eax, [esp + 0xc3c]
push edx
lea ecx, [esp + 0xc40]
push eax
push ecx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0xc3c]
push 0x400
lea eax, [esp + 0x440]
push edx
push eax
jmp 0x417aed
mov eax, dword [esp + 0x1c]
xor esi, esi
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x417b8f
lea ecx, [esp + 0x2c]
push 0x400
lea edx, [esp + 0x440]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417b62
lea ecx, [esp + 0x2c]
push 0x44b8f8
push ecx
call ebp
add esp, 8
lea ecx, [esp + 0x28]
push 0xef78
call sub.MFC42u.DLL_CString::CString_1
mov eax, dword [eax]
lea edx, [esp + 0x2c]
push eax
push edx
call ebp
add esp, 8
lea ecx, [esp + 0x28]
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x2c]
push str..lnk
push eax
call ebp
mov eax, dword [esp + 0x2c]
add esp, 8
lea edx, [esp + 0x2c]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x417b70
xor esi, esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x1c44], 2
call sub.MFC42u.DLL_CString::CString
mov eax, dword [esp + 0x1c]
push eax
mov edx, dword [eax]
call dword [edx + 8]
jmp 0x417b8f
xor esi, esi
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x20]
mov byte [esp + 0x1c44], 1
call fcn.00438650
lea ecx, [esp + 0x18]
mov byte [esp + 0x1c44], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c44], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x1c3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c38
ret