Function at 0x418de0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x481f76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov eax, dword [esi]
xor ebx, ebx
push str.shell
mov ebp, ecx
push eax
mov word [esp + 0x24], bx
call edi
add esp, 8
test eax, eax
jne 0x418e4b
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Explorer.exe
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
jmp 0x418ec2
mov eax, dword [esi]
push str.uihost
push eax
call edi
add esp, 8
test eax, eax
jne 0x418e73
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.logonui.exe
jmp 0x418e3b
mov eax, dword [esi]
push str.userinit
push eax
call edi
add esp, 8
test eax, eax
jne 0x418e9b
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.userinit.exe_
jmp 0x418e3b
mov eax, dword [esi]
push 0x4a3d10
push eax
call edi
add esp, 8
test eax, eax
je 0x418ebd
mov ecx, dword [esi]
push str.taskman
push ecx
call edi
add esp, 8
test eax, eax
jne 0x418ec2
mov ebx, 1
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x1c]
push edx
mov word [esp + 0x226], 0
call edi
add esp, 4
test eax, eax
ja 0x418ee9
cmp ebx, 1
jne 0x419069
mov ecx, dword [esp + 0x234]
lea edx, [esp + 0x18]
push edx
push 0x2001b
mov eax, dword [ecx]
mov eax, dword [eax - 8]
push eax
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call fcn.0041f4e0
add esp, 0x10
cmp al, 1
jne 0x419069
test ebx, ebx
jne 0x41902c
lea eax, [esp + 0x1c]
push eax
call edi
mov ecx, dword [esi]
add esp, 4
lea edi, [eax + eax + 2]
mov eax, dword [ecx - 8]
mov ecx, esi
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edi
push edx
push 1
push eax
call fcn.0041f750
add esp, 0x14
cmp al, 1
jne 0x41905e
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push 0x4a01d8
push edx
mov dword [esp + 0x238], ebx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x248]
add esp, 0xc
lea esi, [ebp + 0xa0]
mov ecx, esi
push eax
push 2
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [ebp]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, ebp
mov byte [esp + 0x234], 1
call dword [edx + 0xf0]
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push 3
push edi
call sub.MFC42u.DLL_CListCtrl::SetItemText
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push edi
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItem
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call dword [eax + 0x114]
test eax, eax
jne 0x419005
push 3
push eax
push eax
push eax
push eax
push 4
push eax
push edi
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItem
lea ecx, [esp + 0x14]
mov byte [esp + 0x22c], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x22c], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x41905e
mov edx, dword [esi]
mov ecx, esi
mov eax, dword [edx - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.0041f6d0
add esp, 8
cmp al, 1
jne 0x41905e
mov ecx, dword [esp + 0x23c]
push ecx
lea ecx, [ebp + 0xa0]
call fcn.0040c130
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x220
ret 0xc