Function at 0x1400778a0
Capabilities:
Check if file exists
Copy file
Set file attributes

Disassembly:
mov r11, rsp
mov dword [r11 + 0x20], r9d
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x460
mov rax, qword [0x1400bdbf0]
xor rax, rsp
mov qword [rsp + reloc.mfc90u.dll_AfxFailRadio], rax
mov rbp, qword [rsp + 0x4b0]
xor r12d, r12d
mov rsi, rcx
mov rdi, rdx
mov rbx, r8
cmp r12w, word [rcx]
je 0x140077b58
test rbx, rbx
je 0x140077b58
cmp r12w, word [rbx]
je 0x140077b58
test rdx, rdx
je 0x140077b58
cmp r12w, word [rdx]
je 0x140077b58
lea rcx, [r11 - 0x246]
xor edx, edx
mov r8d, 0x20e
mov word [r11 - 0x248], r12w
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x240]
mov r9d, 0x7fffffff
xor r8d, r8d
mov edx, delete[]
call fcn.14004e234
test eax, eax
js 0x140077972
lea rcx, [rsp + 0x240]
mov r9, rsi
xor r8d, r8d
mov edx, delete[]
mov qword [rsp + 0x20], 0x7ffffffe
call fcn.14004e100
lea rcx, [rsp + 0x240]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x20e
mov word [rsp + 0x30], r12w
call sub.MSVCR90.dll_memset
lea rcx, [rsp + 0x30]
mov r9d, 0x7fffffff
xor r8d, r8d
mov edx, delete[]
call fcn.14004e234
test eax, eax
js 0x1400779d5
lea rcx, [rsp + 0x30]
mov r9, rdi
xor r8d, r8d
mov edx, delete[]
mov qword [rsp + 0x20], 0x7ffffffe
call fcn.14004e100
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [rsp + 0x4a8], r12d
je 0x140077a01
lea rcx, [rsp + 0x30]
xor edx, edx
call fcn.140073160
test eax, eax
jne 0x140077b54
lea rcx, [rsp + 0x30]
mov edx, 0x80
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x140077a53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 2
je 0x140077a53
lea rdx, str...CommonClassUpdateHelper.cpp
lea rcx, [0x1400cb7f0]
xor r8d, r8d
call fcn.14002d870
lea r8, [rsp + 0x30]
lea rdx, str._CopyWorkingProcess2Temp__SetFileAttributes_failed___s___u
lea rcx, [0x1400cb7f0]
mov r9d, edi
call fcn.14002d9a0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x240]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x140077b08
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str...CommonClassUpdateHelper.cpp
lea rcx, [0x1400cb7f0]
xor r8d, r8d
mov ebx, eax
call fcn.14002d870
lea r8, [rsp + 0x240]
lea rdx, str._CopyWorkingProcess2Temp__CopyFile_source_path___s
lea rcx, [0x1400cb7f0]
call fcn.14002da20
lea rdx, str...CommonClassUpdateHelper.cpp
lea rcx, [0x1400cb7f0]
xor r8d, r8d
call fcn.14002d870
lea r8, [rsp + 0x30]
lea rdx, str._CopyWorkingProcess2Temp__CopyFile_target_path___s
lea rcx, [0x1400cb7f0]
call fcn.14002da20
lea rdx, str...CommonClassUpdateHelper.cpp
lea rcx, [0x1400cb7f0]
xor r8d, r8d
call fcn.14002d870
lea rdx, str._CopyWorkingProcess2Temp__CopyFile_failed___d
lea rcx, [0x1400cb7f0]
mov r8d, ebx
call fcn.14002da20
mov eax, ebx
jmp 0x140077b5d
lea rdx, str.ASDUp.exe
mov rcx, rbx
call qword [sym.imp.MSVCR90.dll__wcsicmp]
test eax, eax
jne 0x140077b54
mov r9d, 0x7fffffff
xor r8d, r8d
mov edx, 0x104
mov rcx, rbp
call fcn.14004e234
test eax, eax
js 0x140077b54
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x104
mov rcx, rbp
mov qword [rsp + 0x20], 0x7ffffffe
call fcn.14004e100
xor eax, eax
jmp 0x140077b5d
mov eax, 0x57
mov rcx, qword [rsp + reloc.mfc90u.dll_AfxFailRadio]
xor rcx, rsp
call fcn.14004d770
add rsp, 0x460
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret