Function at 0x40ff9b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413daf
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 [0x43f004]
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.00411152
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 0x43603c
push str.HKEY_CURRENT_USERSOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea ecx, [ebp - 0x20]
call fcn.0041162d
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00410bfb
mov dword [ebp - 0x244], eax
cmp dword [ebp - 0x244], 0
jl 0x410053
cmp dword [ebp - 0x23c], 0
jne 0x4100c6
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.0041162d
lea eax, [ebp - 0x23c]
push eax
push 0x104
lea eax, [ebp - 0x230]
push eax
call fcn.00410bfb
mov dword [ebp - 0x248], eax
cmp dword [ebp - 0x248], 0
jl 0x4100a3
cmp dword [ebp - 0x23c], 0
jne 0x4100c6
mov esi, esp
push 0x4360e4
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.00411cf8
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.00411cf8
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.00411cf8
cmp esi, eax
jne 0x41017a
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.00411cf8
test eax, eax
jne 0x410146
mov dword [ebp - 0x250], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041117c
mov eax, dword [ebp - 0x250]
jmp 0x4102ba
push 0
lea eax, [ebp - 0x230]
push eax
push 0x436198
call fcn.00410fd0
add esp, 0xc
and dword [ebp - 0x254], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041117c
mov eax, dword [ebp - 0x254]
jmp 0x4102ba
mov esi, esp
push 0x104
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp esi, esp
call fcn.00411cf8
mov dword [ebp - 0x24c], eax
cmp dword [ebp - 0x24c], 0
je 0x41024e
cmp dword [ebp - 0x24c], 0x104
ja 0x41024e
mov esi, esp
push 0x436194
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.00411cf8
test eax, eax
jne 0x41021b
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.00411cf8
test eax, eax
jne 0x41021b
mov dword [ebp - 0x258], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041117c
mov eax, dword [ebp - 0x258]
jmp 0x4102ba
push 0
lea eax, [ebp - 0x230]
push eax
push str.GetShellProcName::_Failed_to_concat_Windows_Dir_to_shell_name_:
call fcn.00410fd0
add esp, 0xc
and dword [ebp - 0x25c], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041117c
mov eax, dword [ebp - 0x25c]
jmp 0x4102ba
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.00411cf8
test eax, eax
jne 0x41028d
mov dword [ebp - 0x260], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041117c
mov eax, dword [ebp - 0x260]
jmp 0x4102ba
push 0
push 0x43624c
push str.GetShellProcName::_Failed_to_copy_hard_coded_shell_value_:
call fcn.00410fd0
add esp, 0xc
and dword [ebp - 0x264], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.0041117c
mov eax, dword [ebp - 0x264]
push edx
mov ecx, ebp
push eax
lea edx, [0x4102f3]
call fcn.00411ca2
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.00411d30
add esp, 0x264
cmp ebp, esp
call fcn.00411cf8
leave
ret