Function at 0x1400b2730
Capabilities:
Copy file

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov rax, qword [0x140398250]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov rdi, r8
mov r12, rdx
mov rsi, rcx
xor r8d, r8d
lea rdx, str.CBaseInfoCustomDrv::BackupUPDRenameFile
lea rcx, [rsp + 0x40]
call fcn.1400075a0
nop
xor ebx, ebx
test r12, r12
je 0x1400b29ca
test rdi, rdi
je 0x1400b29ca
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1d0]
call fcn.14024b970
lea rdx, [rsi + 0x30]
cmp qword [rdx + 0x18], 8
jb 0x1400b27b4
mov rdx, qword [rdx]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdx
lea r9, [0x1402e3978]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp + 0x1d0]
call fcn.14024679c
test eax, eax
jns 0x1400b27f2
mov ebx, 0x80010041
mov dword [0x1403b95bc], 0x41
jmp 0x1400b29d9
lea rax, [rsi + 0x80]
cmp qword [rax + 0x18], 8
jb 0x1400b2803
mov rax, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea r9, [0x1402e3978]
or r8, 0xffffffffffffffff
mov edx, 0x104
lea rcx, [rbp - 0x40]
call fcn.14024679c
test eax, eax
js 0x1400b27de
lea r9, [rbp + 0x1d0]
lea r8, str._t_t_texisting_file___s
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
lea r9, [rbp - 0x40]
lea r8, str._t_t_tnew_file________s
mov edx, 7
lea rcx, [rsp + 0x40]
call fcn.140007780
xor r8d, r8d
lea rdx, [rbp - 0x40]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, 1
jne 0x1400b2953
mov qword [rbp - 0x78], 7
mov qword [rbp - 0x80], rbx
mov word [rsp + 0x70], bx
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r12
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r12
lea rcx, [rsp + 0x70]
call fcn.140001f40
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbp - 0x40]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x68]
call fcn.140001f40
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsi + 0xf0]
call fcn.1400f4af0
mov r8, rax
lea rdx, [rsp + 0x50]
lea rcx, [rsi + 0xf0]
call fcn.140028e50
nop
cmp qword [rbp - 0x50], 8
jb 0x1400b2918
mov rcx, qword [rbp - 0x68]
call fcn.1401026ec
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
cmp qword [rbp - 0x78], 8
jb 0x1400b2939
mov rcx, qword [rsp + 0x70]
call fcn.1401026ec
mov rax, qword [rsi]
lea r8, [rbp - 0x40]
mov rdx, r12
mov rcx, rsi
call qword [rax + 0xe8]
mov ebx, eax
jmp 0x1400b29d9
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x409
mov r8d, edi
xor edx, edx
mov ecx, 0x1300
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
je 0x1400b29b8
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
lea r9, str._t_t_tCopyFile
lea r8, str.ApiName:__s__ErrorCode:__d_:__s
mov edx, 6
lea rcx, [rsp + 0x40]
call fcn.140007780
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400b29d9
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1400b29d9
mov ebx, 0x80010001
mov dword [0x1403b95bc], 1
mov r9d, ebx
lea r8, str.return___08x
mov edx, 2
lea rcx, [rsp + 0x40]
call fcn.140007780
nop
lea rcx, [rsp + 0x40]
call fcn.140007730
mov eax, ebx
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140245660
add rsp, 0x4f0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret