Function at 0x1400115bc
Capabilities:
Get common file path

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2e0
mov rdi, rsp
mov ecx, 0xb8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2f0]
mov rax, qword [0x14004c008]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
lea rcx, [rsp + 0x38]
call fcn.14001275c
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, [0x1400413a8]
lea rdx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rsp + 0x38]
call fcn.140012c40
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140012180
mov dword [rsp + 0x2a4], eax
cmp dword [rsp + 0x2a4], 0
jl 0x14001167e
cmp qword [rsp + 0x298], 0
jne 0x1400116f5
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.140012c40
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140012180
mov dword [rsp + 0x2a8], eax
cmp dword [rsp + 0x2a8], 0
jl 0x1400116de
cmp qword [rsp + 0x298], 0
jne 0x1400116f5
lea r8, [0x1400416e8]
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 0x1400117a5
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 0x140011770
mov dword [rsp + 0x2b8], 1
lea rcx, [rsp + 0x38]
call fcn.140012790
mov eax, dword [rsp + 0x2b8]
jmp 0x1400118e9
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
call fcn.1400125e0
mov dword [rsp + 0x2bc], 0
lea rcx, [rsp + 0x38]
call fcn.140012790
mov eax, dword [rsp + 0x2bc]
jmp 0x1400118e9
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 0x140011877
cmp dword [rsp + 0x2ac], 0x104
ja 0x140011877
mov eax, dword [rsp + 0x2f8]
lea r8, [0x1400410c4]
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 0x140011843
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 0x140011843
mov dword [rsp + 0x2c0], 1
lea rcx, [rsp + 0x38]
call fcn.140012790
mov eax, dword [rsp + 0x2c0]
jmp 0x1400118e9
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
call fcn.1400125e0
mov dword [rsp + 0x2c4], 0
lea rcx, [rsp + 0x38]
call fcn.140012790
mov eax, dword [rsp + 0x2c4]
jmp 0x1400118e9
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 0x1400118b7
mov dword [rsp + 0x2c8], 1
lea rcx, [rsp + 0x38]
call fcn.140012790
mov eax, dword [rsp + 0x2c8]
jmp 0x1400118e9
xor r8d, r8d
lea rdx, [0x1400410d4]
lea rcx, str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.1400125e0
mov dword [rsp + 0x2cc], 0
lea rcx, [rsp + 0x38]
call fcn.140012790
mov eax, dword [rsp + 0x2cc]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x140042f80]
call fcn.140013450
mov rax, rdi
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.140013550
add rsp, 0x2e0
pop rdi
ret