Function at 0x140011858
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
lea rdi, [rsp + 0x30]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f0]
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
lea rcx, [rsp + 0x38]
call fcn.140013784
nop
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov qword [rsp + 0x298], 0
mov dword [rsp + 0x28], 0x105
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, [0x140049268]
lea rdx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rsp + 0x38]
call fcn.140013e14
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14001291c
mov dword [rsp + 0x2a4], eax
cmp dword [rsp + 0x2a4], 0
jl 0x14001191c
cmp qword [rsp + 0x298], 0
jne 0x140011993
mov dword [rsp + 0x28], 0x105
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
lea r8, str.Shell
lea rdx, str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rsp + 0x38]
call fcn.140013e14
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.14001291c
mov dword [rsp + 0x2a8], eax
cmp dword [rsp + 0x2a8], 0
jl 0x14001197c
cmp qword [rsp + 0x298], 0
jne 0x140011993
lea r8, [0x1400493b8]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc rax
mov qword [rsp + 0x2d0], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, eax
mov rcx, qword [rsp + 0x2d0]
cmp rcx, rax
jne 0x140011a43
mov eax, dword [rsp + 0x2f8]
lea r8, [rsp + 0x70]
mov edx, eax
mov rcx, qword [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x140011a0e
mov dword [rsp + 0x2b8], 1
lea rcx, [rsp + 0x38]
call fcn.1400137b8
mov eax, dword [rsp + 0x2b8]
jmp 0x140011b87
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
call fcn.140012d44
mov dword [rsp + 0x2bc], 0
lea rcx, [rsp + 0x38]
call fcn.1400137b8
mov eax, dword [rsp + 0x2bc]
jmp 0x140011b87
mov edx, 0x104
mov rcx, qword [rsp + 0x2f0]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov dword [rsp + 0x2ac], eax
cmp dword [rsp + 0x2ac], 0
je 0x140011b15
cmp dword [rsp + 0x2ac], 0x104
ja 0x140011b15
mov eax, dword [rsp + 0x2f8]
lea r8, [0x140049464]
mov edx, eax
mov rcx, qword [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140011ae1
mov eax, dword [rsp + 0x2f8]
lea r8, [rsp + 0x70]
mov edx, eax
mov rcx, qword [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
test eax, eax
jne 0x140011ae1
mov dword [rsp + 0x2c0], 1
lea rcx, [rsp + 0x38]
call fcn.1400137b8
mov eax, dword [rsp + 0x2c0]
jmp 0x140011b87
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
call fcn.140012d44
mov dword [rsp + 0x2c4], 0
lea rcx, [rsp + 0x38]
call fcn.1400137b8
mov eax, dword [rsp + 0x2c4]
jmp 0x140011b87
mov eax, dword [rsp + 0x2f8]
lea r8, str.C:Windowsexplorer.exe
mov edx, eax
mov rcx, qword [rsp + 0x2f0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
test eax, eax
jne 0x140011b55
mov dword [rsp + 0x2c8], 1
lea rcx, [rsp + 0x38]
call fcn.1400137b8
mov eax, dword [rsp + 0x2c8]
jmp 0x140011b87
xor r8d, r8d
lea rdx, [0x140048414]
lea rcx, str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.140012d44
mov dword [rsp + 0x2cc], 0
lea rcx, [rsp + 0x38]
call fcn.1400137b8
mov eax, dword [rsp + 0x2cc]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004bf40]
call fcn.140014604
mov rax, rdi
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.140014710
add rsp, 0x2e0
pop rdi
ret