Function at 0x1400b42d0
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 - 0x1f0]
sub rsp, 0x2f0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x340], rbx
mov rax, qword [0x14028e6b0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov rsi, rdx
mov r12, rcx
test rdx, rdx
jne 0x1400b4323
mov rax, qword [rcx + 0x890]
mov rsi, qword [rax + 0x38]
call fcn.1400417e0
cmp byte [rsi + 0xac], 0
jne 0x1400b47a3
cmp byte [rsi + 0x48], 0
je 0x1400b47a3
cmp dword [rsi + 0xa0], 2
jne 0x1400b435b
xor r8d, r8d
mov rdx, rsi
mov rcx, r12
call fcn.1400b4890
jmp 0x1400b47a5
call fcn.14000cdd0
mov rbx, rax
mov r15d, dword [rax + 0x280]
test r15d, r15d
je 0x1400b4782
lea r14, [rsi + 0xb0]
cmp qword [r14 + 0x18], 8
jb 0x1400b4384
mov r14, qword [r14]
mov rcx, r14
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdi, rax
xor r13d, r13d
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
cmp byte [rbx + 0x284], r13b
je 0x1400b4426
cmp qword [rbx + 0x298], r13
je 0x1400b4426
lea rdx, [rbx + 0x288]
lea rax, [rsp + 0x50]
or rbx, 0xffffffffffffffff
cmp rax, rdx
je 0x1400b43e8
mov r9, rbx
xor r8d, r8d
lea rcx, [rsp + 0x50]
call fcn.140006dd0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x60]
cmp word [rcx + rax*2 - 2], 0x5c
je 0x1400b4528
mov r8d, 1
lea rdx, [0x1401d3668]
lea rcx, [rsp + 0x50]
call fcn.140006a00
jmp 0x1400b4528
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
or rbx, 0xffffffffffffffff
cmp word [r14], 0
jne 0x1400b4450
mov r8, r13
jmp 0x1400b445e
mov r8, rbx
inc r8
cmp word [r14 + r8*2], 0
jne 0x1400b4453
mov rdx, r14
lea rcx, [rsp + 0x70]
call fcn.140006f10
nop
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.1400285c0
mov r8, qword [rbp - 0x58]
cmp r8, 8
jb 0x1400b4494
inc r8
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x70]
call fcn.140007680
lea rdx, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rdx, qword [rsp + 0x70]
cmp word [rdx], 0
jne 0x1400b44af
mov r8, r13
jmp 0x1400b44bd
mov r8, rbx
inc r8
cmp word [rdx + r8*2], 0
jne 0x1400b44b2
lea rcx, [rsp + 0x50]
call fcn.140006f10
mov r8d, 1
lea rdx, [0x1401d3668]
lea rcx, [rsp + 0x50]
call fcn.140006a00
cmp r15d, 2
jne 0x1400b44fa
lea r8d, [r15 + 8]
lea rdx, str.nppBackup_
lea rcx, [rsp + 0x50]
call fcn.140006a00
nop
mov r8, qword [rbp - 0x78]
cmp r8, 8
jb 0x1400b4516
inc r8
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x70]
call fcn.140007680
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], r13
mov word [rsp + 0x70], r13w
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x30]
call fcn.140187ea0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
mov r8d, 0x104
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [rbp - 0x30], 0
jne 0x1400b4566
mov r8, r13
jmp 0x1400b457b
lea rax, [rbp - 0x30]
mov r8, rbx
nop dword [rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x1400b4570
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x50]
call fcn.140006f10
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1400b45bd
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectory]
cmp r15d, 1
jne 0x1400b45e2
cmp word [rdi], 0
jne 0x1400b45d0
mov rbx, r13
jmp 0x1400b45da
inc rbx
cmp word [rdi + rbx*2], 0
jne 0x1400b45d0
mov rdx, rdi
jmp 0x1400b467e
cmp r15d, 2
jne 0x1400b46a2
xor ecx, ecx
call fcn.14019441c
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.14019433c
test rax, rax
je 0x1400b46a2
mov r9, rax
lea r8, str._Y__m__d__H_M_S
lea edx, [r15 + 0x1e]
lea rcx, [rbp - 0x70]
call fcn.140193748
cmp word [rdi], 0
jne 0x1400b462d
mov r8, r13
jmp 0x1400b463b
mov r8, rbx
inc r8
cmp word [rdi + r8*2], 0
jne 0x1400b4630
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140006a00
mov r8d, 1
lea rdx, [0x1401d30a0]
lea rcx, [rsp + 0x50]
call fcn.140006a00
cmp word [rbp - 0x70], 0
jne 0x1400b466b
mov rbx, r13
jmp 0x1400b467a
lea rax, [rbp - 0x70]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400b4670
lea rdx, [rbp - 0x70]
mov r8, rbx
lea rcx, [rsp + 0x50]
call fcn.140006a00
mov r8d, 4
lea rdx, str..bak
lea rcx, [rsp + 0x50]
call fcn.140006a00
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1400b4751
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 8
cmovae rdx, qword [rsp + 0x50]
mov rax, qword [r12]
lea rcx, [r12 + 0x478]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r13d
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.140070e40
cmp eax, 7
jne 0x1400b4751
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1400b473b
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140007680
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
jmp 0x1400b47a3
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x1400b476e
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140007680
mov qword [rsp + 0x68], 7
mov qword [rsp + 0x60], r13
mov word [rsp + 0x50], r13w
lea r8, [rsi + 0xb0]
cmp qword [r8 + 0x18], 8
jb 0x1400b4793
mov r8, qword [r8]
xor r9d, r9d
mov rdx, rsi
mov rcx, r12
call fcn.1400b05e0
jmp 0x1400b47a5
xor al, al
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.140168660
mov rbx, qword [rsp + 0x340]
add rsp, 0x2f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret