Function at 0x412314
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41584a
mov eax, dword fs:[0]
push eax
sub esp, 0x360
push ebx
push esi
push edi
lea edi, [ebp - 0x36c]
mov ecx, 0xd8
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x41f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x20]
call fcn.00413456
and dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x230], ax
push 0x206
push 0
lea eax, [ebp - 0x22e]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
and dword [ebp - 0x23c], 0
push 0x105
push 0
lea eax, [ebp - 0x230]
push eax
push str.Shell
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x20]
call fcn.0041399f
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00412e85
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jl 0x4123d6
cmp dword [ebp - 0x23c], 0
jne 0x412449
push 0x105
push 0
lea eax, [ebp - 0x230]
push eax
push str.Shell
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x20]
call fcn.0041399f
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00412e85
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jl 0x412426
cmp dword [ebp - 0x23c], 0
jne 0x412449
mov esi, esp
push str.explorer.exe
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
mov esi, esp
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00414070
mov esi, eax
inc esi
mov edi, esp
push 0
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
cmp edi, esp
call fcn.00414070
cmp esi, eax
jne 0x4124fd
mov esi, esp
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x4124c9
mov dword [ebp - 0x368], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00413498
mov eax, dword [ebp - 0x368]
jmp 0x41263d
push 0
lea eax, [ebp - 0x230]
push eax
push str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
call fcn.004132a2
add esp, 0xc
and dword [ebp - 0x35c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00413498
mov eax, dword [ebp - 0x35c]
jmp 0x41263d
mov esi, esp
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.00414070
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x4125d1
cmp dword [ebp - 0x260], 0x104
ja 0x4125d1
mov esi, esp
push 0x416c18
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x41259e
mov esi, esp
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x41259e
mov dword [ebp - 0x350], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00413498
mov eax, dword [ebp - 0x350]
jmp 0x41263d
push 0
lea eax, [ebp - 0x230]
push eax
push str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
call fcn.004132a2
add esp, 0xc
and dword [ebp - 0x344], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00413498
mov eax, dword [ebp - 0x344]
jmp 0x41263d
mov esi, esp
push str.C:Windowsexplorer.exe
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00414070
test eax, eax
jne 0x412610
mov dword [ebp - 0x338], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00413498
mov eax, dword [ebp - 0x338]
jmp 0x41263d
push 0
push 0x416c14
push str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.004132a2
add esp, 0xc
and dword [ebp - 0x32c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00413498
mov eax, dword [ebp - 0x32c]
push edx
mov ecx, ebp
push eax
lea edx, [0x412678]
call fcn.00414018
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00414093
add esp, 0x36c
cmp ebp, esp
call fcn.00414070
mov esp, ebp
pop ebp
ret