Function at 0x140011550
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x5c0
mov qword [rsp + 0x118], 0xfffffffffffffffe
mov rax, qword [0x1400405b0]
xor rax, rsp
mov qword [rsp + 0x5b0], rax
xor r9d, r9d
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x5d0]
call qword [sym.imp.SETUPAPI.dll_SetupOpenInfFileA]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1400115a8
xor eax, eax
jmp 0x140011907
mov byte [rsp + 0x1b0], 0
lea rax, [rsp + 0x1b1]
mov rdi, rax
xor eax, eax
mov ecx, 0x3ff
rep stosb byte [rdi], al
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x400
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
lea r9, str.AllUserShortcuts
lea r8, str.Strings
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.SETUPAPI.dll_SetupGetLineTextA]
test eax, eax
jne 0x140011613
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
xor eax, eax
jmp 0x140011907
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
lea rdx, [0x140031a90]
lea rcx, [rsp + 0x168]
call fcn.140001a70
nop
lea rdx, [rsp + 0x1b0]
lea rcx, [rsp + 0x188]
call fcn.140001a70
nop
lea r8, [rsp + 0x168]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x188]
call fcn.14000c5b0
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x188]
call fcn.14000dc70
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x168]
call fcn.14000dc70
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x19
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x50], rax
jmp 0x1400116e9
mov rax, qword [rsp + 0x50]
add rax, 0x20
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0xf8], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
cmp qword [rsp + 0x50], rax
jne 0x140011722
mov dword [rsp + 0x40], 1
jmp 0x14001172a
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
test eax, eax
jne 0x14001173d
mov dword [rsp + 0x44], 1
jmp 0x140011745
mov dword [rsp + 0x44], 0
movzx eax, byte [rsp + 0x44]
test eax, eax
je 0x1400118e6
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
cmp qword [rax + 0x18], 0x10
jb 0x140011784
mov rax, qword [rsp + 0x120]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x14001178e
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x90]
call fcn.140001980
mov qword [rsp + 0xd8], rax
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0xb0], rax
mov rcx, qword [rsp + 0xb0]
call fcn.140013d80
mov rcx, rax
call fcn.140013c50
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov rax, qword [rax]
sub rax, 0x18
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140003130
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x90]
sub rax, 0x18
mov qword [rsp + 0x100], rax
mov rcx, qword [rsp + 0x100]
call fcn.1400093c0
lea rax, [rsp + 0x148]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x128]
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x110], rax
mov rdx, qword [rsp + 0x110]
mov rcx, qword [rsp + 0xe8]
call fcn.140001a70
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0xa8], rax
lea rdx, [rsp + 0x1b0]
mov rcx, qword [rsp + 0x98]
call fcn.140001a70
mov qword [rsp + 0xb8], rax
xor r8d, r8d
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xb8]
call fcn.140014d70
nop
mov rax, qword [rsp + 0x70]
sub rax, 0x18
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.1400093c0
jmp 0x1400116db
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
mov dword [rsp + 0x68], 1
lea rcx, [rsp + 0x78]
call fcn.14000ddf0
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x5b0]
xor rcx, rsp
call fcn.14001a850
add rsp, 0x5c0
pop rdi
ret