Function at 0x1400a47d0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x460], rax
xor r15d, r15d
mov rsi, r9
mov dword [r9], r15d
mov r14d, r8d
mov rdi, rdx
test r8d, r8d
je 0x1400a4886
lea r9, [rsp + 0x30]
lea r8, str.GlobalCatalog
call fcn.1400a447c
mov ebx, eax
cmp eax, 0x80070002
je 0x1400a4a14
mov rcx, qword [rsp + 0x30]
test eax, eax
jns 0x1400a4880
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400a4879
test byte [rcx + 0x1c], 1
je 0x1400a4879
cmp byte [rcx + 0x19], 2
jb 0x1400a4879
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x55]
mov r9d, ebx
lea r8, [0x140157608]
call fcn.140004c90
mov eax, ebx
jmp 0x1400a4a16
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rbx, 0xffffffffffffffff
mov r12d, 0x143
test rdi, rdi
je 0x1400a48d4
mov rax, rbx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400a4898
cmp rax, 0x104
jb 0x1400a48c2
lea r8, str.wcslen_wszPathToDirectory____MAX_PATH
mov edx, 0xa0d
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
mov r8, rdi
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.14003b8c0
jmp 0x1400a48e9
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.1400a4f88
test eax, eax
js 0x1400a4a16
lea r8, [0x14014d7b8]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140052af4
lea r8, [rsp + 0x40]
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.14003b8c0
lea rcx, [rsp + 0x40]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400a4919
add rax, 0x15
cmp rax, r12
jb 0x1400a4944
lea r8, str.wcslen_wszPathOrg___wcslen_x_wszGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathOrg_
mov edx, 0xa24
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
lea r8, str.Catalog
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140052af4
lea r8, [0x14014d7b8]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140052af4
lea r8, str.GlobalCatalog
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140052af4
lea rax, [rbp + 0x1d0]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x1400a4987
add rbx, 0x1b
cmp rbx, r12
jb 0x1400a49b2
lea r8, str.wcslen_wszPathBackup___wcslen_x_wszBackupGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathBackup_
mov edx, 0xa2d
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
lea r8, str.Catalog
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.140052af4
lea r8, [0x14014d7b8]
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.140052af4
lea r8, str.BackupGlobalCatalog
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.140052af4
test r14d, r14d
je 0x1400a4a41
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x40]
call fcn.1400a469c
test eax, eax
js 0x1400a4a16
mov dword [rsi], 1
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r9, [rsp + 0x30]
mov rdx, rdi
lea r8, str.BackupGlobalCatalog
call fcn.1400a447c
mov ebx, eax
test eax, eax
jns 0x1400a4ab2
cmp eax, 0x80070002
je 0x1400a4a14
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400a4879
test byte [rcx + 0x1c], 2
je 0x1400a4879
cmp byte [rcx + 0x19], 2
jb 0x1400a4879
mov rcx, qword [rcx + 0x10]
lea r9, str.BackupGlobalCatalog
mov edx, 0x56
mov dword [rsp + 0x20], ebx
lea r8, [0x140157608]
call fcn.140005ce8
jmp 0x1400a4879
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov dword [rsp + 0x28], r15d
xor r8d, r8d
mov qword [rsp + 0x20], r15
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x1400a4a14
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400a4b26
test byte [rcx + 0x1c], 1
je 0x1400a4b26
cmp byte [rcx + 0x19], 2
jb 0x1400a4b26
mov rcx, qword [rcx + 0x10]
lea r8, [0x140157608]
mov edx, 0x57
mov r9d, ebx
call fcn.140004c90
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400a4a16