Function at 0x140022fc4
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1a8]
sub rsp, 0x270
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400da318]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r15, r9
mov r13, rdx
mov rsi, rcx
mov r12, qword [rbp + 0x1d0]
mov r14, qword [rdx + 0x28]
lea rbx, [r14 - 0x18]
mov rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x1400244c5.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x14003c1a4
cmp rax, qword [rbx]
jne 0x14003c1a4
lock inc dword [rbx + 0x10]
lea rax, [rbx + 0x18]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x20]
call fcn.140023124
lea rdx, str.indexed
lea rcx, [rsp + 0x20]
call fcn.1400230e4
mov ebx, eax
lea rdx, str.history
lea rcx, [rsp + 0x20]
call fcn.1400230e4
mov edi, eax
lea rdx, str.appdata
lea rcx, [rsp + 0x20]
call fcn.1400230e4
cmp eax, 0xffffffff
je 0x1400230a3
cmp ebx, eax
jg 0x14003c1f8
cmp edi, eax
jg 0x14003c1f8
mov rcx, qword [rsp + 0x20]
add rcx, 0xffffffffffffffe8
call fcn.140011120
xor eax, eax
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.14002a310
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdi, [rbx + 8]
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi]
mov rcx, r9
mov rax, qword [rax]
call qword [case.0x1400244c5.0]
mov rbx, rax
test rax, rax
jne 0x14003c1cd
call fcn.140053e4c
int3
mov eax, dword [rdi]
mov dword [rbx + 8], eax
mov eax, dword [rdi]
inc eax
movsxd rdx, eax
add rdx, rdx
lea rcx, [rbx + 0x18]
mov r9, rdx
mov r8, r14
call qword [sym.imp.msvcrt.dll_memcpy_s]
nop dword [rax + rax]
nop
jmp 0x140023044
mov qword [rbp - 0x48], 7
xor edi, edi
mov qword [rbp - 0x50], rdi
mov word [rbp - 0x60], di
lea rcx, str..___appdata___.____indexedhistory____.
call fcn.14000f730
mov r8, rax
lea rcx, [rbp - 0x60]
call fcn.140086f0c
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400dca7c], eax
jle 0x14003c276
lea rcx, [0x1400dca7c]
call fcn.14002a8c8
cmp dword [0x1400dca7c], 0xffffffff
jne 0x14003c276
lea rdx, [rbp - 0x60]
call fcn.140073c64
lea rcx, [0x140030e90]
call fcn.14002a778
nop
lea rcx, [0x1400dca7c]
call fcn.14002a858
lea rcx, [rsp + 0x20]
call fcn.140015d6c
mov rcx, rax
lea rdx, [0x1400dc750]
call fcn.14007509c
test al, al
je 0x14003c41f
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rdi
mov byte [rsp + 0x58], 1
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1400a6dc8]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
mov ebx, eax
cmp byte [rsp + 0x58], dil
je 0x14003c2fa
mov rdx, qword [rsp + 0x48]
mov r8, qword [rdx]
mov rcx, qword [rsp + 0x50]
mov qword [rdx], rcx
test r8, r8
je 0x14003c2fa
mov rcx, r8
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
test ebx, ebx
js 0x14003c403
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x38]
call fcn.14001718c
nop
lea rcx, [rsp + 0x38]
call fcn.1400166a8
test eax, eax
js 0x14003c3f4
lea rax, [rbp - 0x28]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 0xc1
mov word [rbp - 0x28], di
lea rax, [0x14009a770]
mov qword [rbp - 0x40], rax
lea r8, [rbp - 0x40]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsi + 0x120]
call fcn.1400185f4
test eax, eax
js 0x14003c3ea
xor edx, edx
lea rcx, [rbp - 0x40]
call fcn.1400186cc
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14001718c
nop
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140016324
nop
mov rcx, qword [rsp + 0x40]
add rcx, 0xffffffffffffffe8
call fcn.140011120
mov rdx, r13
lea rcx, [rsp + 0x68]
call fcn.14000f7b0
test eax, eax
je 0x14003c3df
mov dword [rsp + 0x28], edi
mov rax, qword [rsi]
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov rcx, rsi
mov rax, qword [rax + 0x68]
call qword [case.0x1400244c5.0]
test eax, eax
js 0x14003c3df
cmp dword [rsp + 0x28], edi
je 0x14003c3df
mov dword [r15], 1
mov dword [r12], 1
lea rcx, [rsp + 0x68]
call fcn.14000d898
nop
lea rcx, [rbp - 0x40]
call fcn.140014648
nop
mov rcx, qword [rsp + 0x38]
add rcx, 0xffffffffffffffe8
call fcn.140011120
nop
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x30], rdi
test rcx, rcx
je 0x14003c41f
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop dword [rax + rax]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x60]
call fcn.140086b10
nop
jmp 0x1400230a3