Function at 0x140003314
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x198]
sub rsp, 0x290
mov rax, qword [0x140012010]
xor rax, rsp
mov qword [rbp + 0x180], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x14000d5d0]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
jne 0x140003651
lea rdx, [rbp + 0x70]
mov rcx, qword [rsp + 0x30]
call fcn.140001af4
lea rax, [rbp + 0x70]
or rdi, 0xffffffffffffffff
mov rsi, rdi
inc rsi
cmp byte [rax + rsi], 0
jne 0x140003382
mov rax, qword [0x1400124b8]
lea r14, [0x1400124a0]
cmp rsi, rax
ja 0x1400033c9
mov rbx, r14
cmp rax, 0x10
cmovae rbx, qword [0x1400124a0]
mov qword [0x1400124b0], rsi
mov r8, rsi
lea rdx, [rbp + 0x70]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
jmp 0x1400033d8
lea r9, [rbp + 0x70]
mov rdx, rsi
mov rcx, r14
call fcn.140005828
mov edx, 0x13
lea rcx, [0x1400120f0]
call fcn.140001674
mov r9, rax
inc rdi
cmp byte [rax + rdi], 0
jne 0x1400033ec
mov rcx, qword [0x1400124b0]
mov rdx, qword [0x1400124b8]
mov rax, rdx
sub rax, rcx
cmp rdi, rax
ja 0x14000343f
lea rax, [rcx + rdi]
mov qword [0x1400124b0], rax
mov rbx, r14
cmp rdx, 0x10
cmovae rbx, qword [0x1400124a0]
add rbx, rcx
mov r8, rdi
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x14000344c
mov qword [rsp + 0x20], rdi
mov rdx, rdi
call fcn.140005954
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
cmp qword [0x1400124b8], 0x10
cmovae r14, qword [0x1400124a0]
mov rdx, r14
lea rcx, [rsp + 0x60]
call fcn.140004594
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rsi, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], rsi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
and qword [rsp + 0x38], 0
and qword [rsp + 0x48], 0
mov edi, 0xf
mov edx, edi
mov qword [rsp + 0x50], rdx
mov byte [rsp + 0x38], 0
cmp qword [rbp - 0x10], 0
je 0x1400035c6
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
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 + 0x38]
lea rcx, [rsp + 0x60]
call fcn.140005e94
lea edx, [rdi - 8]
lea rcx, [0x140012084]
call fcn.140001674
lea rcx, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rcx, qword [rsp + 0x38]
mov rdx, rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
lea ebx, [rdi - 0xd]
test rax, rax
jne 0x140003579
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x140013038], rax
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140003579
lea rcx, [rsp + 0x70]
call fcn.140004c48
test rax, rax
jne 0x140003579
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
lea rcx, [rsp + 0x70]
call fcn.140004c48
test rax, rax
jne 0x1400035a4
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
mov edx, ebx
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov eax, 1
mov dword [0x140013028], eax
mov dword [0x140013100], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x14001302c], eax
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x140003601
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400035fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400035fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000b85c
and qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x38], 0
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], rsi
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x70]
call fcn.140004528
lea rcx, [rsp + 0x78]
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 + 0x10]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14000b5b0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret