Function at 0x4186e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x480356
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 0x41874b
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 0x4187b1
mov eax, dword [esi]
push str.uihost
push eax
call ebp
add esp, 8
test eax, eax
jne 0x418773
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.logonui.exe
jmp 0x41873b
mov eax, dword [esi]
push str.userinit
push eax
call ebp
add esp, 8
test eax, eax
jne 0x41879b
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.userinit.exe_
jmp 0x41873b
mov eax, dword [esi]
push 0x4a1d50
push eax
call ebp
add esp, 8
test eax, eax
jne 0x4187b1
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 0x4187d8
cmp ebx, 1
jne 0x418956
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.0041eb90
add esp, 0x10
cmp al, 1
jne 0x418956
test ebx, ebx
jne 0x418919
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.0041ee00
add esp, 0x14
cmp al, 1
jne 0x41894b
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_4
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push 0x49e1d8
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 0x4188f2
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 0x41894b
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.0041ed80
add esp, 8
cmp al, 1
jne 0x41894b
mov ecx, dword [esp + 0x23c]
push ecx
lea ecx, [edi + 0xa0]
call fcn.0040c010
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