Function at 0x140012504
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 [0x140056008]
xor rax, rsp
mov qword [rsp + 0x2d8], rax
lea rcx, [rsp + 0x38]
call fcn.140014494
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, [0x1400488b8]
lea rdx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rsp + 0x38]
call fcn.140014b58
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1400135dc
mov dword [rsp + 0x2a4], eax
cmp dword [rsp + 0x2a4], 0
jl 0x1400125c6
cmp qword [rsp + 0x298], 0
jne 0x14001263d
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.140014b58
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.1400135dc
mov dword [rsp + 0x2a8], eax
cmp dword [rsp + 0x2a8], 0
jl 0x140012626
cmp qword [rsp + 0x298], 0
jne 0x14001263d
lea r8, [0x140048bf8]
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 0x1400126ed
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 0x1400126b8
mov dword [rsp + 0x2b8], 1
lea rcx, [rsp + 0x38]
call fcn.1400144c8
mov eax, dword [rsp + 0x2b8]
jmp 0x140012831
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
call fcn.140013a3c
mov dword [rsp + 0x2bc], 0
lea rcx, [rsp + 0x38]
call fcn.1400144c8
mov eax, dword [rsp + 0x2bc]
jmp 0x140012831
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 0x1400127bf
cmp dword [rsp + 0x2ac], 0x104
ja 0x1400127bf
mov eax, dword [rsp + 0x2f8]
lea r8, [0x1400485d4]
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 0x14001278b
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 0x14001278b
mov dword [rsp + 0x2c0], 1
lea rcx, [rsp + 0x38]
call fcn.1400144c8
mov eax, dword [rsp + 0x2c0]
jmp 0x140012831
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
call fcn.140013a3c
mov dword [rsp + 0x2c4], 0
lea rcx, [rsp + 0x38]
call fcn.1400144c8
mov eax, dword [rsp + 0x2c4]
jmp 0x140012831
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 0x1400127ff
mov dword [rsp + 0x2c8], 1
lea rcx, [rsp + 0x38]
call fcn.1400144c8
mov eax, dword [rsp + 0x2c8]
jmp 0x140012831
xor r8d, r8d
lea rdx, [0x1400485e4]
lea rcx, str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.140013a3c
mov dword [rsp + 0x2cc], 0
lea rcx, [rsp + 0x38]
call fcn.1400144c8
mov eax, dword [rsp + 0x2cc]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004b080]
call fcn.140015370
mov rax, rdi
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.140015470
add rsp, 0x2e0
pop rdi
ret