Function at 0x1400b2df0
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x7e0]
sub rsp, 0x8e0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x920], rbx
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov r12, rdx
mov rsi, rcx
xor r8d, r8d
lea rdx, str.CBaseInfoCustomDrv::RestoreUPDRenameFile
lea rcx, [rsp + 0x50]
call fcn.1400075a0
nop
xor r13d, r13d
mov edi, r13d
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
test r12, r12
jne 0x1400b2e76
mov edi, 0x80010001
mov dword [0x1403b95bc], 1
jmp 0x1400b307e
mov qword [rsp + 0x40], 0x104
lea rax, [rbp + 0x3b0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0x104
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r12
call fcn.140247424
lea r11, [rbp + 0x3b0]
mov qword [rsp + 0x28], r11
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x104
lea rcx, [rbp + 0x5c0]
call fcn.140248e70
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call fcn.14024b970
lea r11, [rsi + 0x30]
cmp qword [r11 + 0x18], 8
jb 0x1400b2f03
mov r11, qword [r11]
lea rax, [rbp + 0x5c0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r11
lea r9, [0x1402e3978]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp - 0x70]
call fcn.14024679c
test eax, eax
jns 0x1400b2f45
mov edi, 0x80010041
mov dword [0x1403b95bc], 0x41
jmp 0x1400b307e
mov r9, r12
lea r8, str._t_t_texisting_file___s
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
lea r9, [rbp - 0x70]
lea r8, str._t_t_tnew_file________s
mov edx, 7
lea rcx, [rsp + 0x50]
call fcn.140007780
xor r8d, r8d
lea rdx, [rbp - 0x70]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
jne 0x1400b306f
mov rax, qword [rsi + 0xf8]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400b3043
nop word [rax + rax]
lea rdx, [rbx + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x68]
call fcn.140001e00
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1400b307e
cmp byte [rbx + 0x69], 0
jne 0x1400b3036
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x69], 0
jne 0x1400b3010
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
jne 0x1400b3036
mov rbx, rax
mov rax, qword [rax]
cmp byte [rax + 0x69], 0
je 0x1400b3002
jmp 0x1400b3036
mov rax, qword [rbx + 8]
cmp byte [rax + 0x69], 0
jne 0x1400b3033
nop word [rax + rax]
cmp rbx, qword [rax + 0x10]
jne 0x1400b3033
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x69], 0
je 0x1400b3020
mov rbx, rax
cmp rbx, qword [rsi + 0xf8]
jne 0x1400b2fb0
mov edx, 0x20
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400b307e
mov edi, 0x8001000e
mov dword [0x1403b95bc], 0xe
jmp 0x1400b307e
mov edi, 0x8001000c
mov dword [0x1403b95bc], 0xc
mov r9d, edi
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x50]
call fcn.140007780
nop
cmp qword [rbp - 0x80], 8
jb 0x1400b30a9
mov rcx, qword [rsp + 0x68]
call fcn.1401026ec
mov qword [rbp - 0x80], 7
mov qword [rsp + 0x78], r13
mov word [rsp + 0x68], r13w
lea rcx, [rsp + 0x50]
call fcn.140007730
mov eax, edi
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140245660
mov rbx, qword [rsp + 0x920]
add rsp, 0x8e0
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret