Function at 0x40ff5b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4139bf
mov eax, dword fs:[0]
push eax
sub esp, 0x258
push esi
push edi
lea edi, [ebp - 0x264]
mov ecx, 0x96
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x43b004]
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.00411016
and dword [ebp - 4], 0
push 0x208
push 0
lea eax, [ebp - 0x230]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
and dword [ebp - 0x23c], 0
push 0x105
push 0
lea eax, [ebp - 0x230]
push eax
push 0x433238
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x20]
call fcn.004114ed
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00410abf
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jl 0x410013
cmp dword [ebp - 0x23c], 0
jne 0x410086
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.004114ed
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00410abf
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jl 0x410063
cmp dword [ebp - 0x23c], 0
jne 0x410086
mov esi, esp
push str.explorer.exe
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
mov esi, esp
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
cmp esi, esp
call fcn.00411bb8
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.00411bb8
cmp esi, eax
jne 0x41013a
mov esi, esp
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x410106
mov dword [ebp - 0x250], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411040
mov eax, dword [ebp - 0x250]
jmp 0x41027a
push 0
lea eax, [ebp - 0x230]
push eax
push str.GetShellProcName::_Failed_to_copy_shell_full_path_to_return_var
call fcn.00410e94
add esp, 0xc
and dword [ebp - 0x254], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411040
mov eax, dword [ebp - 0x254]
jmp 0x41027a
mov esi, esp
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.00411bb8
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x41020e
cmp dword [ebp - 0x24c], 0x104
ja 0x41020e
mov esi, esp
push 0x433414
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x4101db
mov esi, esp
lea eax, [ebp - 0x230]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x4101db
mov dword [ebp - 0x258], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411040
mov eax, dword [ebp - 0x258]
jmp 0x41027a
push 0
lea eax, [ebp - 0x230]
push eax
push 0x433418
call fcn.00410e94
add esp, 0xc
and dword [ebp - 0x25c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411040
mov eax, dword [ebp - 0x25c]
jmp 0x41027a
mov esi, esp
push str.C:Windowsexplorer.exe
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
cmp esi, esp
call fcn.00411bb8
test eax, eax
jne 0x41024d
mov dword [ebp - 0x260], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411040
mov eax, dword [ebp - 0x260]
jmp 0x41027a
push 0
push 0x4334c8
push str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.00410e94
add esp, 0xc
and dword [ebp - 0x264], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411040
mov eax, dword [ebp - 0x264]
push edx
mov ecx, ebp
push eax
lea edx, [0x4102b3]
call fcn.00411b62
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00411bf0
add esp, 0x264
cmp ebp, esp
call fcn.00411bb8
leave
ret