Function at 0x412254
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41575a
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.0041338d
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
lea eax, [ebp - 0x230]
push eax
push str.Shell
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x20]
call fcn.004138d6
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00412db9
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jl 0x41230f
cmp dword [ebp - 0x23c], 0
jne 0x41237b
lea eax, [ebp - 0x230]
push eax
push str.Shell
push str.HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x20]
call fcn.004138d6
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00412db9
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jl 0x412358
cmp dword [ebp - 0x23c], 0
jne 0x41237b
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.00413f7e
mov esi, esp
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.MSVCR120.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00413f7e
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.00413f7e
cmp esi, eax
jne 0x41242f
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.00413f7e
test eax, eax
jne 0x4123fb
mov dword [ebp - 0x368], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004133cf
mov eax, dword [ebp - 0x368]
jmp 0x41256f
push 0
lea eax, [ebp - 0x230]
push eax
push str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
call fcn.004131d9
add esp, 0xc
and dword [ebp - 0x35c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004133cf
mov eax, dword [ebp - 0x35c]
jmp 0x41256f
mov esi, esp
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.00413f7e
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
je 0x412503
cmp dword [ebp - 0x260], 0x104
ja 0x412503
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.00413f7e
test eax, eax
jne 0x4124d0
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.00413f7e
test eax, eax
jne 0x4124d0
mov dword [ebp - 0x350], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004133cf
mov eax, dword [ebp - 0x350]
jmp 0x41256f
push 0
lea eax, [ebp - 0x230]
push eax
push str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
call fcn.004131d9
add esp, 0xc
and dword [ebp - 0x344], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004133cf
mov eax, dword [ebp - 0x344]
jmp 0x41256f
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.00413f7e
test eax, eax
jne 0x412542
mov dword [ebp - 0x338], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004133cf
mov eax, dword [ebp - 0x338]
jmp 0x41256f
push 0
push 0x416c14
push str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.004131d9
add esp, 0xc
and dword [ebp - 0x32c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004133cf
mov eax, dword [ebp - 0x32c]
push edx
mov ecx, ebp
push eax
lea edx, [0x4125ac]
call fcn.00413f26
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.00413fa1
add esp, 0x36c
cmp ebp, esp
call fcn.00413f7e
mov esp, ebp
pop ebp
ret