Function at 0x140071b30
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.140013000]
cmp rax, rcx
je 0x140071ba6
mov rcx, r10
call qword [case.0x140006f84.0]
mov r10, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x140071bc0
cmp r10, qword [rbx]
jne 0x140071bc0
mov edi, 1
lock add dword [rbx + 0x10], edi
jmp 0x140071c0d
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.0x140006f84.0]
mov rbx, rax
test rax, rax
jne 0x140071be9
call fcn.140056eb8
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 0x140071c38
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.140012d00
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.140012e28
lea rdx, str.indexed
lea rcx, [rsp + 0x30]
call fcn.140073c64
mov esi, eax
lea rdx, str.history
lea rcx, [rsp + 0x30]
call fcn.140073c64
mov r14d, eax
lea rdx, str.appdata
lea rcx, [rsp + 0x30]
call fcn.140073c64
cmp eax, 0xffffffff
je 0x140071ee6
cmp esi, eax
jg 0x140071ca1
cmp r14d, eax
jle 0x140071ee6
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, str..___appdata___.____indexedhistory____.
call fcn.14001c7e8
mov r8, rax
lea rcx, [rbp - 0x48]
call fcn.140080304
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400cb84c], eax
jle 0x140071d27
lea rcx, [0x1400cb84c]
call fcn.14002d308
cmp dword [0x1400cb84c], 0xffffffff
jne 0x140071d27
lea rdx, [rbp - 0x48]
call fcn.14006e22c
lea rcx, [0x140033020]
call fcn.14002d1f0
nop
lea rcx, [0x1400cb84c]
call fcn.14002d29c
lea rcx, [rsp + 0x30]
call fcn.140044980
mov rbx, rax
mov rcx, rax
call fcn.14001c7e8
lea rdx, [rbx + rax*2]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.14006ef1c
test al, al
je 0x140071ed2
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, [0x140097438]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov r14d, eax
cmp byte [rsp + 0x68], sil
je 0x140071db4
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rcx, qword [rsi]
cmp rbx, rcx
je 0x140071db2
test rcx, rcx
je 0x140071daf
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 0x140071ec1
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14001716c
nop
lea rcx, [rsp + 0x48]
call fcn.140017df4
test eax, eax
js 0x140071eb2
lea rax, fcn.14001b3f0
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.140019f80
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [r15 + 0xe0]
call fcn.1400201d4
test eax, eax
js 0x140071ea8
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14001459c
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001716c
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140012a08
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call int.140013dd0
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.140045db4
test eax, eax
je 0x140071e9e
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.0x140006f84.0]
test eax, eax
js 0x140071e9e
cmp dword [rsp + 0x38], esi
je 0x140071e9e
mov dword [r12], edi
mov dword [r13], edi
lea rcx, [rbp - 0x80]
call fcn.140021600
nop
lea rcx, [rbp - 0x20]
call fcn.140017f7c
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call int.140013dd0
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140071ed2
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.14007fe98
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call int.140013dd0
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14002cdb0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret