Function at 0x140001ba4
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14000d580]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x140001bf4
mov al, 1
jmp 0x140001e4b
lea rdx, [rbp + 0x90]
mov rcx, qword [rsp + 0x50]
call fcn.140001af4
mov edx, 0x16
lea rcx, [0x140012098]
call fcn.140001674
mov rdx, rax
lea r8, [rbp + 0x90]
lea rcx, [rbp + 0x90]
call fcn.140004fd4
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbp + 0x90]
lea rcx, [rbp - 0x80]
call fcn.1400043a4
nop
and qword [rsp + 0x58], 0
and qword [rsp + 0x68], 0
mov edx, 0xf
mov qword [rsp + 0x70], rdx
mov byte [rsp + 0x58], 0
cmp qword [rbp + 0x10], 0
je 0x140001db3
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov r8b, al
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.140005b00
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rbx, qword [rsp + 0x58]
mov edx, 9
lea rcx, [0x140012338]
call fcn.140001674
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
neg rax
sbb dil, dil
and dil, 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140001958
mov rdx, rax
lea rcx, [0x140012410]
call fcn.1400046b0
lea rcx, [rsp + 0x30]
call fcn.14000464c
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
mov r8b, al
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.140005b00
lea rbx, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rbx, qword [rsp + 0x58]
mov edx, 9
lea rcx, [0x1400120c8]
call fcn.140001674
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.VCRUNTIME140.dll_strstr]
neg rax
sbb bl, bl
and bl, dil
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140001958
mov rdx, rax
lea rcx, [0x1400123d0]
call fcn.1400046b0
lea rcx, [rsp + 0x30]
call fcn.14000464c
lea rcx, [rbp - 0x70]
call fcn.140004a58
test rax, rax
jne 0x140001dac
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdx, qword [rsp + 0x70]
jmp 0x140001db5
xor bl, bl
cmp rdx, 0x10
jb 0x140001df0
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001deb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001deb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b4bc
and qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rdx - 0x80], rax
mov rcx, qword [rbp - 0x80]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0xb0]
mov dword [rsp + rdx + 0x7c], r8d
lea rcx, [rbp - 0x70]
call fcn.140004338
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov al, bl
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.14000b210
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret