Function at 0x1400aa7d4
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 [0x14017a608]
xor rax, rsp
mov qword [rbp + 0x460], rax
lea r9, [rsp + 0x30]
mov rbx, rdx
lea r8, str.GlobalCatalog
call fcn.1400ab898
mov edi, eax
cmp eax, 0x80070002
je 0x1400aaac3
mov rcx, qword [rsp + 0x30]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test edi, edi
jns 0x1400aa846
mov eax, edi
jmp 0x1400aaac5
or rdi, 0xffffffffffffffff
mov r14d, 0x143
test rbx, rbx
je 0x1400aa8f3
mov rax, rdi
inc rax
cmp word [rbx + rax*2], si
jne 0x1400aa85c
cmp rax, 0x104
jb 0x1400aa885
lea r8, str.wcslen_wszPathToDirectory____MAX_PATH
mov edx, 0xaa0
lea rcx, [0x14015f648]
call fcn.14008ac24
mov rax, rdi
inc rax
cmp word [rbx + rax*2], si
jne 0x1400aa888
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x1400aa8b1
lea r8, str.wszPathToDirectory_wcslen_wszPathToDirectory____1____L
mov edx, 0xaa1
lea rcx, [0x14015f648]
call fcn.14008ac24
lea rax, [rsp + 0x40]
mov rdx, r14
sub rbx, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffebb]
test rax, rax
je 0x1400aa8e3
movzx eax, word [rbx + rcx]
test ax, ax
je 0x1400aa8e3
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400aa8c1
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], si
jmp 0x1400aa908
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.1400ab1c0
test eax, eax
js 0x1400aaac5
lea rbx, [0x140157a78]
mov rdx, r14
mov r8, rbx
lea rcx, [rsp + 0x40]
call fcn.14005485c
lea r8, [rsp + 0x40]
mov rdx, r14
lea rax, [rbp + 0x1d0]
sub r8, rax
lea rcx, [rbp + 0x1d0]
lea rax, [rdx + 0x7ffffebb]
test rax, rax
je 0x1400aa95b
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400aa95b
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400aa938
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov word [rax], si
mov rax, rdi
inc rax
cmp word [rcx + rax*2], si
jne 0x1400aa971
add rax, 0x15
cmp rax, r14
jb 0x1400aa99b
lea r8, str.wcslen_wszPathOrg___wcslen_x_wszGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathOrg_
mov edx, 0xab8
lea rcx, [0x14015f648]
call fcn.14008ac24
lea r8, str.Catalog
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14005485c
mov r8, rbx
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14005485c
lea r8, str.GlobalCatalog
mov rdx, r14
lea rcx, [rsp + 0x40]
call fcn.14005485c
lea rax, [rbp + 0x1d0]
inc rdi
cmp word [rax + rdi*2], si
jne 0x1400aa9da
add rdi, 0x1b
cmp rdi, r14
jb 0x1400aaa04
lea r8, str.wcslen_wszPathBackup___wcslen_x_wszBackupGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathBackup_
mov edx, 0xac1
lea rcx, [0x14015f648]
call fcn.14008ac24
lea r8, str.Catalog
mov rdx, r14
lea rcx, [rbp + 0x1d0]
call fcn.14005485c
mov r8, rbx
lea rcx, [rbp + 0x1d0]
mov rdx, r14
call fcn.14005485c
lea r8, str.BackupGlobalCatalog
mov rdx, r14
lea rcx, [rbp + 0x1d0]
call fcn.14005485c
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]
nop dword [rax + rax]
test eax, eax
jne 0x1400aaac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14017a048]
lea rax, [0x14017a048]
cmp rcx, rax
je 0x1400aaab2
test byte [rcx + 0x1c], 2
je 0x1400aaab2
cmp byte [rcx + 0x19], 4
jb 0x1400aaab2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015fec8]
mov edx, 0x58
mov r9d, ebx
call fcn.140011750
test ebx, ebx
jle 0x1400aaabf
movzx ebx, bx
or ebx, 0x80070000
mov eax, ebx
jmp 0x1400aaac5
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.140001d90
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