Function at 0x140037f10
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x2f0], rbx
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
mov qword [rcx + 0x10], r15
mov qword [rcx + 0x18], 7
mov word [rcx], r15w
lea rdx, [0x1400b6790]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
mov r13d, 1
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x58], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x1400bd460]
xor edx, edx
lea r8d, [r15 + 0x17]
lea rcx, [0x1400b65a0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov rcx, qword [rsp + 0x58]
test eax, eax
js 0x1400381e2
test rcx, rcx
je 0x1400381e2
mov dword [rsp + 0x70], r15d
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
call qword [rax + 0x50]
test eax, eax
js 0x140037fef
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov edx, dword [rsp + 0x70]
or edx, 0x20
call qword [rax + 0x48]
lea rdi, [rbp - 0x80]
xor eax, eax
mov ecx, 0x104
rep stosb byte [rdi], al
xor r12b, r12b
test rbx, rbx
je 0x140038063
mov qword [rsp + 0x50], r15
lea r9, [rsp + 0x50]
lea r8, [0x1400b65b0]
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x140038063
mov qword [rsp + 0x78], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x60]
movzx ebx, r12b
test eax, eax
cmovns ebx, r13d
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test bl, bl
jne 0x140038110
mov qword [rsp + 0x60], r15
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea rdx, [rsp + 0x60]
mov ecx, eax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
cmp eax, 1
jne 0x140038097
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
cmp eax, 1
jne 0x140038097
mov r8, qword [rsp + 0x60]
jmp 0x14003809a
xor r8d, r8d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea edx, [r9 + 5]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov qword [rsp + 0x48], r15
lea r9, [rsp + 0x48]
lea r8, [0x1400b65b0]
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x140038100
mov qword [rsp + 0x78], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rdx, rdi
call qword [rax + 0x60]
nop
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140038110
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
mov rdx, r14
call qword [rax + 0x18]
test eax, eax
js 0x14003814f
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + 0xd8]
test eax, eax
jns 0x140038168
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003814f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400381ed
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x1400381ed
mov dword [rsp + 0x74], r15d
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea rdx, [rsp + 0x74]
call qword [rax + 0x38]
test eax, eax
js 0x14003813e
cmp dword [rsp + 0x74], 0
jbe 0x14003813e
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
mov rax, qword [rcx]
lea r8, [rsp + 0x60]
xor edx, edx
call qword [rax + 0x40]
test eax, eax
jns 0x1400381b5
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003813e
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14003813e
mov qword [rsp + 0x48], r15
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea r8, [rsp + 0x48]
mov edx, 0x80058000
call qword [rax + 0x28]
test eax, eax
js 0x1400381a3
mov rdx, qword [rsp + 0x48]
mov rcx, rsi
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
jmp 0x1400381a3
test rcx, rcx
je 0x1400381ed
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rax, rsi
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.140093940
mov rbx, qword [rsp + 0x2f0]
add rsp, 0x2a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret