Function at 0x1400c6df0
Capabilities:
Check if file exists
Copy file
Query environment variable

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [0x1402a98a8]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, rdx
mov r13, rcx
test rdx, rdx
jne 0x1400c6e43
mov rax, qword [rcx + 0x8d0]
mov rdi, qword [rax + 0x38]
call fcn.14004a380
cmp byte [rdi + 0xac], 0
jne 0x1400c72de
cmp byte [rdi + 0x48], 0
je 0x1400c72de
cmp dword [rdi + 0xa0], 2
jne 0x1400c6e7b
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call fcn.1400c7460
jmp 0x1400c72e0
call fcn.14000c990
mov rsi, rax
mov r12d, dword [rax + 0x2a0]
test r12d, r12d
je 0x1400c735b
lea r14, [rdi + 0xb0]
cmp qword [r14 + 0x18], 8
jb 0x1400c6ea4
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov r15, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x68], xmm0
movdqa xmm1, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x68], xmm1
xor eax, eax
mov word [rsp + 0x58], ax
lea rbx, [rax - 1]
cmp byte [rsi + 0x2a4], al
je 0x1400c7003
cmp qword [rsi + 0x2b8], rax
je 0x1400c7003
lea r8, [rsi + 0x2a8]
lea rax, [rsp + 0x58]
cmp rax, r8
je 0x1400c6f17
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400c6f09
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x58]
call fcn.140006d70
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x68]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x1400c6f4c
mov r8d, 1
lea rdx, [0x1401e62c8]
lea rcx, [rsp + 0x58]
call fcn.140006aa0
xor esi, esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.14019fd40
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
mov r8d, 0x104
lea rdx, [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rax, [rbp - 0x20]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400c6f90
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.140006d70
lea rcx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rcx, qword [rsp + 0x58]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400c6fdd
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp r12d, 1
jne 0x1400c7141
nop word [rax + rax]
inc rbx
cmp word [r15 + rbx*2], 0
jne 0x1400c6ff0
mov rdx, r15
jmp 0x1400c71ce
movdqu xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [0x1401e5030]
movdqu xmmword [rbp - 0x78], xmm1
xor esi, esi
mov word [rsp + 0x78], si
mov r8, rbx
nop
inc r8
cmp word [r14 + r8*2], si
jne 0x1400c7020
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140006d70
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.140027cc0
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400c7086
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c7081
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c7385
call fcn.1401812c4
lea rdx, [rsp + 0x78]
cmp qword [rbp - 0x70], 8
cmovae rdx, qword [rsp + 0x78]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400c70a0
lea rcx, [rsp + 0x58]
call fcn.140006d70
mov r8d, 1
lea rdx, [0x1401e62c8]
lea rcx, [rsp + 0x58]
call fcn.140006aa0
cmp r12d, 2
jne 0x1400c70e9
lea r8d, [r12 + 8]
lea rdx, str.nppBackup_
lea rcx, [rsp + 0x58]
call fcn.140006aa0
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400c712a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c7125
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c738b
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], si
jmp 0x1400c6f4e
cmp r12d, 2
jne 0x1400c71f2
xor ecx, ecx
call fcn.1401acba0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.1401acac0
test rax, rax
je 0x1400c71f2
mov r9, rax
lea r8, str._Y__m__d__H_M_S
lea edx, [r12 + 0x1e]
lea rcx, [rbp - 0x60]
call fcn.1401abbf8
mov r8, rbx
inc r8
cmp word [r15 + r8*2], 0
jne 0x1400c7185
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140006aa0
mov r8d, 1
lea rdx, [0x1401e5cd0]
lea rcx, [rsp + 0x58]
call fcn.140006aa0
lea rax, [rbp - 0x60]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400c71c0
lea rdx, [rbp - 0x60]
mov r8, rbx
lea rcx, [rsp + 0x58]
call fcn.140006aa0
mov r8d, 4
lea rdx, str..bak
lea rcx, [rsp + 0x58]
call fcn.140006aa0
mov dword [rsp + 0x40], esi
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov dword [rsp + 0x28], 0x1000
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x1400c730a
lea rdx, [rsp + 0x58]
cmp qword [rsp + 0x70], 8
cmovae rdx, qword [rsp + 0x58]
mov rax, qword [r13]
lea rcx, [r13 + 0x478]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], 0x14
lea rdx, str.File_Backup_Failed
mov qword [rsp + 0x20], rdx
lea r9, str.The_previous_version_of_the_file_could_not_be_saved_into_the_backup_directory_at___STR_REPLACE__._r_rDo_you_want_to_save_the_current_file_anyways_
mov r8, qword [rax + 0x18]
lea rdx, str.FileBackupFailed
call fcn.14007c160
cmp eax, 7
jne 0x1400c730a
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400c72cb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c72c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c7391
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
xor al, al
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.1401813e0
mov rbx, qword [rsp + 0x350]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400c7348
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c7343
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c737f
call fcn.1401812c4
movdqa xmm0, xmmword [0x1401e5030]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
lea r8, [rdi + 0xb0]
cmp qword [r8 + 0x18], 8
jb 0x1400c736c
mov r8, qword [r8]
xor r9d, r9d
mov rdx, rdi
mov rcx, r13
call fcn.1400c31c0
jmp 0x1400c72e0
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
nop
call fcn.1401a2d8c
int3