Function at 0x418490
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x47e0d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x214
push ebx
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll__wcsicmp]
push esi
mov esi, dword [esp + 0x234]
push edi
xor ebx, ebx
push str.shell
mov eax, dword [esi]
mov edi, ecx
push eax
mov word [esp + 0x24], bx
call ebp
add esp, 8
test eax, eax
jne 0x4184fb
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 0x418561
mov eax, dword [esi]
push str.uihost
push eax
call ebp
add esp, 8
test eax, eax
jne 0x418523
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.logonui.exe
jmp 0x4184eb
mov eax, dword [esi]
push str.userinit
push eax
call ebp
add esp, 8
test eax, eax
jne 0x41854b
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.userinit.exe_
jmp 0x4184eb
mov eax, dword [esi]
push 0x49eca0
push eax
call ebp
add esp, 8
test eax, eax
jne 0x418561
mov ebx, 1
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [esp + 0x1c]
push ecx
mov word [esp + 0x226], 0
call ebp
add esp, 4
test eax, eax
ja 0x418588
cmp ebx, 1
jne 0x418706
mov ecx, dword [esp + 0x234]
mov edx, dword [ecx]
mov eax, dword [edx - 8]
lea edx, [esp + 0x18]
push edx
push 0x2001b
push eax
push eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call fcn.0041e830
add esp, 0x10
cmp al, 1
jne 0x418706
test ebx, ebx
jne 0x4186c9
lea eax, [esp + 0x1c]
push eax
call ebp
mov ecx, dword [esi]
add esp, 4
lea ebp, [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 ebp
push edx
push 1
push eax
call fcn.0041eaa0
add esp, 0x14
cmp al, 1
jne 0x4186fb
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push 0x49b1d8
push edx
mov dword [esp + 0x238], ebx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x248]
add esp, 0xc
lea esi, [edi + 0xa0]
mov ecx, esi
push eax
push 2
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_4
mov edx, dword [edi]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0x234], 1
call dword [edx + 0xf0]
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push 3
push ebp
call sub.MFC42u.DLL_CListCtrl::SetItemText
push ebx
push ebx
push ebx
push ebx
push ebx
push 4
push ebx
push ebp
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::SetItem
mov eax, dword [edi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call dword [eax + 0x114]
test eax, eax
jne 0x4186a2
push 3
push eax
push eax
push eax
push eax
push 4
push eax
push ebp
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 0x4186fb
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.0041ea20
add esp, 8
cmp al, 1
jne 0x4186fb
mov ecx, dword [esp + 0x23c]
push ecx
lea ecx, [edi + 0xa0]
call fcn.0040bff0
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