Function at 0x1400013a0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x20c0]
mov eax, 0x21c0
call fcn.1400fc480
sub rsp, rax
mov rax, qword [0x140160370]
xor rax, rsp
mov qword [rbp + 0x20b0], rax
or qword [rsp + 0x78], 0xffffffffffffffff
xor ebx, ebx
mov dword [rbp - 0x80], r9d
mov rsi, rdx
mov qword [rbp - 0x58], r8
mov rdi, rcx
mov qword [rbp - 0x78], rdx
mov qword [rbp - 0x70], rcx
mov byte [rsp + 0x50], bl
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x68], rbx
test r9d, r9d
jne 0x140001430
mov rcx, qword [rcx]
lea rax, [rbp - 0x60]
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x11]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rcx, qword [rdi]
lea rax, [rbp - 0x68]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea edx, [rbx + 0x12]
call qword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov rax, qword [rsi]
mov qword [rsp + 0x70], rbx
mov rbx, qword [rax + 0x20]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rdx, qword [rdi]
lea r9, [rsp + 0x70]
mov r8d, 0x20
mov rcx, rsi
call rbx
xor ecx, ecx
test eax, eax
jne 0x1400017c5
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x1400017c5
mov qword [rsp + 0x58], rcx
mov rax, qword [rax]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rcx, qword [rsp + 0x70]
lea r9, [rbp - 0x7c]
lea r8, [rsp + 0x58]
mov edx, 1
call rbx
jmp 0x1400017a3
mov rax, qword [rsi]
mov dword [rsp + 0x68], 0x10000000
mov rbx, qword [rax + 0x48]
mov rcx, rbx
call qword [fcn.1400fd580]
lea r9, [rsp + 0x68]
mov edx, 1
lea r8, [rsp + 0x58]
mov rcx, rsi
call rbx
test dword [rsp + 0x68], 0x10000000
jne 0x1400014fb
mov rdi, qword [0x1401c95b0]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call rbx
jmp 0x140001777
mov rdx, qword [rsp + 0x58]
lea r9, [rbp + 0xfb0]
mov r8d, 1
mov qword [rsp + 0x20], 0x880
mov rcx, rsi
call fcn.1400157bc
xor ebx, ebx
test al, al
je 0x1400014d5
cmp dword [rbp - 0x80], ebx
jne 0x14000162d
mov r9, qword [rsp + 0x58]
lea rax, [rbp + 0xfb0]
or rcx, 0xffffffffffffffff
mov byte [rsp + 0x40], 1
mov qword [rsp + 0x38], rcx
lea r8d, [rbx + 4]
mov dword [rsp + 0x30], 1
lea rdx, [rbp + 0xfb0]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.140001cb4
mov rcx, qword [rsi]
mov qword [rsp + 0x60], rax
mov rbx, qword [rcx + 0x38]
mov rcx, rbx
call qword [fcn.1400fd580]
mov r9, qword [rsp + 0x58]
xor edx, edx
mov r8, qword [rbp - 0x68]
mov rcx, rsi
call rbx
test eax, eax
jne 0x1400015a0
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rdi + 8], rax
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
mov rcx, rbx
call qword [fcn.1400fd580]
mov r9, qword [rsp + 0x58]
xor edx, edx
mov r8, qword [rbp - 0x60]
mov rcx, rsi
call rbx
xor ecx, ecx
test eax, eax
jne 0x140001777
mov rax, qword [rsi]
mov qword [rsp + 0x60], rcx
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rdx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
lea r9, [0x140137410]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, rsi
call rbx
test eax, eax
jne 0x140001777
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x140001777
mov r8, qword [rsp + 0x58]
lea r9d, [rax + 1]
mov rcx, rdi
call fcn.1400013a0
mov byte [rsp + 0x50], al
jmp 0x140001777
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x58]
call fcn.1400138ac
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x60], rax
mov rcx, rax
mov word [rbp - 0x50], bx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rdi, qword [0x1401c95b0]
test eax, eax
setne sil
mov rdx, qword [rdi]
mov rbx, qword [rdx + 0x28]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rdx, qword [rsp + 0x60]
mov rcx, rdi
call rbx
xor ebx, ebx
test sil, sil
jne 0x1400016a5
mov rdi, qword [0x1401c95b0]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call rbx
jmp 0x140001773
lea rcx, [rbp - 0x50]
call fcn.14007fd08
test al, al
je 0x140001728
movzx eax, word [rbp - 0x4c]
test ax, ax
je 0x1400016c7
cmp ax, 0x5c
jne 0x140001728
cmp word [rbp - 0x4a], bx
jne 0x140001728
mov edx, 0x800
lea rcx, [rbp - 0x50]
call fcn.14007ea30
mov rbx, qword [rsp + 0x78]
lea rax, [rbp + 0xfb0]
mov rcx, qword [rbp - 0x70]
lea rdx, [rbp - 0x50]
mov byte [rsp + 0x40], 1
xor r9d, r9d
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
or dword [rsp + 0x20], 0xffffffff
call fcn.140001cb4
cmp rbx, 0xffffffffffffffff
mov byte [rsp + 0x50], 1
lea rax, [rbx + 1]
cmove rax, rbx
mov qword [rsp + 0x78], rax
jmp 0x140001773
mov rcx, qword [rbp - 0x70]
lea rax, [rbp + 0xfb0]
mov byte [rsp + 0x40], 1
lea rdx, [rbp - 0x50]
or rbx, 0xffffffffffffffff
xor r9d, r9d
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 6]
mov dword [rsp + 0x20], ebx
call fcn.140001cb4
mov rcx, qword [rsp + 0x78]
cmp rcx, rbx
cmove rcx, rax
mov qword [rsp + 0x78], rcx
mov rsi, qword [rbp - 0x78]
mov rdi, qword [rsp + 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [fcn.1400fd580]
lea r9, [rbp - 0x7c]
mov edx, 1
lea r8, [rsp + 0x58]
mov rcx, rdi
call rbx
mov rdi, qword [rbp - 0x70]
test eax, eax
je 0x14000149f
mov rdi, qword [rsp + 0x70]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rcx, rdi
call rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rcx, rsi
call rbx
mov rsi, qword [rbp - 0x68]
test rsi, rsi
je 0x140001802
mov rdi, qword [0x1401c95b0]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rdx, rsi
mov rcx, rdi
call rbx
mov rsi, qword [rbp - 0x60]
test rsi, rsi
je 0x14000182a
mov rdi, qword [0x1401c95b0]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x28]
mov rcx, rbx
call qword [fcn.1400fd580]
mov rdx, rsi
mov rcx, rdi
call rbx
mov al, byte [rsp + 0x50]
mov rcx, qword [rbp + 0x20b0]
xor rcx, rsp
call fcn.1400fc4f0
mov rbx, qword [rsp + 0x21f8]
add rsp, 0x21c0
pop rdi
pop rsi
pop rbp
ret