Function at 0x1400049ec
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 [0x1400c7228]
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.0x1400022d4.0]
mov r9, rax
mov ecx, dword [rbx + 0x10]
shr ecx, 0x1f
test cl, cl
jne 0x140033aec
cmp rax, qword [rbx]
jne 0x140033aec
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 0x140004a9e
mov edx, esi
lea rcx, [rsp + 0x30]
call fcn.14001a020
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.140012b24
lea rdx, str.indexed
lea rcx, [rsp + 0x30]
call fcn.140004b44
mov esi, eax
lea rdx, str.history
lea rcx, [rsp + 0x30]
call fcn.140004b44
mov r14d, eax
lea rdx, str.appdata
lea rcx, [rsp + 0x30]
call fcn.140004b44
cmp eax, 0xffffffff
je 0x140004b07
cmp esi, eax
jg 0x140033b3f
cmp r14d, eax
jg 0x140033b3f
lea rcx, [rbx - 0x18]
call fcn.140017860
xor eax, eax
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.14002c150
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.0x1400022d4.0]
mov rbx, rax
test rax, rax
jne 0x140033b15
call fcn.140052bac
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 0x140004a73
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.14001c97c
mov r8, rax
lea rcx, [rbp - 0x48]
call fcn.14007ffd8
nop
mov edx, 4
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x1400c98c8], eax
jle 0x140033bbd
lea rcx, [0x1400c98c8]
call fcn.14002c708
cmp dword [0x1400c98c8], 0xffffffff
jne 0x140033bbd
lea rdx, [rbp - 0x48]
call fcn.14006cb70
lea rcx, [0x140032760]
call fcn.14002c5b8
nop
lea rcx, [0x1400c98c8]
call fcn.14002c698
lea rcx, [rsp + 0x30]
call fcn.14001d914
mov rbx, rax
mov rcx, rax
call fcn.14001c97c
lea rdx, [rbx + rax*2]
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov rcx, rbx
call fcn.14006da28
test al, al
je 0x140033d5c
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, [0x1400978a8]
call qword [sym.imp.ext_ms_win_shell32_shellfolders_l1_1_0.dll_SHGetKnownFolderPath]
mov ebx, eax
cmp byte [rsp + 0x68], sil
je 0x140033c45
mov rdx, qword [rsp + 0x58]
mov r8, qword [rdx]
mov rcx, qword [rsp + 0x60]
mov qword [rdx], rcx
test r8, r8
je 0x140033c45
mov rcx, r8
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoTaskMemFree]
test ebx, ebx
js 0x140033d46
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x48]
call fcn.14001e324
nop
lea rcx, [rsp + 0x48]
call fcn.14001d7fc
test eax, eax
js 0x140033d37
lea rax, [rbp - 8]
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], 0xc1
mov word [rbp - 8], si
lea rax, [0x14008c3c0]
mov qword [rbp - 0x20], rax
lea r8, [rbp - 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [r15 + 0xf8]
call fcn.1400127fc
test eax, eax
js 0x140033d2d
xor edx, edx
lea rcx, [rbp - 0x20]
call fcn.1400128e0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14001e324
nop
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14001d444
nop
mov rcx, qword [rsp + 0x50]
add rcx, 0xffffffffffffffe8
call fcn.140017860
mov rdx, qword [rsp + 0x70]
lea rcx, [rbp - 0x80]
call fcn.14001ab80
test eax, eax
je 0x140033d23
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.0x1400022d4.0]
test eax, eax
js 0x140033d23
cmp dword [rsp + 0x38], esi
je 0x140033d23
mov dword [r12], edi
mov dword [r13], edi
lea rcx, [rbp - 0x80]
call fcn.140014fb8
nop
lea rcx, [rbp - 0x20]
call fcn.14001a800
nop
mov rcx, qword [rsp + 0x48]
add rcx, 0xffffffffffffffe8
call fcn.140017860
nop
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x40], rsi
test rcx, rcx
je 0x140033d5c
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.14007fb38
mov rbx, qword [rsp + 0x30]
jmp 0x140004b07