Function at 0x1400abaf4
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 [0x14017a608]
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 0x1400abbac
lea r9, [rsp + 0x30]
lea r8, str.GlobalCatalog
call fcn.1400ab898
mov ebx, eax
cmp eax, 0x80070002
je 0x1400abda6
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test ebx, ebx
jns 0x1400abbac
mov r10, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp r10, rcx
je 0x1400abba5
test byte [r10 + 0x1c], 1
je 0x1400abba5
cmp byte [r10 + 0x19], 2
jb 0x1400abba5
mov rcx, qword [r10 + 0x10]
lea edx, [r15 + 0x55]
mov r9d, ebx
lea r8, [0x14015fec8]
call fcn.140006bc4
mov eax, ebx
jmp 0x1400abda8
or rbx, 0xffffffffffffffff
mov r12d, 0x143
test rdi, rdi
je 0x1400abc2f
mov rax, rbx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400abbbe
cmp rax, 0x104
jb 0x1400abbe8
lea r8, str.wcslen_wszPathToDirectory____MAX_PATH
mov edx, 0xa0d
lea rcx, [0x14015f648]
call fcn.14008ac24
lea rax, [rsp + 0x40]
mov r8, rdi
sub r8, rax
lea rcx, [rsp + 0x40]
mov rdx, r12
lea rax, [rdx + 0x7ffffebb]
test rax, rax
je 0x1400abc1e
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400abc1e
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400abbfb
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
jmp 0x1400abc44
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.1400ab1c0
test eax, eax
js 0x1400abda8
lea r8, [0x140157a78]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14005485c
lea r8, [rsp + 0x40]
mov rdx, r12
lea rax, [rbp + 0x1d0]
sub r8, rax
lea rcx, [rbp + 0x1d0]
lea rax, [rdx + 0x7ffffebb]
test rax, rax
je 0x1400abc94
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400abc94
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x1400abc71
lea rax, [rcx - 2]
test rdx, rdx
cmovne rax, rcx
lea rcx, [rsp + 0x40]
mov word [rax], r15w
mov rax, rbx
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400abcab
add rax, 0x15
cmp rax, r12
jb 0x1400abcd6
lea r8, str.wcslen_wszPathOrg___wcslen_x_wszGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathOrg_
mov edx, 0xa24
lea rcx, [0x14015f648]
call fcn.14008ac24
lea r8, str.Catalog
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14005485c
lea r8, [0x140157a78]
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14005485c
lea r8, str.GlobalCatalog
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14005485c
lea rax, [rbp + 0x1d0]
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x1400abd19
add rbx, 0x1b
cmp rbx, r12
jb 0x1400abd44
lea r8, str.wcslen_wszPathBackup___wcslen_x_wszBackupGlobalCatalogName___wcslen__x_wszBLB_CATALOG___1___STRING_LEN_wszPathBackup_
mov edx, 0xa2d
lea rcx, [0x14015f648]
call fcn.14008ac24
lea r8, str.Catalog
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.14005485c
lea r8, [0x140157a78]
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.14005485c
lea r8, str.BackupGlobalCatalog
mov rdx, r12
lea rcx, [rbp + 0x1d0]
call fcn.14005485c
test r14d, r14d
je 0x1400abdd4
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x40]
call fcn.1400a71dc
test eax, eax
js 0x1400abda8
mov dword [rsi], 1
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.140001d90
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.1400ab898
mov ebx, eax
test eax, eax
jns 0x1400abe47
cmp eax, 0x80070002
je 0x1400abda6
mov r10, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp r10, rcx
je 0x1400abba5
test byte [r10 + 0x1c], 2
je 0x1400abba5
cmp byte [r10 + 0x19], 2
jb 0x1400abba5
mov rcx, qword [r10 + 0x10]
lea r9, str.BackupGlobalCatalog
mov edx, 0x56
mov dword [rsp + 0x20], eax
lea r8, [0x14015fec8]
call fcn.140011330
jmp 0x1400abba5
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
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]
nop dword [rax + rax]
test eax, eax
jne 0x1400abda6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rax, qword [0x14017a048]
lea rcx, [0x14017a048]
cmp rax, rcx
je 0x1400abecd
test byte [rax + 0x1c], 1
je 0x1400abecd
cmp byte [rax + 0x19], 2
jb 0x1400abecd
mov rcx, qword [rax + 0x10]
lea r8, [0x14015fec8]
mov edx, 0x57
mov r9d, ebx
call fcn.140011750
test ebx, ebx
jle 0x1400abba5
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1400abba5