Function at 0x140084020
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 [0x140249670]
xor rax, rsp
mov qword [rbp + 0x2a0], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
and dword [rsp + 0x20], 0
call fcn.140067f0c
mov rbx, rax
mov r14d, 2
test rax, rax
je 0x1400840eb
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 6
jl 0x1400840eb
lea r8d, [r14 - 1]
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
lea rdx, str.Checking
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rcx, rax
mov rdx, qword [str.USERPROFILE]
call fcn.14002e2d0
mov rcx, rax
lea rdx, str._for_the_home_directory.
call fcn.14002e2d0
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.14001bb60
mov rdx, qword [str.USERPROFILE]
lea rcx, [rbp + 0x30]
call fcn.140083f98
nop
call fcn.140067f0c
mov rbx, rax
test rax, rax
je 0x14008418f
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 5
jl 0x14008418f
mov r8d, 1
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
lea rdx, str.Environment_value_for_variable
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rcx, rax
mov rdx, qword [str.USERPROFILE]
call fcn.14002e2d0
mov rcx, rax
lea rdx, str._is
call fcn.14002e2d0
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.14000d710
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.14001bb60
lea rcx, [rbp + 0x30]
call fcn.14000b400
test al, al
je 0x1400842f5
call fcn.140067f0c
mov rbx, rax
test rax, rax
je 0x140084205
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 3
jl 0x140084205
mov r8d, 1
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
lea rdx, str.Home_dir_not_stored_in_environment__trying_to_fetch_manually_from_the_OS.
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
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.14001bb60
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 0x140084275
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 0x14008426a
lea rdx, [rbp + 0x90]
lea rcx, [rbp + 0x50]
call fcn.140082d5c
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000b9e0
lea rcx, [rbp + 0x50]
call fcn.14000b980
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140067f0c
mov rbx, rax
test rax, rax
je 0x1400842f5
mov rax, qword [rax]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, 4
jl 0x1400842f5
mov r8d, 1
mov edx, r14d
lea rcx, [rsp + 0x40]
call fcn.14005ba84
nop
lea rdx, str.Pulled
lea rcx, [rsp + 0x40]
call fcn.14002e2d0
mov rcx, rax
lea rdx, [rbp + 0x30]
call fcn.14000d710
mov rcx, rax
lea rdx, str._as_home_directory_from_the_OS.
call fcn.14002e2d0
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.14001bb60
lea rcx, [rbp + 0x30]
call fcn.14000b830
test rax, rax
je 0x140084320
lea rcx, [rbp + 0x30]
call fcn.14000b840
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.140083448
nop
mov ebx, 1
jmp 0x140084333
lea rdx, [0x1401a7650]
lea rcx, [rbp + 0x50]
call fcn.14005bb88
mov ebx, r14d
mov rdx, rax
mov rcx, rdi
call fcn.14000ba70
or ebx, 4
mov dword [rsp + 0x20], ebx
test r14b, bl
je 0x14008435b
and ebx, 0xfffffffd
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x50]
call fcn.14000b980
nop
test bl, 1
je 0x140084370
and ebx, 0xfffffffe
mov dword [rsp + 0x20], ebx
lea rcx, [rbp + 0x70]
call fcn.14000b980
mov rcx, rdi
call fcn.14000b400
test al, al
jne 0x14008439f
mov rcx, rdi
call fcn.14000b830
lea rdx, [rax - 1]
mov rcx, rdi
call fcn.140084404
mov dl, 0x5c
cmp byte [rax], dl
je 0x14008439f
mov rcx, rdi
call fcn.14000b8f0
nop
lea rcx, [rbp + 0x30]
call fcn.14000b980
mov rax, rdi
mov rcx, qword [rbp + 0x2a0]
xor rcx, rsp
call fcn.14015ade0
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