Function at 0x140016e84
Capabilities:
Copy file

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x6c0
mov qword [rsp + 0x1b0], 0xfffffffffffffffe
mov rax, qword [0x14007c478]
xor rax, rsp
mov qword [rsp + 0x6b8], rax
mov r14, r9
mov r15, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x120], rcx
mov qword [rsp + 0x130], rdx
mov r12, qword [rsp + 0x720]
lea rax, str.base_stor_vss_tools_vssagent_vsdoc.cpp
mov qword [rsp + 0x60], rax
lea rax, str.CVssXmlDiagDocument::GetFile
mov qword [rsp + 0x68], rax
lea rax, str.TST__
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x9c3
mov r13d, 9
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x80], 0xdc
xor ebx, ebx
mov dword [rsp + 0x100], 0x1000000
xor edx, edx
lea r8d, [r13 + 0x6f]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x140]
call fcn.14004058c
nop
mov qword [rsp + 0x20], r14
mov r9d, r13d
lea r8, str.File
lea rdx, [rsp + 0x108]
mov rcx, rsi
call fcn.14001f25c
nop
mov qword [rsp + 0x20], r14
mov r9, r15
lea r8, [0x14005bbc8]
mov edx, 0x104
lea rcx, [rsp + 0x490]
call fcn.140002d64
mov dword [rsp + 0x148], eax
lea r15, str.base_stor_vss_tools_vssagent_vsdoc.cpp
mov qword [rsp + 0x60], r15
lea rax, str.CVssXmlDiagDocument::GetFile
mov qword [rsp + 0x68], rax
lea rax, str.TST__
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x9cc
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x80], 0xdc
mov dword [rsp + 0x100], 0x1000000
xor edx, edx
lea r8d, [r13 + 0x6f]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x490]
lea r8, str.Old_trace_file:__s
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x140]
call fcn.140041324
mov qword [rsp + 0x60], r15
lea rax, str.CVssXmlDiagDocument::GetFile
mov qword [rsp + 0x68], rax
lea rax, str.TST__
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x9cd
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x80], 0xdc
mov dword [rsp + 0x100], 0x1000000
xor edx, edx
lea r8d, [r13 + 0x6f]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
cmp dword [rsp + 0x148], ebx
jl 0x14001733d
lea rcx, [rsp + 0x60]
call fcn.1400401b4
test r12, r12
cmovne r14, r12
lea r9, [rsi + 0x40]
mov qword [rsp + 0x20], r14
lea r8, [0x14005bbc8]
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.140002d64
mov dword [rsp + 0x148], eax
mov qword [rsp + 0x60], r15
lea r12, str.CVssXmlDiagDocument::GetFile
mov qword [rsp + 0x68], r12
lea rax, str.TST__
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x9d3
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x80], 0xdc
mov dword [rsp + 0x100], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x280]
lea r8, str.New_trace_file:__s
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x140]
call fcn.140041324
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r12
lea rax, str.TST__
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], 0x9d4
mov dword [rsp + 0x7c], r13d
mov dword [rsp + 0x80], 0xdc
mov dword [rsp + 0x100], 0x1000000
xor edx, edx
lea r8d, [rdx + 0x78]
lea rcx, [rsp + 0x88]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x148], ebx
jl 0x14001736f
lea rcx, [rsp + 0x60]
call fcn.1400401b4
xor r8d, r8d
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0x490]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
je 0x1400173a1
mov r8, r14
lea rdx, str.XRef
lea rcx, [rsp + 0x108]
call fcn.140004f4c
nop
jmp 0x1400171e9
cmp dword [rsp + 0x148], ebx
jge 0x140017262
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x108]
mov qword [rsp + 0x50], rcx
test rcx, rcx
je 0x14001721c
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x110]
mov qword [rsp + 0x58], rcx
test rcx, rcx
je 0x14001723c
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140053f18]
nop
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0x20], eax
lea r9, str.Error:_0x_08lx
lea r8, str.FAILURE_GetFile
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001f4fc
lea r8, [rsp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140005fe8
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140017290
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400172a8
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x110]
test rcx, rcx
je 0x1400172c3
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x108]
test rcx, rcx
je 0x1400172de
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
lea rcx, [rsp + 0x140]
call fcn.1400406a0
nop
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140017303
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rdi]
test rcx, rcx
je 0x140017319
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140053f18]
nop
mov rcx, qword [rsp + 0x6b8]
xor rcx, rsp
call fcn.1400438c0
add rsp, 0x6c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1d0]
call fcn.140040130
lea r9, str.StringCchPrintfW
mov r8d, dword [rsp + 0x148]
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.1400419b8
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x1d0]
call fcn.140040130
lea r9, str.StringCchPrintfW
mov r8d, dword [rsp + 0x148]
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.1400419b8
nop
mov dword [rsp + 0x30], 0xdc
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 0x9d8
mov r9, r12
lea r8, str.TST__
mov rdx, r15
lea rcx, [rsp + 0x1d0]
call fcn.1400400dc
lea rcx, [rsp + 0x280]
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x490]
lea r8, str.CopyFileW__s___s_
mov rdx, rax
lea rcx, [rsp + 0x140]
call fcn.140041e40
int3