Function at 0x1400c72e0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x470]
sub rsp, 0x570
mov rax, qword [0x14017d140]
xor rax, rsp
mov qword [rbp + 0x460], rax
xor r15d, r15d
mov rsi, r8
mov r14d, edx
mov rdi, rcx
mov dword [r8], r15d
test edx, edx
je 0x1400c7395
lea r8, [rsp + 0x30]
lea rdx, [0x140001808]
call fcn.1400c6f60
mov ebx, eax
cmp eax, 0x80070002
je 0x1400c7587
mov rcx, qword [rsp + 0x30]
test eax, eax
jns 0x1400c738f
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400c7388
test byte [rcx + 0x1c], 1
je 0x1400c7388
cmp byte [rcx + 0x19], 2
jb 0x1400c7388
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x55]
lea r8, [0x14000bbb0]
mov r9d, ebx
call fcn.14001de24
mov eax, ebx
jmp 0x1400c7589
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or rbx, 0xffffffffffffffff
mov r12d, 0x143
test rdi, rdi
je 0x1400c7415
mov rax, rbx
inc rax
cmp word [rdi + rax*2], r15w
jne 0x1400c73a7
cmp rax, 0x104
jb 0x1400c73d1
lea r8, [0x14000b298]
lea rcx, [0x14000b1d0]
mov edx, 0xa0d
call fcn.1400a8be8
lea rax, [rsp + 0x40]
mov r8, rdi
mov rdx, r12
sub r8, rax
lea rcx, [rsp + 0x40]
lea rax, [rdx + 0x7ffffebb]
test rax, rax
je 0x1400c7406
movzx eax, word [r8 + rcx]
test ax, ax
je 0x1400c7406
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x1400c73e4
test rdx, rdx
jne 0x1400c740f
sub rcx, 2
mov word [rcx], r15w
jmp 0x1400c7429
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400c7b84
test eax, eax
js 0x1400c7589
lea r8, [0x140001800]
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.14006892c
lea rdx, [rsp + 0x40]
lea rax, [rbp + 0x1d0]
sub rdx, rax
mov r11, r12
lea rcx, [rbp + 0x1d0]
lea rax, [r11 + 0x7ffffebb]
test rax, rax
je 0x1400c7477
movzx eax, word [rdx + rcx]
test ax, ax
je 0x1400c7477
mov word [rcx], ax
add rcx, 2
dec r11
jne 0x1400c7456
test r11, r11
jne 0x1400c7480
sub rcx, 2
mov word [rcx], r15w
mov rax, rbx
lea rcx, [rsp + 0x40]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x1400c748c
add rax, 0x15
cmp rax, r12
jb 0x1400c74b7
lea r8, [0x14000b7a0]
lea rcx, [0x14000b1d0]
mov edx, 0xa24
call fcn.1400a8be8
lea r8, [0x140001878]
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.14006892c
lea r8, [0x140001800]
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.14006892c
lea r8, [0x140001808]
lea rcx, [rsp + 0x40]
mov rdx, r12
call fcn.14006892c
lea r11, [rbp + 0x1d0]
inc rbx
cmp word [r11 + rbx*2], r15w
jne 0x1400c74fa
add rbx, 0x1b
cmp rbx, r12
jb 0x1400c7525
lea r8, [0x14000b810]
lea rcx, [0x14000b1d0]
mov edx, 0xa2d
call fcn.1400a8be8
lea r8, [0x140001878]
lea rcx, [rbp + 0x1d0]
mov rdx, r12
call fcn.14006892c
lea r8, [0x140001800]
lea rcx, [rbp + 0x1d0]
mov rdx, r12
call fcn.14006892c
lea r8, [0x140001828]
lea rcx, [rbp + 0x1d0]
mov rdx, r12
call fcn.14006892c
test r14d, r14d
je 0x1400c75b4
lea rdx, [rbp + 0x1d0]
lea rcx, [rsp + 0x40]
call fcn.1400c71ac
test eax, eax
js 0x1400c7589
mov dword [rsi], 1
xor eax, eax
mov rcx, qword [rbp + 0x460]
xor rcx, rsp
call fcn.140168920
lea r11, [rsp + 0x570]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea r8, [rsp + 0x30]
lea rdx, [0x140001828]
mov rcx, rdi
call fcn.1400c6f60
mov ebx, eax
test eax, eax
jns 0x1400c7625
cmp eax, 0x80070002
je 0x1400c7587
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400c7388
test byte [rcx + 0x1c], 2
je 0x1400c7388
cmp byte [rcx + 0x19], 2
jb 0x1400c7388
mov rcx, qword [rcx + 0x10]
lea r9, [0x140001828]
lea r8, [0x14000bbb0]
mov edx, 0x56
mov dword [rsp + 0x20], ebx
call fcn.14001ecbc
jmp 0x1400c7388
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x1d0]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x1400c7587
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, qword [0x14017d3a8]
lea rax, [0x14017d3a8]
cmp rcx, rax
je 0x1400c7699
test byte [rcx + 0x1c], 1
je 0x1400c7699
cmp byte [rcx + 0x19], 2
jb 0x1400c7699
mov rcx, qword [rcx + 0x10]
lea r8, [0x14000bbb0]
mov edx, 0x57
mov r9d, ebx
call fcn.14001de24
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400c7589