Function at 0x14000d170
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get common file path
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x4c0]
sub rsp, 0x5c0
mov rax, qword [0x14001c040]
xor rax, rsp
mov qword [rbp + 0x4b0], rax
xor edi, edi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x80], xmm1
lea r8d, [rdi + 0x11]
lea rdx, str.processhacker.exe
lea rcx, [rsp + 0x70]
call fcn.1400093f0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x60], xmm1
lea r8d, [rdi + 0x12]
lea rdx, str.systeminformer.exe
lea rcx, [rbp - 0x70]
call fcn.1400093f0
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x40], xmm1
lea r8d, [rdi + 0xd]
lea rdx, str.LpSysLtdS.exe
lea rcx, [rbp - 0x50]
call fcn.1400093f0
nop
lea rax, [rsp + 0x70]
mov qword [rbp + 0x10], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x50]
call fcn.140007460
nop
lea r9, [fcn.140001ea0]
lea edx, [rdi + 0x20]
lea r8d, [rdi + 3]
lea rcx, [rsp + 0x70]
call fcn.1400106d8
mov edx, 0x104
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea rbx, [rdi - 1]
xorps xmm0, xmm0
mov qword [rbp + 0x20], rdi
mov qword [rbp + 0x28], rdi
movups xmmword [rbp + 0x10], xmm0
test eax, eax
je 0x14000d294
lea rax, [rbp + 0x90]
mov r8, rbx
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x14000d280
lea rdx, [rbp + 0x90]
jmp 0x14000d29e
xor r8d, r8d
lea rdx, [0x140014560]
lea rcx, [rbp + 0x10]
call fcn.1400093f0
nop
mov r8d, 0x104
lea rdx, [rbp + 0x2a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rdi
mov qword [rbp + 8], rdi
lea rax, [rbp + 0x2a0]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000d2d3
mov r8, rbx
lea rdx, [rbp + 0x2a0]
lea rcx, [rbp - 0x10]
call fcn.1400093f0
nop
lea r8, str.kYourAppFolder_
lea rdx, [rbp + 0x10]
lea rcx, [rbp + 0x30]
call fcn.14000f3b0
nop
lea r8, str.kYourAppName.exe
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x30]
call fcn.14000f3b0
nop
mov dl, 1
lea rcx, [rbp + 0x50]
call fcn.14000fa10
cmp qword [rbp + 0x20], 0
je 0x14000d64c
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rcx, qword [rbp + 0x30]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14000d35c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000d64c
lea rcx, [rbp + 0x30]
cmp qword [rbp + 0x48], 7
cmova rcx, qword [rbp + 0x30]
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
lea r9, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova r9, qword [rbp - 0x10]
mov rdx, qword [rbp]
cmp rdx, qword [rbp - 0x20]
jne 0x14000d3c9
mov r8, rdx
test rdx, rdx
je 0x14000d499
sub r9, rcx
nop word [rax + rax]
movzx eax, word [r9 + rcx]
cmp ax, word [rcx]
jne 0x14000d3c9
add rcx, 2
sub r8, 1
jne 0x14000d3b0
jmp 0x14000d499
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000d403
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14000d403
lea rdx, str.Failed_to_delete_existing_file._Error:
jmp 0x14000d465
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
lea rcx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rcx, qword [rbp - 0x10]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000d45e
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
mov edx, 6
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea rcx, [rbp - 0x30]
call fcn.14000c430
xor edx, edx
lea rcx, [rbp + 0x50]
call fcn.14000fa10
jmp 0x14000d64c
lea rdx, str.Failed_to_copy_file._Error:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
call fcn.1400087b0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
lea rdx, [0x140008b70]
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]
mov rdx, qword [rbp]
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
lea r8, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova r8, qword [rbp - 0x10]
cmp rdx, qword [rbp - 0x20]
jne 0x14000d64c
test rdx, rdx
je 0x14000d4e8
sub r8, rcx
nop word [rax + rax]
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x14000d64c
add rcx, 2
sub rdx, 1
jne 0x14000d4d0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rcx, qword [rbp - 0x30]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14000d5a1
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r8d, [rax + 0x19]
lea rdx, str.Failed_to_lock_the_file.
lea rcx, [rsp + 0x40]
call fcn.1400012b0
nop
lea rcx, [rsp + 0x40]
call fcn.14000e190
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000d64c
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d597
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d597
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
jmp 0x14000d64c
lea rax, str.SimpleTimeLoggerService
mov qword [rbp + 0x68], rax
lea rax, [0x14000df50]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x80], rdi
lea rcx, [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
test eax, eax
jne 0x14000d642
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea r8d, [rax + 0x2b]
lea rdx, str.Failed_to_start_service_control_dispatcher.
lea rcx, [rsp + 0x40]
call fcn.1400012b0
nop
lea rcx, [rsp + 0x40]
call fcn.14000e190
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000d642
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d63d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d63d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 7
jbe 0x14000d68f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d68a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d68a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], di
mov rdx, qword [rbp + 0x48]
cmp rdx, 7
jbe 0x14000d6e2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d6dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d6dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
movdqa xmm0, xmmword [0x1400155f0]
movdqu xmmword [rbp + 0x40], xmm0
mov word [rbp + 0x30], di
mov rdx, qword [rbp + 8]
cmp rdx, 7
jbe 0x14000d736
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d731
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d731
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
mov qword [rbp], rdi
mov qword [rbp + 8], 7
mov word [rbp - 0x10], di
mov rdx, qword [rbp + 0x28]
cmp rdx, 7
jbe 0x14000d78a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d784
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d784
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400109f0
nop
lea rcx, [rbp + 0x50]
call fcn.1400084b0
mov rcx, qword [rbp + 0x4b0]
xor rcx, rsp
call fcn.1400103e0
lea r11, [rsp + 0x5c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret