Function at 0x140022bbc
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 0x14003e266
cmp rax, qword [rbx]
jne 0x14003e266
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 0x140022c6e
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.1400115f0
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.14000a8d8
lea rdx, str.indexed
lea rcx, [rsp + 0x30]
call fcn.140022d14
mov esi, eax
lea rdx, str.history
lea rcx, [rsp + 0x30]
call fcn.140022d14
mov r14d, eax
lea rdx, str.appdata
lea rcx, [rsp + 0x30]
call fcn.140022d14
cmp eax, 0xffffffff
je 0x140022cd7
cmp esi, eax
jg 0x14003e2b9
cmp r14d, eax
jg 0x14003e2b9
lea rcx, [rbx - 0x18]
call fcn.14000ee30
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14002c960
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 0x14003e28f
call fcn.140051a1c
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 0x140022c43
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.140014254
mov r8, rax
lea rcx, [rbp - 0x48]
call fcn.14007ee68
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400c787c], eax
jle 0x14003e337
lea rcx, [0x1400c787c]
call fcn.14002cf18
cmp dword [0x1400c787c], 0xffffffff
jne 0x14003e337
lea rdx, [rbp - 0x48]
call fcn.14006ba20
lea rcx, [0x140033060]
call fcn.14002cdc8
nop
lea rcx, [0x1400c787c]
call fcn.14002cea8
lea rcx, [rsp + 0x30]
call fcn.14000b9b8
mov rbx, rax
mov rcx, rax
call fcn.140014254
lea rdx, [rbx + rax*2]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.14006c8d8
test al, al
je 0x14003e4d6
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 0x14003e3bf
mov rdx, qword [rsp + 0x58]
mov r8, qword [rdx]
mov rcx, qword [rsp + 0x60]
mov qword [rdx], rcx
test r8, r8
je 0x14003e3bf
mov rcx, r8
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
js 0x14003e4c0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.140015920
nop
lea rcx, [rsp + 0x48]
call fcn.1400150ec
test eax, eax
js 0x14003e4b1
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.14000a614
test eax, eax
js 0x14003e4a7
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.14000a6f8
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.140015920
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.140014d34
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.14000ee30
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.1400120d8
test eax, eax
je 0x14003e49d
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 0x14003e49d
cmp dword [rsp + 0x38], esi
je 0x14003e49d
mov dword [r12], edi
mov dword [r13], edi
lea rcx, [rbp - 0x80]
call fcn.14000c8f8
nop
lea rcx, [rbp - 0x20]
call fcn.140011dd0
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.14000ee30
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
test rcx, rcx
je 0x14003e4d6
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.14007e9c8
mov rbx, qword [rsp + 0x30]
jmp 0x140022cd7