Function at 0x140030070
Capabilities:
Check if file exists
Delete file
Get common file path
Get startup folder
Move file
Persist via lnk shortcut
Set file attributes
Write file to startup folder

Disassembly:
push rbp
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
xor edx, edx
mov r8d, 0x208
test cl, cl
je 0x140030216
lea rcx, [rbp + 0x380]
call fcn.1401afc90
mov r9d, 1
lea r8d, [r9 + 0x18]
lea rdx, [rbp + 0x380]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1401afc90
lea r8, str.TabX_Explorer.lnk
lea rdx, [rbp + 0x380]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003014d
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14003014d
mov edx, 0x80
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x14003013c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x14003014d
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x590]
call fcn.1401afc90
mov r9d, 1
lea r8d, [r9 + 0xf]
lea rdx, [rbp + 0x590]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.1401afc90
lea r8, str.TabX_Explorer.lnk
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140030381
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140030381
mov edx, 0x80
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x1400301fe
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140030381
xor edx, edx
lea r8d, [rdx + 4]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x140030381
lea rcx, [rbp + 0x590]
call fcn.1401afc90
mov r9d, 1
lea r8d, [r9 + 0x18]
lea rdx, [rbp + 0x590]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x380]
call fcn.1401afc90
lea r8, str.TabX_Explorer.lnk
lea rdx, [rbp + 0x590]
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rbp + 0x380]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140030381
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x170]
call fcn.1401afc90
mov r9d, 1
lea r8d, [r9 + 0xf]
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x60]
call fcn.1401afc90
lea r8, str.TabX_Explorer.lnk
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCombineW]
lea rcx, [rsp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140030381
movdqa xmm0, xmmword [0x1401f5810]
movdqu xmmword [rsp + 0x48], xmm0
mov byte [rsp + 0x38], al
lea r8d, [rax + 0x14]
lea rdx, str.create_desk_shortcut
lea rcx, [rsp + 0x38]
call fcn.14000d6b0
nop
lea rax, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call fcn.140056170
nop
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140030381
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003037c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003039b
call fcn.1401606e8
mov al, 1
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.140160a40
add rsp, 0x8b0
pop rbp
ret
call fcn.1401b3260
int3