Function at 0x140031ecc
Capabilities:
Copy file

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x468]
sub rsp, 0x540
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x14005b010]
xor rax, rsp
mov qword [rbp + 0x438], rax
mov r14, rcx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
xor r15d, r15d
mov qword [rsp + 0x68], r15
lea rcx, [rbp + 0x80]
call fcn.14001f468
lea rdx, [rsp + 0x50]
mov rcx, rax
call fcn.140019830
mov rcx, qword [r14 + 8]
test rcx, rcx
jne 0x140031f3d
mov eax, r15d
jmp 0x140031f4d
mov rax, qword [rcx]
mov rax, qword [rax + 0x80]
call qword [case.0x140010c4b.0]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
lea rcx, [fcn.140035f70]
mov qword [rbp + 0x3e0], rcx
mov dword [rbp + 0x3e8], eax
lea rcx, [0x14002b900]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x48], eax
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rbp + 0x3e0]
movaps xmmword [rbp + 0x3e0], xmm0
movaps xmmword [rbp + 0x3f0], xmm1
lea r9, [rbp + 0x3e0]
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call fcn.140019eac
mov rsi, r15
mov rdi, r15
mov r9, qword [rsp + 0x28]
test r9, r9
jne 0x140031fc9
mov rdx, r15
jmp 0x140031fef
mov rcx, qword [rsp + 0x30]
sub rcx, r9
movabs rax, 0xb21642c8590b2165
imul rcx
add rdx, rcx
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
cmp rsi, rdx
jae 0x1400322ee
lea rdx, [r9 + rdi]
cmp qword [rdx + 0x70], r15
je 0x140032006
add rdx, 0x58
mov qword [rbp + 0x400], 7
mov qword [rbp + 0x3f8], r15
mov word [rbp + 0x3e8], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x3e0]
call fcn.140005514
nop
mov rdx, qword [rsp + 0x28]
add rdx, 0x28
add rdx, rdi
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp + 0x3e0]
call fcn.140008d3c
lea rdx, [rbp + 0x3e8]
cmp qword [rbp + 0x400], 8
cmovae rdx, qword [rbp + 0x3e8]
mov rcx, qword [r14 + 8]
test rcx, rcx
je 0x140032097
mov rax, qword [rcx]
mov rax, qword [rax + 0x68]
call qword [case.0x140010c4b.0]
test al, al
je 0x140032097
cmp qword [rbp + 0x400], 8
jae 0x1400322ce
jmp 0x1400322da
mov r9, qword [rsp + 0x28]
cmp qword [r9 + rdi + 0xa8], r15
je 0x1400322c4
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rbp + 0x80]
call fcn.14000b65c
nop
mov rbx, qword [rsp + 0x28]
lea rdx, str._nCopying_file
lea rcx, [rbp + 0x90]
call fcn.14000aa8c
mov rcx, rax
lea rdx, [rbx + 0x90]
add rdx, rdi
call fcn.14000acc0
mov rcx, rax
lea rdx, str._over_non_snapshot_file
call fcn.14000aa8c
mov rcx, rax
lea rdx, [rbp + 0x3e0]
call fcn.14000acc0
lea rdx, [rbp + 0x410]
lea rcx, [rbp + 0x98]
call fcn.14001097c
nop
mov edx, 1
lea rcx, [rbp + 0x410]
call fcn.140013160
nop
cmp qword [rbp + 0x430], 8
jb 0x140032144
mov rcx, qword [rbp + 0x418]
call fcn.1400110f8
lea rdx, [rbp + 0x3e8]
cmp qword [rbp + 0x400], 8
cmovae rdx, qword [rbp + 0x3e8]
mov rax, qword [rsp + 0x28]
lea rcx, [rax + 0x98]
add rcx, rdi
cmp qword [rax + rdi + 0xb0], 8
jb 0x140032178
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140032297
mov qword [rbp + 0x430], 7
mov qword [rbp + 0x428], r15
mov word [rbp + 0x418], r15w
lea r8d, [rax + 8]
lea rdx, str.CopyFile
lea rcx, [rbp + 0x410]
call fcn.1400053ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
lea rdx, [rbp + 0x410]
call fcn.140013d9c
mov edx, 3
lea r8d, [rdx - 2]
lea rcx, [rbp - 0x80]
call fcn.14000b65c
nop
mov rbx, qword [rsp + 0x28]
lea rdx, str._nfailed_to_copy_file
lea rcx, [rbp - 0x70]
call fcn.14000aa8c
mov rcx, rax
lea rdx, [rbx + 0x90]
add rdx, rdi
call fcn.14000acc0
mov rcx, rax
lea rdx, str._onto_non_snapshot_file
call fcn.14000aa8c
mov rcx, rax
lea rdx, [rbp + 0x3e0]
call fcn.14000acc0
mov rcx, rax
lea rdx, str._during_OnPostSnapshot
call fcn.14000aa8c
lea rdx, [rbp + 0x410]
lea rcx, [rbp - 0x68]
call fcn.14001097c
nop
xor edx, edx
lea rcx, [rbp + 0x410]
call fcn.140013160
nop
cmp qword [rbp + 0x430], 8
jb 0x140032278
mov rcx, qword [rbp + 0x418]
call fcn.1400110f8
nop
lea rcx, [rbp + 0x18]
call fcn.14000c1e4
nop
lea rax, [0x1400422a0]
mov qword [rbp + 0x18], rax
lea rcx, [rbp + 0x18]
call fcn.140011e54
nop
lea rcx, [rbp + 0x118]
call fcn.14000c1e4
nop
lea rax, [0x1400422a0]
mov qword [rbp + 0x118], rax
lea rcx, [rbp + 0x118]
call fcn.140011e54
nop
mov r9, qword [rsp + 0x28]
cmp qword [rbp + 0x400], 8
jb 0x1400322df
mov rcx, qword [rbp + 0x3e8]
call fcn.1400110f8
mov r9, qword [rsp + 0x28]
inc rsi
add rdi, 0xb8
jmp 0x140031fbf
test r9, r9
je 0x14003230f
lea r8, [rsp + 0x20]
mov rdx, qword [rsp + 0x30]
mov rcx, r9
call fcn.140018c58
mov rcx, qword [rsp + 0x28]
call fcn.1400110f8
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], r15
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140032340
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x60]
call fcn.140018c58
mov rcx, qword [rsp + 0x58]
call fcn.1400110f8
mov rcx, qword [rbp + 0x438]
xor rcx, rsp
call fcn.140012560
mov rbx, qword [rsp + 0x580]
add rsp, 0x540
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret