Function at 0x140107ae0
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 [0x1403eaa10]
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.1400f3940
nop
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x68]
call fcn.1401ebac0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401085d2
test al, 0x10
je 0x1401085d2
cmp dword [rbp - 0x80], 0
jle 0x140107b78
mov rcx, qword [rsp + 0x78]
call fcn.140298600
lea rax, [0x1403fe1b0]
cmp word [0x1403fe1b0], 0
jne 0x140107b9a
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.1401e9030
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r9d, [r15 + 0xd]
lea r8, str.HitmanPro.exe
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
lea edx, [r15 + 0xd]
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.1400d1690
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x68]
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x68]
call fcn.1401ea290
nop
cmp dword [rbp - 0x50], r15d
jle 0x140107c38
mov rcx, qword [rbp - 0x58]
call fcn.140298600
nop
cmp dword [rsp + 0x38], 0
jle 0x140107c49
mov rcx, qword [rsp + 0x30]
call fcn.140298600
mov edx, dword [rsp + 0x74]
mov rcx, rdi
call fcn.1401e9030
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.14029b4d8
mov edx, dword [rsp + 0x74]
mov rcx, rdi
call fcn.1401ea290
xor r8d, r8d
lea rdx, [0x1403fe1b0]
lea rcx, [rsp + 0x68]
call fcn.1401e9310
or rdi, 0xffffffffffffffff
lea rcx, [0x140323de0]
test al, al
jne 0x140107d30
mov rbx, rdi
lea rax, [0x1403fe1b0]
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140107cb0
mov qword [rsp + 0x38], r15
test ebx, ebx
jne 0x140107cca
mov qword [rsp + 0x30], rcx
jmp 0x140107cf3
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [0x1403fe1b0]
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ea290
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 0x140107d28
mov rcx, qword [rsp + 0x30]
call fcn.140298600
test bl, bl
jne 0x1401085ff
mov r14b, 1
lea rcx, [rsp + 0x68]
call fcn.14010a3e0
mov edx, 6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
sete r15b
test sil, sil
je 0x1401081f8
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 0x1401081fa
mov qword [rsp + 0x58], rsi
lea edx, [rsi + 9]
lea rcx, [rsp + 0x50]
call fcn.1401e9030
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
lea r9d, [rsi + 9]
lea r8, [0x140329c18]
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
lea edx, [rsi + 9]
lea rcx, [rsp + 0x50]
call fcn.1401ea290
nop
lea rax, [rbp - 0x40]
mov rbx, rdi
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140107dc3
mov qword [rsp + 0x38], rsi
test ebx, ebx
jne 0x140107de4
lea rax, [0x140323de0]
mov qword [rsp + 0x30], rax
jmp 0x140107e0a
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401e9030
movsxd r9, ebx
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x40]
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x78]
call fcn.1400d1690
nop
cmp dword [rsp + 0x38], 0
jle 0x140107e3e
mov rcx, qword [rsp + 0x30]
call fcn.140298600
nop
cmp dword [rsp + 0x58], 0
jle 0x140107e4f
mov rcx, qword [rsp + 0x50]
call fcn.140298600
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x78]
call fcn.1401ebac0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140107e85
test al, 0x10
je 0x140107e85
cmp dword [rsp + 0x48], 0
jle 0x140107ea6
mov rcx, qword [rsp + 0x40]
call fcn.140298600
jmp 0x140107ea6
cmp dword [rsp + 0x48], 0
jle 0x140107e96
mov rcx, qword [rsp + 0x40]
call fcn.140298600
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.1401ebac0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1401081d4
test al, 0x10
je 0x1401081d4
cmp dword [rsp + 0x48], 0
jle 0x140107ee2
mov rcx, qword [rsp + 0x40]
call fcn.140298600
mov qword [rbp - 0x70], rsi
mov edx, 0xd
lea rcx, [rbp - 0x78]
call fcn.1401e9030
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.14029b4d8
mov edx, 0xd
lea rcx, [rbp - 0x78]
call fcn.1401ea290
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x58]
call fcn.1400d1690
nop
cmp dword [rbp - 0x70], 0
jle 0x140107f43
mov rcx, qword [rbp - 0x78]
call fcn.140298600
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1402df9b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402dfa00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x140108060
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.1401e9030
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 0x12
lea r8, str.ProductDescription
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
mov edx, 0x12
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.1400f6370
nop
cmp dword [rsp + 0x38], 0
jle 0x140107ffc
mov rcx, qword [rsp + 0x30]
call fcn.140298600
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, [0x1402dfa20]
call qword [rax]
test eax, eax
js 0x140108045
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 0x140108060
mov rcx, qword [rbp - 0x68]
call fcn.140298600
mov qword [rsp + 0x38], rsi
mov edx, 0x14
lea rcx, [rsp + 0x30]
call fcn.1401e9030
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r9d, 0x14
lea r8, str.UninstallDescription
mov rcx, qword [rsp + 0x30]
call fcn.14029b4d8
mov edx, 0x14
lea rcx, [rsp + 0x30]
call fcn.1401ea290
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x68]
call fcn.1400f6370
nop
cmp dword [rsp + 0x38], 0
jle 0x1401080c4
mov rcx, qword [rsp + 0x30]
call fcn.140298600
lea r8, [rbp - 0x68]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x40]
call fcn.1400d1690
nop
lea rdx, str..lnk
lea rcx, [rsp + 0x40]
call fcn.1401e7680
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
lea r9, [0x1402df9b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402dfa00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1401081a6
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, [0x14032bf48]
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, [0x1402dfa20]
call qword [rax]
test eax, eax
js 0x14010819a
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 0x1401081b8
mov rcx, qword [rsp + 0x40]
call fcn.140298600
nop
cmp dword [rbp - 0x60], 0
jle 0x1401081c8
mov rcx, qword [rbp - 0x68]
call fcn.140298600
nop
cmp dword [rbp - 0x50], 0
jle 0x1401081e6
mov rcx, qword [rbp - 0x58]
jmp 0x1401081e0
cmp dword [rsp + 0x48], 0
jle 0x1401081e6
mov rcx, qword [rsp + 0x40]
call fcn.140298600
nop
cmp dword [rbp - 0x80], 0
jle 0x1401081fa
mov rcx, qword [rsp + 0x78]
call fcn.140298600
jmp 0x1401081fa
xor esi, esi
test r12b, r12b
je 0x14010842d
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 0x14010842d
mov qword [rbp - 0x70], 0
lea edx, [rax + 0xd]
lea rcx, [rbp - 0x78]
call fcn.1401e9030
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.14029b4d8
mov edx, 0xd
lea rcx, [rbp - 0x78]
call fcn.1401ea290
nop
lea rax, [rbp - 0x40]
nop dword [rax + rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140108270
mov qword [rsp + 0x58], 0
test edi, edi
jne 0x140108295
lea rax, [0x140323de0]
mov qword [rsp + 0x50], rax
jmp 0x1401082bb
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1401e9030
movsxd r9, edi
mov eax, dword [rsp + 0x58]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x40]
mov rcx, qword [rsp + 0x50]
call fcn.14029b4d8
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.1401ea290
nop
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x68]
call fcn.1400d1690
nop
cmp dword [rsp + 0x58], 0
jle 0x1401082ed
mov rcx, qword [rsp + 0x50]
call fcn.140298600
nop
cmp dword [rbp - 0x70], 0
jle 0x1401082fc
mov rcx, qword [rbp - 0x78]
call fcn.140298600
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [0x1402df9b0]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1402dfa00]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x14010841e
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.1401e9030
mov eax, dword [rsp + 0x48]
inc eax
movsxd rdx, eax
mov r9d, 0x12
lea r8, str.ProductDescription
mov rcx, qword [rsp + 0x40]
call fcn.14029b4d8
mov edx, 0x12
lea rcx, [rsp + 0x40]
call fcn.1401ea290
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.1400f6370
nop
cmp dword [rsp + 0x48], 0
jle 0x1401083b9
mov rcx, qword [rsp + 0x40]
call fcn.140298600
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, [0x1402dfa20]
call qword [rax]
test eax, eax
js 0x140108402
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 0x14010841e
mov rcx, qword [rbp - 0x58]
call fcn.140298600
nop
cmp dword [rbp - 0x60], 0
jle 0x14010842d
mov rcx, qword [rbp - 0x68]
call fcn.140298600
test r15b, r15b
je 0x140108438
call qword [sym.imp.ole32.dll_CoUninitialize]
lea rdi, vtable.Core::Win32::RegistryKey.0
test r13b, r13b
je 0x14010856a
mov eax, dword [0x1403fe608]
test al, 1
jne 0x140108479
or eax, 1
mov dword [0x1403fe608], eax
mov qword [0x1403fe5e0], rdi
mov qword [0x1403fe5e8], 0xffffffff80000002
lea rcx, [0x1402de040]
call fcn.140299c6c
lea rdx, [0x140329c48]
lea rcx, [0x1403fe5e0]
call fcn.1400ec430
mov rbx, rax
test rax, rax
je 0x140108563
lea rax, [0x140323de0]
mov qword [rsp + 0x78], rax
mov qword [rbp - 0x80], 0
lea r8, [rsp + 0x78]
lea rdx, [0x14032bf20]
mov rcx, rbx
call fcn.1400d5720
test al, al
jne 0x140108553
mov dword [rsp + 0x28], 0xa
lea rax, [0x14032bf70]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14032bf20]
mov rcx, qword [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [rsp + 0x28], 0xe
lea rax, [0x14032bf60]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14032bfa8]
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 0x140108563
mov rcx, qword [rsp + 0x78]
call fcn.140298600
mov cl, 1
call fcn.1401174f0
call fcn.1400ece60
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 0x1401085c6
lea ecx, [rax + 0x10]
call fcn.14029806c
mov rcx, rax
test rax, rax
je 0x1401085c6
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.140117ec0
call fcn.14010b1c0
call fcn.14010b8a0
jmp 0x1401085ff
cmp dword [rbp - 0x80], 0
jle 0x1401085e2
mov rcx, qword [rsp + 0x78]
call fcn.140298600
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.14029a88c
nop
cmp dword [rsp + 0x70], 0
jle 0x140108610
mov rcx, qword [rsp + 0x68]
call fcn.140298600
movzx eax, r14b
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.140297ff0
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