Function at 0x1400c76b4
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x460], rax
lea r8, [rsp + 0x30]
lea rdx, [0x140001808]
mov rbx, rcx
call fcn.1400c6f60
mov edi, eax
cmp eax, 0x80070002
je 0x1400c7989
mov rcx, qword [rsp + 0x30]
xor esi, esi
test eax, eax
jns 0x1400c771b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x1400c798b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rdi, 0xffffffffffffffff
mov r14d, 0x143
test rbx, rbx
je 0x1400c77cb
mov rax, rdi
inc rax
cmp word [rbx + rax*2], si
jne 0x1400c7737
cmp rax, 0x104
jb 0x1400c7760
lea r8, [0x14000b298]
lea rcx, [0x14000b1d0]
mov edx, 0xaa0
call fcn.1400a8be8
mov rax, rdi
inc rax
cmp word [rbx + rax*2], si
jne 0x1400c7763
cmp word [rbx + rax*2 - 2], 0x5c
jne 0x1400c778c
lea r8, [0x14000b550]
lea rcx, [0x14000b1d0]
mov edx, 0xaa1
call fcn.1400a8be8
lea rax, [rsp + 0x40]
mov rdx, r14
lea rcx, [rsp + 0x40]
sub rbx, rax
lea rax, [rdx + 0x7ffffebb]
test rax, rax
je 0x1400c77bd
movzx eax, word [rbx + rcx]
test ax, ax
je 0x1400c77bd
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400c779c
test rdx, rdx
jne 0x1400c77c6
sub rcx, 2
mov word [rcx], si
jmp 0x1400c77df
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400c7b84
test eax, eax
js 0x1400c798b
lea rbx, [0x140001800]
lea rcx, [rsp + 0x40]
mov rdx, r14
mov r8, rbx
call fcn.14006892c
lea rdx, [rsp + 0x40]
lea rax, [rbp + 0x1d0]
sub rdx, rax
mov r11, r14
lea rcx, [rbp + 0x1d0]
lea rax, [r11 + 0x7ffffebb]
test rax, rax
je 0x1400c7830
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400c7830
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x1400c780f
test r11, r11
jne 0x1400c7839
sub rcx, 2
mov word [rcx], si
mov rax, rdi
lea rcx, [rsp + 0x40]
inc rax
cmp word [rcx + rax*2], si
jne 0x1400c7844
add rax, 0x15
cmp rax, r14
jb 0x1400c786e
lea r8, [0x14000b7a0]
lea rcx, [0x14000b1d0]
mov edx, 0xab8
call fcn.1400a8be8
lea r8, [0x140001878]
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14006892c
lea rcx, [rsp + 0x40]
mov r8, rbx
mov rdx, r14
call fcn.14006892c
lea r8, [0x140001808]
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.14006892c
lea r11, [rbp + 0x1d0]
inc rdi
cmp word [r11 + rdi*2], si
jne 0x1400c78ad
add rdi, 0x1b
cmp rdi, r14
jb 0x1400c78d8
lea r8, [0x14000b810]
lea rcx, [0x14000b1d0]
mov edx, 0xac1
call fcn.1400a8be8
lea r8, [0x140001878]
lea rcx, [rbp + 0x1d0]
mov rdx, r14
call fcn.14006892c
lea rcx, [rbp + 0x1d0]
mov r8, rbx
mov rdx, r14
call fcn.14006892c
lea r8, [0x140001828]
lea rcx, [rbp + 0x1d0]
mov rdx, r14
call fcn.14006892c
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x1400c7989
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400c797a
test byte [rcx + 0x1c], 2
je 0x1400c797a
cmp byte [rcx + 0x19], 4
jb 0x1400c797a
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000bbb0]
mov edx, 0x58
mov r9d, ebx
call fcn.14001de24
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400c798b
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret