Function at 0x14018f5c0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x280
mov dword [rsp + 0x160], 0
mov qword [rsp + 0x30], 0
lea r9, [rsp + 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x1403fb548]
call sub.SHELL32.dll_SHGetKnownFolderPath
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jl 0x14018fbea
cmp qword [rsp + 0x30], 0
je 0x14018fbea
lea rax, [rsp + 0x20]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x1f0]
movzx r8d, byte [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140092e80
nop
lea rax, [rsp + 0x21]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x210]
movzx r8d, byte [rsp + 0x21]
lea rdx, str.AutomaticDestinations
mov rcx, rax
call fcn.140092e10
nop
lea r8, [rsp + 0x210]
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x1d0]
call fcn.1400a2c70
nop
lea rax, [rsp + 0x210]
mov rcx, rax
call fcn.14018ddf0
nop
mov r8d, 2
lea rdx, [rsp + 0x1f0]
lea rcx, [rsp + 0x190]
call fcn.14009ae00
mov qword [rsp + 0x1b8], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x78], rax
lea rax, [rsp + 0x230]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x168], rax
mov rax, qword [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x168]
call fcn.14009a110
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0xd8]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0x68]
mov rdx, rax
mov rcx, qword [rsp + 0xf8]
call fcn.14009a0a0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
je 0x14018f74f
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.1400755a0
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x1c0], rax
lea rax, [rsp + 0x240]
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x78]
mov rdx, rax
mov rcx, qword [rsp + 0x100]
call fcn.14009a110
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x108], rax
mov rdx, qword [rsp + 0x108]
lea rcx, [rsp + 0x180]
call fcn.140190a70
nop
jmp 0x14018f7ef
lea rax, [rsp + 0xd8]
mov rcx, rax
call fcn.1401880a0
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14018f7ef
mov edx, dword [rsp + 0x28]
lea rcx, str.directory_iterator::operator
call fcn.14018d5f0
lea rax, [rsp + 0x180]
lea rcx, [rsp + 0xd8]
mov rdx, rax
call fcn.140091790
mov byte [rsp + 0x22], al
movzx eax, byte [rsp + 0x22]
test eax, eax
jne 0x14018f86a
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x110], rax
mov rax, qword [rsp + 0x110]
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x120], rax
mov rax, qword [rsp + 0x120]
add rax, 0x20
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.140198f50
jmp 0x14018f7bc
lea rax, [rsp + 0x180]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
cmp qword [rax + 8], 0
je 0x14018f89b
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 8]
call fcn.1400755a0
nop
lea rax, [rsp + 0xd8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x90]
cmp qword [rax + 8], 0
je 0x14018f8cc
mov rax, qword [rsp + 0x90]
mov rcx, qword [rax + 8]
call fcn.1400755a0
nop
lea rax, [rsp + 0x190]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
cmp qword [rax + 8], 0
je 0x14018f8fc
mov rax, qword [rsp + 0x98]
mov rcx, qword [rax + 8]
call fcn.1400755a0
lea rcx, [rsp + 0x1d0]
call fcn.140190c20
mov byte [rsp + 0x23], al
movzx eax, byte [rsp + 0x23]
test eax, eax
je 0x14018fbbb
mov r8d, 2
lea rdx, [rsp + 0x1d0]
lea rcx, [rsp + 0x170]
call fcn.14009ae00
mov qword [rsp + 0x1c8], rax
lea rax, [rsp + 0x170]
mov qword [rsp + 0xb8], rax
lea rax, [rsp + 0x250]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rax], 0
mov rax, qword [rsp + 0x48]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xb8]
mov rdx, rax
mov rcx, qword [rsp + 0x48]
call fcn.140093310
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x130], rax
mov rax, qword [rsp + 0xa8]
mov rdx, rax
mov rcx, qword [rsp + 0x130]
call fcn.14009a0a0
mov rax, qword [rsp + 0xa8]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
cmp qword [rax + 8], 0
je 0x14018fa00
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rax + 8]
call fcn.1400755a0
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x1b0], rax
lea rax, [rsp + 0x260]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rax], 0
mov rax, qword [rsp + 0x50]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0xb8]
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call fcn.140093310
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x138], rax
mov rdx, qword [rsp + 0x138]
lea rcx, [rsp + 0x1a0]
call fcn.140190a70
nop
jmp 0x14018fab6
lea rax, [rsp + 0xe8]
mov rcx, rax
call fcn.1401880a0
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0
je 0x14018fab6
mov edx, dword [rsp + 0x2c]
lea rcx, str.directory_iterator::operator
call fcn.14018d5f0
lea rax, [rsp + 0x1a0]
lea rcx, [rsp + 0xe8]
mov rdx, rax
call fcn.140091790
mov byte [rsp + 0x24], al
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x14018fb31
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x140], rax
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x148], rax
mov rax, qword [rsp + 0x148]
mov qword [rsp + 0x150], rax
mov rax, qword [rsp + 0x150]
add rax, 0x20
mov qword [rsp + 0x158], rax
mov rcx, qword [rsp + 0x158]
call fcn.140198f50
jmp 0x14018fa83
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xc8]
cmp qword [rax + 8], 0
je 0x14018fb62
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rax + 8]
call fcn.1400755a0
nop
lea rax, [rsp + 0xe8]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
cmp qword [rax + 8], 0
je 0x14018fb93
mov rax, qword [rsp + 0xd0]
mov rcx, qword [rax + 8]
call fcn.1400755a0
nop
lea rax, [rsp + 0x170]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 8], 0
je 0x14018fbbb
mov rax, qword [rsp + 0x58]
mov rcx, qword [rax + 8]
call fcn.1400755a0
nop
jmp 0x14018fbbd
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rax, [rsp + 0x1d0]
mov rcx, rax
call fcn.14018ddf0
nop
lea rax, [rsp + 0x1f0]
mov rcx, rax
call fcn.14018ddf0
add rsp, 0x280
pop rdi
ret