Function at 0x14000eaec
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x69], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140021410]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, r8
mov r12, rdx
mov r13, rcx
xor r15d, r15d
mov dword [rbp - 0x75], r15d
mov qword [rbp - 0x31], r15
mov qword [rbp - 0x29], r15
lea eax, [r15 + 7]
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x31], r15
mov word [rbp - 0x41], r15w
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 9], rax
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
lea rdx, [rbp - 0x71]
mov rcx, r12
call qword [sym.imp.RPCRT4.dll_UuidToStringW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jne 0x14000ee07
mov rdx, qword [rbp - 0x71]
cmp word [rdx], r15w
jne 0x14000eb89
mov r8d, r15d
jmp 0x14000eb97
or r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], r15w
jne 0x14000eb8d
lea rcx, [rbp - 0x21]
call fcn.14000a150
lea rcx, [rbp - 0x71]
call qword [sym.imp.RPCRT4.dll_RpcStringFreeW]
nop dword [rax + rax]
mov ebx, 1
mov esi, ebx
mov r14b, r15b
cmp esi, 0x3e8
jge 0x14000ecc3
mov qword [rbp - 0x51], r15
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x49], 7
mov qword [rbp - 0x51], r15
mov word [rbp - 0x61], r15w
mov r8d, 3
lea rdx, [0x140019a68]
lea rcx, [rbp - 0x61]
call fcn.14000a150
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x61]
call fcn.14000a44c
lea rdx, str..resync.
lea rcx, [rbp - 0x61]
call fcn.14000a328
mov r8d, 0xa
lea rdx, [rbp - 1]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__itow]
nop dword [rax + rax]
mov rdx, rax
lea rcx, [rbp - 0x61]
call fcn.14000a328
lea rcx, [rbp - 0x61]
cmp qword [rbp - 0x49], 8
cmovae rcx, qword [rbp - 0x61]
lea rdx, [0x140019a84]
call qword [sym.imp.msvcrt.dll__wfopen]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x14000ec7e
mov r14b, bl
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x41]
call fcn.14000a238
mov rcx, r15
call qword [sym.imp.msvcrt.dll_fclose]
nop dword [rax + rax]
add esi, ebx
cmp qword [rbp - 0x49], 8
jb 0x14000eca6
mov rcx, qword [rbp - 0x61]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x49], 7
xor r15d, r15d
mov qword [rbp - 0x51], r15
mov word [rbp - 0x61], r15w
test r14b, r14b
je 0x14000ebba
test r14b, r14b
je 0x14000ee07
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
cmp qword [rdi + 0x18], 8
jb 0x14000ece4
mov rdi, qword [rdi]
mov r8d, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14000ed19
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x14000ee07
lea rcx, [rbp - 0x41]
call fcn.14000fef4
mov rax, qword [rbp - 0x31]
lea rbx, [rax*2 + 0x18]
mov byte [rbp - 0x79], 0x30
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r15
lea r8, [rbp - 0x79]
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.1400100f4
nop
mov r8, rbx
xor edx, edx
mov rdi, qword [rbp - 0x61]
mov rcx, rdi
call sub.msvcrt.dll_memset
movzx eax, bx
mov dword [rdi], eax
movups xmm0, xmmword [r12]
movdqu xmmword [rdi + 4], xmm0
movzx eax, word [rbp - 0x31]
add ax, ax
movzx r8d, ax
mov word [rdi + 0x14], r8w
lea rdx, [rbp - 0x41]
cmp qword [rbp - 0x29], 8
cmovae rdx, qword [rbp - 0x41]
lea rcx, [rdi + 0x16]
call sub.msvcrt.dll_memcpy
mov qword [rsp + 0x38], r15
lea rax, [rbp - 0x75]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
mov r9d, ebx
mov r8, rdi
mov edx, 0x2af354
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
nop dword [rax + rax]
test eax, eax
je 0x14000edd2
mov ebx, r15d
jmp 0x14000edec
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r15
cmp qword [rbp - 9], 8
jb 0x14000ee1e
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov edi, 7
mov qword [rbp - 9], rdi
mov qword [rbp - 0x11], r15
mov word [rbp - 0x21], r15w
cmp qword [rbp - 0x29], 8
jb 0x14000ee47
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void____ptr64_]
nop dword [rax + rax]
mov qword [rbp - 0x29], rdi
mov qword [rbp - 0x31], r15
mov word [rbp - 0x41], r15w
mov eax, ebx
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.140012f80
mov rbx, qword [rsp + 0x138]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret