Function at 0x424960
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a4546
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 0x4249cb
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 0x424a42
mov eax, dword [esi]
push str.uihost
push eax
call edi
add esp, 8
test eax, eax
jne 0x4249f3
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.logonui.exe
jmp 0x4249bb
mov eax, dword [esi]
push str.userinit
push eax
call edi
add esp, 8
test eax, eax
jne 0x424a1b
lea ecx, [esp + 0x1c]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.userinit.exe_
jmp 0x4249bb
mov eax, dword [esi]
push 0x4cb6f8
push eax
call edi
add esp, 8
test eax, eax
je 0x424a3d
mov ecx, dword [esi]
push str.taskman
push ecx
call edi
add esp, 8
test eax, eax
jne 0x424a42
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 0x424a69
cmp ebx, 1
jne 0x424bdb
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.0042c6d0
add esp, 0x10
cmp al, 1
jne 0x424bdb
test ebx, ebx
jne 0x424b9e
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.0042c940
add esp, 0x14
cmp al, 1
jne 0x424bd0
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_5
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x10]
push ecx
push 0x4c61d8
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 fcn.00403f00
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_5
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 fcn.00403f00
push ebx
push edi
mov ecx, esi
call fcn.00404310
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call dword [eax + 0x118]
test eax, eax
jne 0x424b77
push 3
push edi
mov ecx, esi
call fcn.00404310
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 0x424bd0
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.0042c8c0
add esp, 8
cmp al, 1
jne 0x424bd0
mov ecx, dword [esp + 0x23c]
push ecx
lea ecx, [ebp + 0xa0]
call fcn.00403590
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