Function at 0x4083f0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x453c84
mov eax, dword fs:[0]
push eax
mov eax, 0x1234
mov dword fs:[0], esp
call fcn.00415b80
mov eax, dword [0x464738]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x124c]
push esi
mov esi, dword [esp + 0x1254]
push edi
xor ebx, ebx
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x1244], eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
push 0x208
lea eax, [esp + 0x42c]
push eax
push ebx
mov dword [esp + 0x1258], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x428]
push 0x5c
push ecx
call dword [sym.imp.MSVCR71.dll_wcsrchr]
add esp, 8
push 0x104
lea edx, [esp + 0x224]
push edx
mov word [eax], bx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [esp + 0x630]
push eax
push ebx
push ebx
push 0x2b
push ebx
call edi
lea ecx, [esp + 0x838]
push ecx
push ebx
push ebx
push 0x26
push ebx
call edi
lea edx, [esp + 0xa40]
push edx
push ebx
push ebx
push 0x1a
push ebx
call edi
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR71.dll_wcscpy]
lea edx, [esp + 0x20]
push str._system32Drivers
push edx
call dword [sym.imp.MSVCR71.dll_wcscat]
mov edi, dword [sym.imp.MSVCR71.dll__wcsnicmp]
push 5
push str.win_
push esi
call edi
add esp, 0x1c
test eax, eax
push 5
jne 0x408541
push ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408350
add esp, 0xc
mov byte [esp + 0x124c], 1
push eax
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
lea ecx, [esp + 0x14]
mov byte [esp + 0x124c], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
jmp 0x40869b
push str.drv_
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x40857e
push 5
push ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408350
add esp, 0xc
mov byte [esp + 0x124c], 2
jmp 0x408520
push 4
push str.cf_
push esi
call edi
add esp, 0xc
test eax, eax
push 4
jne 0x4085c3
push ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x634]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408350
add esp, 0xc
mov byte [esp + 0x124c], 3
jmp 0x408520
push str.pf_
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x408606
push 4
push ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x83c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408350
add esp, 0xc
mov byte [esp + 0x124c], 4
jmp 0x408520
push 9
push str.appdata_
push esi
call edi
add esp, 0xc
test eax, eax
jne 0x40864b
push 9
push ebx
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xa44]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408350
add esp, 0xc
mov byte [esp + 0x124c], 5
jmp 0x408520
push 8
push str.exedir_
push esi
call edi
add esp, 0xc
test eax, eax
lea ecx, [esp + 0x10]
jne 0x408690
push 8
push ebx
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x42c]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00408350
add esp, 0xc
mov byte [esp + 0x124c], 6
jmp 0x408520
push 0x45597c
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_COleControl::ReparentControlWindow]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [esp + 0x1244]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1234]
pop ebx
xor ecx, esp
call fcn.00415ae8
add esp, 0x1240
ret