Function at 0x414460
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x004413e8]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r14, r8
mov r13, rdx
mov qword [rsp + 0x58], rdx
lea rcx, [0x004428e0]
mov rax, qword [0x004428e0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
mov rdi, qword [r13]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x4144e7
cmp rax, qword [rdi - 0x18]
jne 0x4144e7
lea rsi, [rdi - 0x18]
lock add dword [rdi - 8], 1
mov rbx, qword [rsp + 0x30]
jmp 0x414525
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rsi, rax
test rax, rax
jne 0x414503
call fcn.0040dab0
int3
mov eax, dword [rdi - 0x10]
mov dword [rsi + 8], eax
mov eax, dword [rdi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rsi + 0x18]
call fcn.00416460
lea rcx, [rsi + 0x18]
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x38]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x270]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov edi, eax
cmp eax, 0x104
ja 0x414824
test eax, eax
je 0x414824
mov rax, qword [rsp + 0x40]
mov word [rax], 0
xor eax, eax
or rsi, 0xffffffffffffffff
mov rcx, rsi
lea rdi, [rsp + 0x270]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x4145ef
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x414679
cmp dword [rdx + 0x10], eax
jge 0x4145c1
cmp dword [rbx - 0xc], eax
jge 0x4145b6
mov ecx, 0x80070057
call fcn.00401000
int3
mov dword [rbx - 0x10], eax
mov word [rbx], ax
jmp 0x414679
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x4145d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
jmp 0x414679
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x270]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x414622
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.00401420
mov rbx, qword [rsp + 0x30]
cmp r12, rbp
ja 0x414642
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.004168c0
jmp 0x41465f
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x270]
mov rdx, rbp
mov rcx, rbx
call fcn.00416460
test edi, edi
js 0x414819
cmp edi, dword [rbx - 0xc]
jg 0x414819
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x414699
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r9, [rsp + 0x60]
xor r8d, r8d
lea rdx, [0x00437bf8]
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x41471a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
xor r8d, r8d
lea rdx, str.CFileHelper::CopyAndReturnTempPath._GetTempFileName_failed_dwRetVal_d._GetLastError_returned_0x_x
lea ecx, [r8 + 2]
call fcn.004139f0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x4146f3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x414710
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x80004005
jmp 0x4148a9
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [r13]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x4147b7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbp, qword [r13]
mov dword [rsp + 0x20], eax
lea r9, [rsp + 0x60]
mov r8, rbp
lea rdx, str.CFileHelper::CopyAndReturnTempPath_failed_to_copy__s_to__s._GetLastError_returned_0x_x
mov ecx, 2
call fcn.004139f0
cmp edi, 2
jne 0x414774
mov r8, rbp
lea rdx, str.CFileHelper::LogCopyFileError__s_File_not_found
mov ecx, edi
call fcn.004139f0
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x414790
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x4147ad
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x80004005
jmp 0x4148a9
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, [rsp + 0x60]
mov rcx, r14
call fcn.00401720
nop
lea rdx, [rbx - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x4147f5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x414812
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x4148a9
mov ecx, 0x80070057
call fcn.00401000
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r9d, eax
mov r8d, edi
lea rdx, str.CFileHelper::ExtractFilePath._GetFullPathName_failed_dwRetVal_d._GetLastError_returned_0x_x
mov ecx, 2
call fcn.004139f0
nop
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
or rsi, 0xffffffffffffffff
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, esi
test eax, eax
jg 0x414866
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x30]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x414887
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r13]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x4148a4
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.00417510
lea r11, [rsp + 0x490]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret