Function at 0x1401294a8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x2b8]
sub rsp, 0x3b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x20], 0
call fcn.14010cdc0
mov rbx, rax
mov r14d, 2
test rax, rax
je 0x140129573
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 6
jl 0x140129573
lea r8d, [r14 - 1]
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Checking
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rcx, rax
mov rdx, qword [str.USERPROFILE]
call fcn.14002c360
mov rcx, rax
lea rdx, str._for_the_home_directory.
call fcn.14002c360
mov rax, qword [rbx]
lea r9, [rsp + 0x40]
mov r8, qword [str.FileSystem]
lea edx, [r14 + 4]
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
mov rdx, qword [str.USERPROFILE]
lea rcx, [rbp + 0x30]
call fcn.140129420
nop
call fcn.14010cdc0
mov rbx, rax
test rax, rax
je 0x140129617
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x140129617
mov r8d, 1
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Environment_value_for_variable
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rcx, rax
mov rdx, qword [str.USERPROFILE]
call fcn.14002c360
mov rcx, rax
lea rdx, str._is
call fcn.14002c360
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.14000e4e0
mov rax, qword [rbx]
lea r9, [rsp + 0x40]
mov r8, qword [str.FileSystem]
mov edx, 5
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
lea rcx, [rbp + 0x30]
call fcn.14000a3d0
test al, al
je 0x14012977d
call fcn.14010cdc0
mov rbx, rax
test rax, rax
je 0x14012968d
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 3
jl 0x14012968d
mov r8d, 1
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Home_dir_not_stored_in_environment__trying_to_fetch_manually_from_the_OS.
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rax, qword [rbx]
lea r9, [rsp + 0x40]
mov r8, qword [str.FileSystem]
mov edx, 3
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x28]
mov edx, 0x20008
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1401296fd
mov dword [rsp + 0x24], 0x104
lea r8, [rsp + 0x24]
lea rdx, [rbp + 0x90]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
je 0x1401296f2
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x50]
call fcn.14011fb74
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000aab0
lea rcx, [rbp + 0x50]
call fcn.14000aa50
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14010cdc0
mov rbx, rax
test rax, rax
je 0x14012977d
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 4
jl 0x14012977d
mov r8d, 1
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.140027a90
nop
lea rdx, str.Pulled
lea rcx, [rsp + 0x40]
call fcn.14002c360
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.14000e4e0
mov rcx, rax
lea rdx, str._as_home_directory_from_the_OS.
call fcn.14002c360
mov rax, qword [rbx]
lea r9, [rsp + 0x40]
mov r8, qword [str.FileSystem]
mov edx, 4
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rsp + 0x40]
call fcn.14001a870
lea rcx, [rbp + 0x30]
call fcn.14000a910
test rax, rax
je 0x1401297a8
lea rcx, [rbp + 0x30]
call fcn.14000a920
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.140120260
nop
mov ebx, 1
jmp 0x1401297bb
lea rdx, [0x1401d01d0]
lea rcx, [rbp + 0x50]
call fcn.140101680
mov ebx, r14d
mov rdx, rax
mov rcx, rdi
call fcn.14000ab00
or ebx, 4
mov dword [rsp + 0x20], ebx
test r14b, bl
je 0x1401297e3
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x50]
call fcn.14000aa50
nop
test bl, 1
je 0x1401297f8
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x70]
call fcn.14000aa50
mov rcx, rdi
call fcn.14000a3d0
test al, al
jne 0x140129827
mov rcx, rdi
call fcn.14000a910
lea rdx, [rax - 1]
mov rcx, rdi
call fcn.14012988c
mov dl, 0x5c
cmp byte [rax], dl
je 0x140129827
mov rcx, rdi
call fcn.14000a9d0
nop
lea rcx, [rbp + 0x30]
call fcn.14000aa50
mov rax, rdi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.140158980
lea r11, [rsp + 0x3b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret