Function at 0x164e50a90
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x7b0]
sub rsp, 0x8b0
mov rax, qword [0x16514b200]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov rsi, qword [rbp + 0x7f0]
mov rbx, qword [rbp + 0x7f8]
mov qword [rsi + 0xd0], rbx
movzx eax, word [rsi + 0xdc]
mov word [rsp + 0x48], ax
xor edi, edi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], 1
mov dword [rsp + 0x5c], 0xffffffff
mov dword [rsp + 0x60], 1
mov rax, qword [rbx]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x164e9d7b8.0]
mov rax, qword [rbx]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x164e9d7b8.0]
test eax, eax
jns 0x164e50b4c
mov eax, 0x80004005
jmp 0x164e50d0d
xor al, al
mov byte [rbp - 0x78], al
lea rcx, [rsp + 0x68]
mov qword [rbp - 0x70], rcx
mov r15, qword [rsp + 0x70]
test r15, r15
jne 0x164e50b6e
mov ebx, 0x80070057
jmp 0x164e50cf4
mov qword [rbp - 0x80], rdi
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
mov ebx, eax
test eax, eax
js 0x164e50cd9
mov r12d, edi
cmp dword [r15], edi
jbe 0x164e50cd7
movabs r14, 0x492492492492492
nop dword [rax]
lea eax, [r12 + 1]
mov r12d, eax
mov ebx, dword [r15 + rax*4 + 4]
add rbx, r15
lea rdx, [rbp - 0x60]
mov rcx, rbx
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x164e50c67
lea rdx, [rbp - 0x60]
mov rcx, rsi
call fcn.164e50f50
lea rbx, [rsi + 0x20]
mov r13, qword [rbx]
cmp qword [rbx + 8], r14
je 0x164e50d37
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rdi
mov ecx, 0x38
call fcn.165001480
mov rdi, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
xor eax, eax
mov qword [rdi + 0x20], rax
mov qword [rdi + 0x28], rax
lea rax, [rbp - 0x60]
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rax + r8*2], 0
jne 0x164e50c20
lea rdx, [rbp - 0x60]
lea rcx, [rdi + 0x10]
call fcn.164e485e0
xor ecx, ecx
mov qword [rdi + 0x30], rcx
inc qword [rbx + 8]
mov rax, qword [r13 + 8]
mov qword [rdi], r13
mov qword [rdi + 8], rax
mov qword [rsp + 0x38], rcx
mov qword [r13 + 8], rdi
mov qword [rax], rdi
xor edi, edi
movabs r14, 0x492492492492492
jmp 0x164e50cce
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov edx, 0xa
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x164e50cce
mov r9, qword [rsp + 0x40]
test r9, r9
je 0x164e50cce
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x164e50d44
mov rax, qword [rcx]
mov r8, rbx
xor edx, edx
mov rax, qword [rax + 0x38]
call qword [case.0x164e9d7b8.0]
test ax, ax
jne 0x164e50cc3
mov rcx, rsi
call fcn.164e50d50
test eax, eax
js 0x164e50cc3
mov byte [rsi + 0xda], 1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
cmp r12d, dword [r15]
jb 0x164e50ba0
mov ebx, edi
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x164e50cf0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x164e9d7b8.0]
nop
movzx eax, byte [rbp - 0x78]
test al, al
jne 0x164e50d0b
lea rax, [rbp - 0x78]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.164e57ee0
mov eax, ebx
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.165001080
mov rbx, qword [rsp + 0x900]
add rsp, 0x8b0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.list_too_long
call fcn.164ffeab4
int3
mov ecx, 0x80004003
call fcn.165000ee0
int3