Function at 0x140106660
Capabilities:
Check if file exists
Copy file
Create directory
Create shortcut via ishelllink
Get common file path
Get file attributes
Persist via lnk shortcut
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x208]
sub rsp, 0x2e0
mov qword [rbp - 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140415a10]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov rdi, r9
movzx r12d, r8b
movzx esi, dl
movzx r13d, cl
xor r14b, r14b
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1400f1b10
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.1401ff680
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140107152
test al, 0x10
je 0x140107152
cmp dword [rbp - 0x80], 0
jle 0x1401066f8
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
lea rax, [0x1404295c0]
cmp word [0x1404295c0], 0
jne 0x14010671a
mov r8d, 0x104
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor r15d, r15d
mov qword [rsp + 0x38], r15
lea edx, [r15 + 0xd]
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r9d, [r15 + 0xd]
lea r8, [0x14034f0a8]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
lea edx, [r15 + 0xd]
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.1400d2ba0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x68]
call fcn.1401fcb40
movsxd r9, dword [rbx + 0xc]
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x68]
call fcn.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x68]
call fcn.1401fde50
nop
cmp dword [rbp - 0x50], r15d
jle 0x1401067b8
mov rcx, qword [rbp - 0x58]
call fcn.1402b7350
nop
cmp dword [rsp + 0x38], 0
jle 0x1401067c9
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
mov edx, dword [rsp + 0x74]
mov rcx, rdi
call fcn.1401fcb40
movsxd r9, dword [rsp + 0x74]
mov eax, dword [rdi + 8]
inc eax
movsxd rdx, eax
mov r8, qword [rsp + 0x68]
mov rcx, qword [rdi]
call fcn.1402ba94c
mov edx, dword [rsp + 0x74]
mov rcx, rdi
call fcn.1401fde50
xor r8d, r8d
lea rdx, [0x1404295c0]
lea rcx, [rsp + 0x68]
call fcn.1401fce20
or rdi, 0xffffffffffffffff
lea rcx, [0x140346ce0]
test al, al
jne 0x1401068b0
mov rbx, rdi
lea rax, [0x1404295c0]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140106830
mov qword [rsp + 0x38], r15
test ebx, ebx
jne 0x14010684a
mov qword [rsp + 0x30], rcx
jmp 0x140106873
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [0x1404295c0]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
sete bl
cmp dword [rsp + 0x38], 0
jle 0x1401068a8
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
test bl, bl
jne 0x14010717f
mov r14b, 1
lea rcx, [rsp + 0x68]
call fcn.1401096a0
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
sete r15b
test sil, sil
je 0x140106d78
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x17]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor esi, esi
test eax, eax
jne 0x140106d7a
mov qword [rsp + 0x58], rsi
lea edx, [rsi + 9]
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 9]
lea r8, [0x14034cde8]
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
lea edx, [rsi + 9]
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea rax, [rbp - 0x40]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140106943
mov qword [rsp + 0x38], rsi
test ebx, ebx
jne 0x140106964
lea rax, [0x140346ce0]
mov qword [rsp + 0x30], rax
jmp 0x14010698a
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401069be
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
nop
cmp dword [rsp + 0x58], 0
jle 0x1401069cf
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.1401ff680
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140106a05
test al, 0x10
je 0x140106a05
cmp dword [rsp + 0x48], 0
jle 0x140106a26
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
jmp 0x140106a26
cmp dword [rsp + 0x48], 0
jle 0x140106a16
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
xor r8d, r8d
mov rdx, qword [rsp + 0x78]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.1401ff680
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140106d54
test al, 0x10
je 0x140106d54
cmp dword [rsp + 0x48], 0
jle 0x140106a62
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
mov qword [rbp - 0x70], rsi
mov edx, 0xd
lea rcx, [rbp - 0x78]
call fcn.1401fcb40
mov eax, dword [rbp - 0x70]
inc eax
movsxd rdx, eax
mov r9d, 0xd
lea r8, str.HitmanPro.lnk
mov rcx, qword [rbp - 0x78]
call fcn.1402ba94c
mov edx, 0xd
lea rcx, [rbp - 0x78]
call fcn.1401fde50
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x58]
call fcn.1400d2ba0
nop
cmp dword [rbp - 0x70], 0
jle 0x140106ac3
mov rcx, qword [rbp - 0x78]
call fcn.1402b7350
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1403009f0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140300a40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140106be0
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x88]
mov qword [rsp + 0x38], rsi
mov edx, 0x12
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 0x12
lea r8, str.ProductDescription
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, 0x12
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.1400f4800
nop
cmp dword [rsp + 0x38], 0
jle 0x140106b7c
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x68]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x140300a60]
call qword [rax]
test eax, eax
js 0x140106bc5
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rbp - 0x58]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
cmp dword [rbp - 0x60], 0
jle 0x140106be0
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
mov qword [rsp + 0x38], rsi
mov edx, 0x14
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 0x14
lea r8, str.UninstallDescription
mov rcx, qword [rsp + 0x30]
call fcn.1402ba94c
mov edx, 0x14
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.1400f4800
nop
cmp dword [rsp + 0x38], 0
jle 0x140106c44
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.1400d2ba0
nop
lea rdx, str..lnk
lea rcx, [rsp + 0x40]
call fcn.1401fb190
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1403009f0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140300a40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140106d26
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [0x14034f170]
call qword [rax + 0x58]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x88]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x68]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x140300a60]
call qword [rax]
test eax, eax
js 0x140106d1a
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rsp + 0x40]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
cmp dword [rsp + 0x48], 0
jle 0x140106d38
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
nop
cmp dword [rbp - 0x60], 0
jle 0x140106d48
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
nop
cmp dword [rbp - 0x50], 0
jle 0x140106d66
mov rcx, qword [rbp - 0x58]
jmp 0x140106d60
cmp dword [rsp + 0x48], 0
jle 0x140106d66
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
nop
cmp dword [rbp - 0x80], 0
jle 0x140106d7a
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
jmp 0x140106d7a
xor esi, esi
test r12b, r12b
je 0x140106fad
lea rax, [rbp - 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x19]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x140106fad
mov qword [rbp - 0x70], 0
lea edx, [rax + 0xd]
lea rcx, [rbp - 0x78]
call fcn.1401fcb40
mov eax, dword [rbp - 0x70]
inc eax
movsxd rdx, eax
mov r9d, 0xd
lea r8, str.HitmanPro.lnk
mov rcx, qword [rbp - 0x78]
call fcn.1402ba94c
mov edx, 0xd
lea rcx, [rbp - 0x78]
call fcn.1401fde50
nop
lea rax, [rbp - 0x40]
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140106df0
mov qword [rsp + 0x58], 0
test edi, edi
jne 0x140106e15
lea rax, [0x140346ce0]
mov qword [rsp + 0x50], rax
jmp 0x140106e3b
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1401fde50
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.1400d2ba0
nop
cmp dword [rsp + 0x58], 0
jle 0x140106e6d
mov rcx, qword [rsp + 0x50]
call fcn.1402b7350
nop
cmp dword [rbp - 0x70], 0
jle 0x140106e7c
mov rcx, qword [rbp - 0x78]
call fcn.1402b7350
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1403009f0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x140300a40]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140106f9e
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rdx, qword [rsp + 0x68]
call qword [rax + 0xa0]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
call qword [rax + 0x88]
mov qword [rsp + 0x48], 0
mov edx, 0x12
lea rcx, [rsp + 0x40]
call fcn.1401fcb40
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r9d, 0x12
lea r8, str.ProductDescription
mov rcx, qword [rsp + 0x40]
call fcn.1402ba94c
mov edx, 0x12
lea rcx, [rsp + 0x40]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.1400f4800
nop
cmp dword [rsp + 0x48], 0
jle 0x140106f39
mov rcx, qword [rsp + 0x40]
call fcn.1402b7350
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
mov rdx, qword [rbp - 0x58]
call qword [rax + 0x38]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r8, [rsp + 0x30]
lea rdx, [0x140300a60]
call qword [rax]
test eax, eax
js 0x140106f82
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
mov r8d, 1
mov rdx, qword [rbp - 0x68]
call qword [rax + 0x30]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
cmp dword [rbp - 0x50], 0
jle 0x140106f9e
mov rcx, qword [rbp - 0x58]
call fcn.1402b7350
nop
cmp dword [rbp - 0x60], 0
jle 0x140106fad
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
test r15b, r15b
je 0x140106fb8
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdi, vtable.Core::Win32::RegistryKey.0
test r13b, r13b
je 0x1401070ea
mov eax, dword [0x140429a18]
test al, 1
jne 0x140106ff9
or eax, 1
mov dword [0x140429a18], eax
mov qword [0x1404299f0], rdi
mov qword [0x1404299f8], 0xffffffff80000002
lea rcx, [0x1402fedc0]
call fcn.1402b8a74
lea rdx, [0x14034ce18]
lea rcx, [0x1404299f0]
call fcn.1400ea630
mov rbx, rax
test rax, rax
je 0x1401070e3
lea rax, [0x140346ce0]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], 0
lea r8, [rsp + 0x78]
lea rdx, [0x14034f1c8]
mov rcx, rbx
call fcn.1400d8ae0
test al, al
jne 0x1401070d3
mov dword [rsp + 0x28], 0xa
lea rax, [0x14034f1b8]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14034f1c8]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0xe
lea rax, [0x14034f210]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14034f1f0]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0x26
lea rax, str.fullscreen_diskbusy
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SchedulerNotWhen
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
nop
cmp dword [rbp - 0x80], 0
jle 0x1401070e3
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
mov cl, 1
call fcn.140116740
call fcn.1400eafe0
mov qword [rsp + 0x30], rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str._shellhitmanpro
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140107146
lea ecx, [rax + 0x10]
call fcn.1402b6dbc
mov rcx, rax
test rax, rax
je 0x140107146
mov rax, qword [rsp + 0x30]
mov qword [rcx], rdi
mov qword [rcx + 8], rax
mov edx, 1
call qword [rdi]
xor ecx, ecx
call fcn.140117130
call fcn.14010a480
call fcn.14010ab60
jmp 0x14010717f
cmp dword [rbp - 0x80], 0
jle 0x140107162
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
mov rbx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov r8, rbx
lea rcx, str.Error__d_while_creating_directory__s_r_n
call fcn.1402b9694
nop
cmp dword [rsp + 0x70], 0
jle 0x140107190
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
movzx eax, r14b
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1402b6d40
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret