Function at 0x140071ea4
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 - 0x1c8]
sub rsp, 0x290
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400c9158]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov r12, r9
mov qword [rsp + 0x70], rdx
mov r15, rcx
mov r13, qword [rbp + 0x1f0]
mov rsi, qword [rdx + 0x28]
lea rbx, [rsi - 0x18]
mov r10, qword [rbx]
mov rax, qword [r10]
mov rax, qword [rax + 0x20]
lea rcx, [fcn.140016910]
cmp rax, rcx
je 0x140071f1a
mov rcx, r10
call qword [case.0x14000702c.0]
mov r10, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x140071f34
cmp r10, qword [rbx]
jne 0x140071f34
mov edi, 1
lock add dword [rbx + 0x10], edi
jmp 0x140071f81
lea rdi, [rbx + 8]
mov rax, qword [r10]
mov r8d, 2
mov edx, dword [rdi]
mov rcx, r10
mov rax, qword [rax]
call qword [case.0x14000702c.0]
mov rbx, rax
test rax, rax
jne 0x140071f5d
call fcn.140056cd8
int3
mov eax, dword [rdi]
mov dword [rbx + 8], eax
mov eax, dword [rdi]
mov edi, 1
add eax, edi
movsxd rdx, eax
add rdx, rdx
lea rcx, [rbx + 0x18]
mov r9, rdx
mov r8, rsi
call qword [sym.imp.msvcrt.dll_memcpy_s]
add rbx, 0x18
mov qword [rsp + 0x30], rbx
mov esi, dword [rbx - 0x10]
mov ecx, edi
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, esi
or eax, ecx
jge 0x140071fac
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.1400164a0
mov rbx, qword [rsp + 0x30]
lea eax, [rsi + 1]
movsxd rdx, eax
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcslwr_s]
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.1400165c8
lea rdx, str.indexed
lea rcx, [rsp + 0x30]
call fcn.140073f8c
mov esi, eax
lea rdx, str.history
lea rcx, [rsp + 0x30]
call fcn.140073f8c
mov r14d, eax
lea rdx, str.appdata
lea rcx, [rsp + 0x30]
call fcn.140073f8c
cmp eax, 0xffffffff
je 0x14007225a
cmp esi, eax
jg 0x140072015
cmp r14d, eax
jle 0x14007225a
xor esi, esi
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], rsi
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
lea rcx, [0x1400a60a0]
call fcn.14001c6a8
mov r8, rax
lea rcx, [rbp - 0x48]
call fcn.140080720
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400cb848], eax
jle 0x14007209b
lea rcx, [0x1400cb848]
call fcn.14002e298
cmp dword [0x1400cb848], 0xffffffff
jne 0x14007209b
lea rdx, [rbp - 0x48]
call fcn.14006e4cc
lea rcx, [0x1400340c0]
call fcn.14002e180
nop
lea rcx, [0x1400cb848]
call fcn.14002e22c
lea rcx, [rsp + 0x30]
call fcn.1400447b0
mov rbx, rax
mov rcx, rax
call fcn.14001c6a8
lea rdx, [rbx + rax*2]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.14006f180
test al, al
je 0x140072246
mov qword [rsp + 0x40], rsi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rsi
mov byte [rsp + 0x68], dil
lea r9, [rsp + 0x60]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140097378]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov r14d, eax
cmp byte [rsp + 0x68], sil
je 0x140072128
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsi]
cmp rbx, rcx
je 0x140072126
test rcx, rcx
je 0x140072123
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
mov qword [rsi], rbx
xor esi, esi
test r14d, r14d
js 0x140072235
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14001aa94
nop
lea rcx, [rsp + 0x48]
call fcn.140009c00
test eax, eax
js 0x140072226
lea rax, fcn.14001b680
mov qword [rbp - 0x20], rax
lea rax, [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0xc1
mov word [rbp - 8], si
lea rax, fcn.140008d70
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [r15 + 0x108]
call fcn.140020ae8
test eax, eax
js 0x14007221c
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.140017eac
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001aa94
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140016318
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140045c04
test eax, eax
je 0x140072212
mov dword [rsp + 0x38], esi
mov rax, qword [r15]
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0x40]
mov rcx, r15
mov rax, qword [rax + 0x68]
call qword [case.0x14000702c.0]
test eax, eax
js 0x140072212
cmp dword [rsp + 0x38], esi
je 0x140072212
mov dword [r12], edi
mov dword [r13], edi
lea rcx, [rbp - 0x80]
call fcn.14001ed40
nop
lea rcx, [rbp - 0x20]
call fcn.140009bb0
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.1400176e0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140072246
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
nop
xor r8d, r8d
mov dl, dil
lea rcx, [rbp - 0x48]
call fcn.1400802b4
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.1400176e0
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14002dd40
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret