Function at 0x140105d68
Capabilities:
Check if file exists
Copy file
Create directory
Move file

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x1a8]
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1403ddfb8]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r14, rdx
mov rsi, rcx
lea rbx, [rcx + 0x28]
mov qword [rsp + 0x68], rbx
test rbx, rbx
je 0x140105dbd
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
nop
lea rdi, [rsi + 0x48]
cmp qword [rdi + 0x18], 8
jb 0x140105dcd
mov rdx, qword [rdi]
jmp 0x140105dd0
mov rdx, rdi
mov r8d, 1
lea rcx, [rsp + 0x30]
call fcn.140104ca0
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x70]
call fcn.14028e7e0
cmp qword [rdi + 0x18], 8
jb 0x140105dfe
mov r8, qword [rdi]
jmp 0x140105e01
mov r8, rdi
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1400eafd0
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor r8d, r8d
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea rdx, str.trusted.tmp
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x140105f35
cmp qword [rdi + 0x18], 8
jb 0x140105e62
mov rcx, qword [rdi]
jmp 0x140105e65
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140105ea0
cmp qword [rdi + 0x18], 8
jb 0x140105e7b
mov rcx, qword [rdi]
jmp 0x140105e7e
mov rcx, rdi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov r9d, 2
xor r8d, r8d
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
jmp 0x140105eba
cmp qword [rdi + 0x18], 8
jb 0x140105eac
mov rdx, qword [rdi]
jmp 0x140105eaf
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x140105ede
cmp qword [rdi + 0x18], 8
jb 0x140105ec8
mov rdi, qword [rdi]
mov r8d, 4
mov rdx, rdi
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x140105f35
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x140105f14
cmp dword [rsp + 0x38], 0
je 0x140105f0e
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
or r8d, 0xffffffff
mov r9d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.67136527_5D6B_4AC9_865B_3E392E982420
call qword [sym.imp.KERNEL32.dll_GlobalAddAtomW]
mov rcx, rsi
call fcn.1401054a4
mov rcx, rsi
call fcn.1401057f8
mov edi, eax
jmp 0x140105f6d
mov rcx, qword [rsp + 0x30]
cmp rcx, 0xffffffffffffffff
je 0x140105f6b
cmp dword [rsp + 0x38], 0
je 0x140105f65
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
or r8d, 0xffffffff
mov r9d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
test rbx, rbx
je 0x140105f7b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, edi
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14026d870
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret