Function at 0x140022c1c
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 [0x1400c5228]
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 rcx, qword [rbx]
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
call qword [case.0x140002c98.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x14003e360
cmp rax, qword [rbx]
jne 0x14003e360
mov edi, 1
lock add dword [rbx + 0x10], edi
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 0x140022cce
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.140011600
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.14000a8e8
lea rdx, str.indexed
lea rcx, [rsp + 0x30]
call fcn.140022d74
mov esi, eax
lea rdx, str.history
lea rcx, [rsp + 0x30]
call fcn.140022d74
mov r14d, eax
lea rdx, str.appdata
lea rcx, [rsp + 0x30]
call fcn.140022d74
cmp eax, 0xffffffff
je 0x140022d37
cmp esi, eax
jg 0x14003e3b3
cmp r14d, eax
jg 0x14003e3b3
lea rcx, [rbx - 0x18]
call fcn.14000ee40
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14002c9c0
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
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.0x140002c98.0]
mov rbx, rax
test rax, rax
jne 0x14003e389
call fcn.140051b0c
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]
nop
jmp 0x140022ca3
mov qword [rbp - 0x30], 7
xor esi, esi
mov qword [rbp - 0x38], rsi
mov word [rbp - 0x48], si
lea rcx, str..___appdata___.____indexedhistory____.
call fcn.140014264
mov r8, rax
lea rcx, [rbp - 0x48]
call fcn.14007f1a8
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400c787c], eax
jle 0x14003e431
lea rcx, [0x1400c787c]
call fcn.14002cf78
cmp dword [0x1400c787c], 0xffffffff
jne 0x14003e431
lea rdx, [rbp - 0x48]
call fcn.14006bd60
lea rcx, [0x1400331a0]
call fcn.14002ce28
nop
lea rcx, [0x1400c787c]
call fcn.14002cf08
lea rcx, [rsp + 0x30]
call fcn.14000b9c8
mov rbx, rax
mov rcx, rax
call fcn.140014264
lea rdx, [rbx + rax*2]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.14006cc18
test al, al
je 0x14003e5d0
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, [0x140096818]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov ebx, eax
cmp byte [rsp + 0x68], sil
je 0x14003e4b9
mov rdx, qword [rsp + 0x58]
mov r8, qword [rdx]
mov rcx, qword [rsp + 0x60]
mov qword [rdx], rcx
test r8, r8
je 0x14003e4b9
mov rcx, r8
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
js 0x14003e5ba
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140015930
nop
lea rcx, [rsp + 0x48]
call fcn.1400150fc
test eax, eax
js 0x14003e5ab
lea rax, [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0xc1
mov word [rbp - 8], si
lea rax, [0x14008a850]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [r15 + 0x120]
call fcn.14000a624
test eax, eax
js 0x14003e5a1
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14000a708
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140015930
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140014d44
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.14000ee40
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400120e8
test eax, eax
je 0x14003e597
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.0x140002c98.0]
test eax, eax
js 0x14003e597
cmp dword [rsp + 0x38], esi
je 0x14003e597
mov dword [r12], edi
mov dword [r13], edi
lea rcx, [rbp - 0x80]
call fcn.14000c908
nop
lea rcx, [rbp - 0x20]
call fcn.140011de0
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.14000ee40
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
test rcx, rcx
je 0x14003e5d0
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.14007ed08
mov rbx, qword [rsp + 0x30]
jmp 0x140022d37