Function at 0x1400a4b40
Capabilities:
Copy file

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x478]
sub rsp, 0x570
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x460], rax
lea r9, [rsp + 0x30]
mov rdi, rdx
lea r8, str.GlobalCatalog
call fcn.1400a447c
mov ebx, eax
cmp eax, 0x80070002
je 0x1400a4db7
mov rcx, qword [rsp + 0x30]
xor esi, esi
test eax, eax
jns 0x1400a4bac
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400a4db9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rbx, 0xffffffffffffffff
mov r14d, 0x143
test rdi, rdi
je 0x1400a4c2b
mov rax, rbx
inc rax
cmp word [rdi + rax*2], si
jne 0x1400a4bc4
cmp rax, 0x104
jb 0x1400a4bed
lea r8, str.wcslen_wszPathToDirectory____MAX_PATH
mov edx, 0xaa0
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
mov rax, rbx
inc rax
cmp word [rdi + rax*2], si
jne 0x1400a4bf0
cmp word [rdi + rax*2 - 2], 0x5c
jne 0x1400a4c19
lea r8, str.wszPathToDirectory_wcslen_wszPathToDirectory____1____L
mov edx, 0xaa1
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
mov r8, rdi
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14003b8c0
jmp 0x1400a4c40
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.1400a4f88
test eax, eax
js 0x1400a4db9
lea rdi, [0x14014d7b8]
mov rdx, r14
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.140052af4
lea r8, [rsp + 0x40]
mov rdx, r14
lea rcx, [rbp + 0x1d0]
call fcn.14003b8c0
lea rcx, [rsp + 0x40]
mov rax, rbx
inc rax
cmp word [rcx + rax*2], si
jne 0x1400a4c73
add rax, 0x15
cmp rax, r14
jb 0x1400a4c9d
lea r8, str.wcslen_wszPathOrg___wcslen_x_wszGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathOrg_
mov edx, 0xab8
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
lea r8, str.Catalog
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140052af4
mov r8, rdi
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140052af4
lea r8, str.GlobalCatalog
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140052af4
lea rax, [rbp + 0x1d0]
inc rbx
cmp word [rax + rbx*2], si
jne 0x1400a4cdc
add rbx, 0x1b
cmp rbx, r14
jb 0x1400a4d06
lea r8, str.wcslen_wszPathBackup___wcslen_x_wszBackupGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathBackup_
mov edx, 0xac1
lea rcx, str.base_stor_blbcatalogcatsys.cpp
call fcn.14008624c
lea r8, str.Catalog
mov rdx, r14
lea rcx, [rbp + 0x1d0]
call fcn.140052af4
mov r8, rdi
lea rcx, [rbp + 0x1d0]
mov rdx, r14
call fcn.140052af4
lea r8, str.BackupGlobalCatalog
mov rdx, r14
lea rcx, [rbp + 0x1d0]
call fcn.140052af4
xor r9d, r9d
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x1400a4db7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x1401782b0]
lea rax, [0x1401782b0]
cmp rcx, rax
je 0x1400a4da8
test byte [rcx + 0x1c], 2
je 0x1400a4da8
cmp byte [rcx + 0x19], 4
jb 0x1400a4da8
mov rcx, qword [rcx + 0x10]
lea r8, [0x1401575f8]
mov edx, 0x58
mov r9d, ebx
call fcn.140004c90
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400a4db9
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret