Function at 0x14000ce94
Capabilities:
Copy file
Get common file path
Move file

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x230
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14003b3c0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov rdi, rcx
call fcn.14001368c
mov esi, eax
mov r13d, 0xf
mov qword [rbp - 0x20], r13
xor r14d, r14d
mov qword [rbp - 0x28], r14
mov byte [rbp - 0x38], r14b
mov qword [rbp], r13
mov qword [rbp - 8], r14
mov byte [rbp - 0x18], r14b
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], r14b
or r12, 0xffffffffffffffff
cmp byte [rdi], r14b
jne 0x14000cf19
mov r8d, r14d
jmp 0x14000cf25
mov r8, r12
inc r8
cmp byte [rdi + r8], r14b
jne 0x14000cf1c
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140004d6c
nop
lea r9, [rbp - 0x38]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x78]
mov cl, 0x5c
call fcn.140013eec
test al, al
sete bl
mov r15d, 0x10
cmp qword [rbp - 0x60], r15
jb 0x14000cf5f
mov rcx, qword [rbp - 0x78]
call fcn.140014150
test bl, bl
je 0x14000cf85
cmp byte [rdi], r14b
jne 0x14000cf6d
mov r8, r14
jmp 0x14000cf79
mov r8, r12
inc r8
cmp byte [rdi + r8], r14b
jne 0x14000cf70
mov rdx, rdi
lea rcx, [rbp - 0x38]
call fcn.140004d6c
mov edx, 0x104
lea rcx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov qword [rbp - 0x80], r13
mov qword [rsp + 0x78], r14
mov byte [rsp + 0x68], r14b
cmp byte [rbp + 0x10], r14b
jne 0x14000cfad
mov r8, r14
jmp 0x14000cfbd
lea rax, [rbp + 0x10]
mov r8, r12
inc r8
cmp byte [rax + r8], r14b
jne 0x14000cfb4
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x68]
call fcn.140004d6c
mov dl, 0x5c
lea rcx, [rsp + 0x68]
call fcn.14000b244
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x68]
call fcn.14000b5b0
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r14
mov byte [rsp + 0x48], r14b
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x48]
call fcn.140004a58
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
call fcn.14001615c
mov qword [rbp - 0x40], r13
mov qword [rbp - 0x48], r14
mov byte [rbp - 0x58], r14b
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x58]
call fcn.140004a58
mov dl, 0x2e
lea rcx, [rbp - 0x58]
call fcn.14000b244
lea rcx, [rbp - 0x78]
call fcn.14000ccf0
nop
mov r9, r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000b5b0
nop
cmp qword [rbp - 0x60], r15
jb 0x14000d073
mov rcx, qword [rbp - 0x78]
call fcn.140014150
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], r15
cmovae rcx, qword [rbp - 0x58]
lea rdx, [0x140034848]
call fcn.14001552c
test rax, rax
je 0x14000d09b
mov rcx, rax
call fcn.14001516c
jmp 0x14000d028
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x68]
call fcn.140004a58
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], r15
cmovae rdx, qword [rsp + 0x68]
lea rcx, str.Trying_to_copy_LSP_to:__s_n
call fcn.140012a78
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], r15
cmovae rdx, qword [rsp + 0x68]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x14000d11b
lea rbx, [rsp + 0x68]
cmp qword [rbp - 0x80], r15
cmovae rbx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rbx
mov rdx, rdi
lea rcx, str.Failed_to_copy_LSP:__s_to:__s_with_error_code:__i_n
call fcn.140012a78
mov ebx, r14d
jmp 0x14000d3d8
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x28], r14b
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], r15
cmovae rdx, qword [rsp + 0x48]
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x78], r14b
cmp byte [rdx], r14b
jne 0x14000d150
mov r8, r14
jmp 0x14000d15c
mov r8, r12
inc r8
cmp byte [rdx + r8], r14b
jne 0x14000d153
lea rcx, [rbp - 0x78]
call fcn.140004d6c
lea rcx, [rbp - 0x78]
cmp qword [rbp - 0x60], r15
cmovae rcx, qword [rbp - 0x78]
lea rdx, [0x140034848]
call fcn.14001552c
test rax, rax
jne 0x14000d188
mov ebx, r14d
jmp 0x14000d195
mov rcx, rax
call fcn.14001516c
mov ebx, 1
cmp qword [rbp - 0x60], r15
jb 0x14000d1a4
mov rcx, qword [rbp - 0x78]
call fcn.140014150
test ebx, ebx
je 0x14000d2a2
mov r9, r12
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x58]
call fcn.140004a58
lea rdx, str..old.
lea rcx, [rbp - 0x58]
call fcn.14000b300
lea rcx, [rbp - 0x78]
call fcn.14000ccf0
nop
mov r9, r12
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp - 0x58]
call fcn.14000b5b0
nop
cmp qword [rbp - 0x60], r15
jb 0x14000d1fc
mov rcx, qword [rbp - 0x78]
call fcn.140014150
lea rcx, [rbp - 0x58]
cmp qword [rbp - 0x40], r15
cmovae rcx, qword [rbp - 0x58]
lea rdx, [0x140034848]
call fcn.14001552c
test rax, rax
je 0x14000d224
mov rcx, rax
call fcn.14001516c
jmp 0x14000d1ac
mov r9, r12
xor r8d, r8d
lea rdx, [rbp - 0x58]
lea rcx, [rsp + 0x28]
call fcn.140004a58
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], r15
cmovae rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x48]
cmp qword [rsp + 0x60], r15
cmovae rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14000d2a2
lea rdi, [rsp + 0x28]
cmp qword [rsp + 0x40], r15
cmovae rdi, qword [rsp + 0x28]
lea rbx, [rsp + 0x48]
cmp qword [rsp + 0x60], r15
cmovae rbx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rdi
mov rdx, rbx
lea rcx, str.Failed_to_rename_LSP:__s_to:__s_with_error_code:__i_n
call fcn.140012a78
jmp 0x14000d33c
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], r15
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x80], r15
cmovae rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14000d341
lea rdi, [rsp + 0x48]
cmp qword [rsp + 0x60], r15
cmovae rdi, qword [rsp + 0x48]
lea rbx, [rsp + 0x68]
cmp qword [rbp - 0x80], r15
cmovae rbx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8, rdi
mov rdx, rbx
lea rcx, str.Failed_to_rename_new_LSP:__s_to:__s_with_error_code:__i_n
call fcn.140012a78
cmp qword [rsp + 0x38], r14
je 0x14000d33c
lea rdx, [rsp + 0x48]
cmp qword [rsp + 0x60], r15
cmovae rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], r15
cmovae rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x14000d33c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, r14d
jmp 0x14000d3b8
cmp qword [rsp + 0x38], r14
je 0x14000d3b3
cmp esi, 3
jl 0x14000d3b3
lea rcx, [rsp + 0x28]
cmp qword [rsp + 0x40], r15
cmovae rcx, qword [rsp + 0x28]
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x14000d397
lea rbx, [rsp + 0x28]
cmp qword [rsp + 0x40], r15
cmovae rbx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, rbx
lea rcx, str.Failed_to_schedule_file__s_deletion_on_next_reboot_with_error:__i_n
call fcn.140012a78
jmp 0x14000d3b3
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], r15
cmovae rdx, qword [rsp + 0x28]
lea rcx, str.File___s__scheduled_to_be_deleted_on_next_reboot__n
call fcn.140012a78
mov ebx, 1
cmp qword [rsp + 0x40], r15
jb 0x14000d3c9
mov rcx, qword [rsp + 0x28]
call fcn.140014150
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r14
mov byte [rsp + 0x28], r14b
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x58]
call fcn.140004b7c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x48]
call fcn.140004b7c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x68]
call fcn.140004b7c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x18]
call fcn.140004b7c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x38]
call fcn.140004b7c
mov eax, ebx
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.140014130
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret