Function at 0x4278a0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a99c6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push ebp
push esi
mov esi, dword [esp + 0x238]
push edi
mov edi, dword [sym.imp.MSVCRT.dll__wcsicmp]
mov eax, dword [esi]
xor ebx, ebx
push str.shell
mov dword [esp + 0x20], ecx
push eax
xor ebp, ebp
mov word [esp + 0x28], bx
call edi
add esp, 8
cmp eax, ebx
jne 0x42790f
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Explorer.exe
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
add esp, 8
jmp 0x427986
mov eax, dword [esi]
push str.uihost
push eax
call edi
add esp, 8
cmp eax, ebx
jne 0x427937
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.logonui.exe
jmp 0x4278ff
mov eax, dword [esi]
push str.userinit
push eax
call edi
add esp, 8
cmp eax, ebx
jne 0x42795f
lea ecx, [esp + 0x20]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.userinit.exe_
jmp 0x4278ff
mov eax, dword [esi]
push 0x4d1554
push eax
call edi
add esp, 8
cmp eax, ebx
je 0x427981
mov ecx, dword [esi]
push str.taskman
push ecx
call edi
add esp, 8
cmp eax, ebx
jne 0x427986
mov ebp, 1
mov edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea edx, [esp + 0x20]
push edx
mov word [esp + 0x22a], bx
call edi
add esp, 4
test eax, eax
ja 0x4279ab
cmp ebp, 1
jne 0x427b1e
mov ecx, dword [esp + 0x238]
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.0042f560
add esp, 0x10
cmp al, 1
jne 0x427b1e
cmp ebp, ebx
jne 0x427add
lea eax, [esp + 0x20]
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 + 0x24]
push edi
push edx
push 1
push eax
call fcn.0042f7d0
add esp, 0x14
cmp al, 1
jne 0x427b13
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push 0x4cb1f8
push edx
mov dword [esp + 0x23c], ebx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x24c]
add esp, 0xc
lea esi, [eax + 0xa0]
push ecx
push 2
push edi
mov ecx, esi
call fcn.00403f00
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_5
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push eax
mov byte [esp + 0x238], 1
call fcn.0040ab80
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
push 3
push edi
mov ecx, esi
call fcn.00403f00
push ebx
push edi
mov ecx, esi
call fcn.00404310
lea edx, [esp + 0x10]
push edx
call fcn.0040b4a0
add esp, 4
test eax, eax
jne 0x427ab7
push 3
push edi
mov ecx, esi
call fcn.00404310
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x230], 0xffffffff
call sub.MFC42u.DLL_CString::CString
jmp 0x427b13
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax - 8]
push eax
call sub.MFC42u.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.0042f750
add esp, 8
cmp al, 1
jne 0x427b13
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x240]
push edx
lea ecx, [eax + 0xa0]
call fcn.00403590
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 0xc