Function at 0x140012cb8
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.140014be4
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, [0x14004b258]
lea rdx, str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea rcx, [rsp + 0x38]
call fcn.140015274
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140013d7c
mov dword [rsp + 0x2a4], eax
cmp dword [rsp + 0x2a4], 0
jl 0x140012d7c
cmp qword [rsp + 0x298], 0
jne 0x140012df3
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.140015274
lea r8, [rsp + 0x298]
mov edx, 0x104
lea rcx, [rsp + 0x70]
call fcn.140013d7c
mov dword [rsp + 0x2a8], eax
cmp dword [rsp + 0x2a8], 0
jl 0x140012ddc
cmp qword [rsp + 0x298], 0
jne 0x140012df3
lea r8, [0x14004b3a8]
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 0x140012ea3
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 0x140012e6e
mov dword [rsp + 0x2b8], 1
lea rcx, [rsp + 0x38]
call fcn.140014c18
mov eax, dword [rsp + 0x2b8]
jmp 0x140012fe7
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
call fcn.1400141a4
mov dword [rsp + 0x2bc], 0
lea rcx, [rsp + 0x38]
call fcn.140014c18
mov eax, dword [rsp + 0x2bc]
jmp 0x140012fe7
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 0x140012f75
cmp dword [rsp + 0x2ac], 0x104
ja 0x140012f75
mov eax, dword [rsp + 0x2f8]
lea r8, [0x14004b454]
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 0x140012f41
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 0x140012f41
mov dword [rsp + 0x2c0], 1
lea rcx, [rsp + 0x38]
call fcn.140014c18
mov eax, dword [rsp + 0x2c0]
jmp 0x140012fe7
xor r8d, r8d
lea rdx, [rsp + 0x70]
lea rcx, str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
call fcn.1400141a4
mov dword [rsp + 0x2c4], 0
lea rcx, [rsp + 0x38]
call fcn.140014c18
mov eax, dword [rsp + 0x2c4]
jmp 0x140012fe7
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 0x140012fb5
mov dword [rsp + 0x2c8], 1
lea rcx, [rsp + 0x38]
call fcn.140014c18
mov eax, dword [rsp + 0x2c8]
jmp 0x140012fe7
xor r8d, r8d
lea rdx, [0x14004a404]
lea rcx, str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.1400141a4
mov dword [rsp + 0x2cc], 0
lea rcx, [rsp + 0x38]
call fcn.140014c18
mov eax, dword [rsp + 0x2cc]
mov rdi, rax
mov rcx, rsp
lea rdx, [0x14004df30]
call fcn.140015a64
mov rax, rdi
mov rcx, qword [rsp + 0x2d8]
xor rcx, rsp
call fcn.140015b70
add rsp, 0x2e0
pop rdi
ret