Function at 0x405450
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40847a
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, dword [esp + 0x124]
push edi
push str._windows_
mov ecx, esi
xor edi, edi
call sub.MFC42.DLL_CString::Find
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or ebx, 0xffffffff
test eax, eax
jl 0x4054ea
lea eax, [esp + 0x18]
push 0x100
push eax
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x40c154
push edx
mov dword [esp + 0x12c], edi
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
push str._windows_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._system_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405557
lea ecx, [esp + 0x18]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
mov edi, 1
push 0x40c154
push eax
mov dword [esp + 0x12c], edi
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push str._system_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._deluxe_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x4055b8
lea edx, [esp + 0x10]
push 0x40d4ac
push edx
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 2
call fcn.004078ea
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._deluxe_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._working_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405614
lea ecx, [esp + 0x10]
push ecx
call fcn.00406070
add esp, 4
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 3
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push str._working_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._Images_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405670
lea eax, [esp + 0x10]
push eax
call fcn.00406100
add esp, 4
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 4
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push str._Images_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._Sound_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x4056cc
lea edx, [esp + 0x10]
push edx
call fcn.00406190
add esp, 4
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 5
call fcn.004078ea
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._Sound_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._Styles_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x40572d
lea ecx, [esp + 0x10]
push str.Styles
push ecx
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 6
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push str._Styles_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._IniFiles_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x40578e
lea eax, [esp + 0x10]
push str.IniFiles
push eax
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 7
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push str._IniFiles_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40c850
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x4057ea
lea edx, [esp + 0x10]
push edx
call fcn.00406070
add esp, 4
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 8
call fcn.004078ea
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push 0x40c850
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40c84c
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405846
lea ecx, [esp + 0x10]
push ecx
call fcn.00406100
add esp, 4
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 9
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0x40c84c
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40c848
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x4058a2
lea eax, [esp + 0x10]
push eax
call fcn.00406190
add esp, 4
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xa
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push 0x40c848
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40c844
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x40590f
lea edx, [esp + 0x18]
push 0x100
push edx
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0x40c154
push ecx
mov dword [esp + 0x12c], 0xb
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push 0x40c844
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40c840
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405980
lea eax, [esp + 0x18]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push 0x40c154
push edx
mov dword [esp + 0x12c], 0xc
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
push 0x40c840
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40c83c
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x4059e1
lea ecx, [esp + 0x10]
push str.Server
push ecx
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xd
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push 0x40c83c
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40c838
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405a42
lea eax, [esp + 0x10]
push str.Styles
push eax
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xe
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push 0x40c838
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._20_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405aa3
lea edx, [esp + 0x10]
push 0x40d4ac
push edx
call fcn.00406310
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0xf
call fcn.004078ea
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._20_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._21_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405b04
lea ecx, [esp + 0x10]
push 0x40c820
push ecx
call fcn.00406310
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x10
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push str._21_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._23_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405b65
lea eax, [esp + 0x10]
push str.PLAYNC
push eax
call fcn.00406310
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x11
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push str._23_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._24_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405bc6
lea edx, [esp + 0x10]
push str.icon
push edx
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x12
call fcn.004078ea
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._24_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._25_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405c27
lea ecx, [esp + 0x10]
push 0x40c7f0
push ecx
call fcn.00406310
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x13
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push str._25_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._26_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405c88
lea eax, [esp + 0x10]
push 0x40c7dc
push eax
call fcn.00406310
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x14
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push str._26_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._27_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405ce9
lea edx, [esp + 0x10]
push 0x40c7c8
push edx
call fcn.00406310
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x15
call fcn.004078ea
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._27_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._28_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405d4a
lea ecx, [esp + 0x10]
push str.FPSCD
push ecx
call fcn.00406310
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x16
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push str._28_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._29_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405db9
lea eax, [esp + 0x10]
push str.icon
push eax
call fcn.00405130
add esp, 8
push 0x40c7a0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x17
call fcn.004078ea
push 0x40bbd0
lea ecx, [esp + 0x14]
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push str._29_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._30_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405e28
lea edx, [esp + 0x10]
push str.icon
push edx
call fcn.00405130
add esp, 8
push 0x40c788
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x18
call fcn.004078ea
push 0x40bbd0
lea ecx, [esp + 0x14]
call fcn.004078ea
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push str._30_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._31_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405e97
lea ecx, [esp + 0x10]
push str.icon
push ecx
call fcn.00405130
add esp, 8
push 0x40c774
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x19
call fcn.004078ea
push 0x40bbd0
lea ecx, [esp + 0x14]
call fcn.004078ea
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push str._31_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._32_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405f06
lea eax, [esp + 0x10]
push str.icon
push eax
call fcn.00405130
add esp, 8
push str.SCFile
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x1a
call fcn.004078ea
push 0x40bbd0
lea ecx, [esp + 0x14]
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push str._32_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._33_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405f77
lea edx, [esp + 0x18]
push 0x100
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push str._soobeinfo_backgrounds_
push ecx
mov dword [esp + 0x12c], 0x1b
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push str._33_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._svr_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x405fd8
lea eax, [esp + 0x10]
push str.Server
push eax
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x14]
mov dword [esp + 0x124], 0x1c
call fcn.004078ea
mov ecx, dword [esp + 0x10]
push ecx
push str._svr_
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push str._man_
mov ecx, esi
call sub.MFC42.DLL_CString::Find
test eax, eax
jl 0x406039
lea edx, [esp + 0x14]
push str.Manager
push edx
call fcn.00405130
add esp, 8
push 0x40bbd0
lea ecx, [esp + 0x18]
mov dword [esp + 0x124], 0x1d
call fcn.004078ea
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
push str._man_
call sub.MFC42.DLL_CString::Replace
lea ecx, [esp + 0x14]
mov edi, 1
mov dword [esp + 0x120], ebx
call sub.MFC42.DLL_CString::CString
push 0x40bbd0
push 0x40bbcc
mov ecx, esi
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret