Function at 0x1400c58d0
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 [0x1402a6808]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov rdi, rdx
mov r13, rcx
test rdx, rdx
jne 0x1400c5923
mov rax, qword [rcx + 0x8d0]
mov rdi, qword [rax + 0x38]
call fcn.14004a480
cmp byte [rdi + 0xac], 0
jne 0x1400c5dbe
cmp byte [rdi + 0x48], 0
je 0x1400c5dbe
cmp dword [rdi + 0xa0], 2
jne 0x1400c595b
xor r8d, r8d
mov rdx, rdi
mov rcx, r13
call fcn.1400c5f40
jmp 0x1400c5dc0
call fcn.14000c980
mov rsi, rax
mov r12d, dword [rax + 0x2a0]
test r12d, r12d
je 0x1400c5e3b
lea r14, [rdi + 0xb0]
cmp qword [r14 + 0x18], 8
jb 0x1400c5984
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 [0x1401e3030]
movdqu xmmword [rsp + 0x68], xmm1
xor eax, eax
mov word [rsp + 0x58], ax
lea rbx, [rax - 1]
cmp byte [rsi + 0x2a4], al
je 0x1400c5ae3
cmp qword [rsi + 0x2b8], rax
je 0x1400c5ae3
lea r8, [rsi + 0x2a8]
lea rax, [rsp + 0x58]
cmp rax, r8
je 0x1400c59f7
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400c59e9
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
lea rcx, [rsp + 0x58]
call fcn.140006d60
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 0x1400c5a2c
mov r8d, 1
lea rdx, [0x1401e42c8]
lea rcx, [rsp + 0x58]
call fcn.140006a90
xor esi, esi
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x20]
call fcn.14019e060
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 0x1400c5a70
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x58]
call fcn.140006d60
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 0x1400c5abd
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 0x1400c5c21
nop word [rax + rax]
inc rbx
cmp word [r15 + rbx*2], 0
jne 0x1400c5ad0
mov rdx, r15
jmp 0x1400c5cae
movdqu xmmword [rbp - 0x78], xmm0
movdqa xmm1, xmmword [0x1401e3030]
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 0x1400c5b00
mov rdx, r14
lea rcx, [rsp + 0x78]
call fcn.140006d60
nop
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x60]
call fcn.140027c60
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400c5b66
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c5b61
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c5e65
call fcn.14017f5e4
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 0x1400c5b80
lea rcx, [rsp + 0x58]
call fcn.140006d60
mov r8d, 1
lea rdx, [0x1401e42c8]
lea rcx, [rsp + 0x58]
call fcn.140006a90
cmp r12d, 2
jne 0x1400c5bc9
lea r8d, [r12 + 8]
lea rdx, str.nppBackup_
lea rcx, [rsp + 0x58]
call fcn.140006a90
nop
mov rdx, qword [rbp - 0x70]
cmp rdx, 8
jb 0x1400c5c0a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c5c05
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c5e6b
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rbp - 0x78], xmm0
mov word [rsp + 0x78], si
jmp 0x1400c5a2e
cmp r12d, 2
jne 0x1400c5cd2
xor ecx, ecx
call fcn.1401aaec0
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x48]
call fcn.1401aade0
test rax, rax
je 0x1400c5cd2
mov r9, rax
lea r8, str._Y__m__d__H_M_S
lea edx, [r12 + 0x1e]
lea rcx, [rbp - 0x60]
call fcn.1401a9f18
mov r8, rbx
inc r8
cmp word [r15 + r8*2], 0
jne 0x1400c5c65
mov rdx, r15
lea rcx, [rsp + 0x58]
call fcn.140006a90
mov r8d, 1
lea rdx, [0x1401e3cd0]
lea rcx, [rsp + 0x58]
call fcn.140006a90
lea rax, [rbp - 0x60]
nop dword [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400c5ca0
lea rdx, [rbp - 0x60]
mov r8, rbx
lea rcx, [rsp + 0x58]
call fcn.140006a90
mov r8d, 4
lea rdx, str..bak
lea rcx, [rsp + 0x58]
call fcn.140006a90
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 0x1400c5dea
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.14007aff0
cmp eax, 7
jne 0x1400c5dea
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x1400c5dab
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c5da6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c5e71
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
xor al, al
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.14017f700
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 0x1400c5e28
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400c5e23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400c5e5f
call fcn.14017f5e4
movdqa xmm0, xmmword [0x1401e3030]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], si
lea r8, [rdi + 0xb0]
cmp qword [r8 + 0x18], 8
jb 0x1400c5e4c
mov r8, qword [r8]
xor r9d, r9d
mov rdx, rdi
mov rcx, r13
call fcn.1400c1ca0
jmp 0x1400c5dc0
call fcn.1401a10ac
nop
call fcn.1401a10ac
nop
call fcn.1401a10ac
nop
call fcn.1401a10ac
int3