Function at 0x409350
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40c54f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor ebx, ebx
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], bx
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x4c]
mov dword [esp + 0x25c], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x24]
call sub.MFC42u.DLL_CString::CString_1
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x48]
lea edx, [esp + 0x48]
push 0x104
push edx
rep stosd dword es:[edi], eax
mov byte [esp + 0x260], 2
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x28]
push eax
call sub.MFC42u.DLL_CString::CString_1
push 0x5c
lea ecx, [esp + 0x264]
mov byte [esp + 0x25c], 3
call sub.MFC42u.DLL_CString::ReverseFind
cmp eax, ebx
jle 0x409825
mov ecx, dword [esp + 0x260]
lea edx, [esp + 0x24]
mov ecx, dword [ecx - 8]
sub ecx, eax
dec ecx
push ecx
push edx
lea ecx, [esp + 0x268]
call sub.MFC42u.DLL_CString::Right
lea eax, [esp + 0x20]
push str.Setupmsback1Special.ini
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x264], 4
call sub.MFC42u.DLL_operator
lea ecx, [esp + 0x34]
mov byte [esp + 0x258], 5
call fcn.004073c0
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x34]
push edx
mov byte [esp + 0x25c], 6
call fcn.004074d0
lea ecx, [esp + 0x1c]
call fcn.00409f2c
lea ecx, [esp + 0x14]
mov byte [esp + 0x258], 7
call fcn.00409f2c
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x4156f0
lea ecx, [esp + 0x40]
mov byte [esp + 0x264], 8
call fcn.00407440
mov edx, dword [esp + 0x1c]
cmp dword [edx - 8], ebx
jle 0x4097d0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 9
call fcn.00409f2c
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 0xa
call sub.MFC42u.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::TrimRight
push ebx
push 0x4156ec
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Find
mov ecx, dword [esp + 0x10]
mov esi, eax
cmp esi, ebx
jle 0x4097a0
mov eax, dword [ecx - 8]
lea edx, [esp + 0x3c]
sub eax, esi
lea ecx, [esp + 0x10]
dec eax
push eax
push edx
call sub.MFC42u.DLL_CString::Right
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x25c], 0xb
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x258], 0xa
call sub.MFC42u.DLL_CString::CString
lea eax, [esp + 0x3c]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42u.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x25c], 0xc
call sub.MFC42u.DLL_CString::operator_2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x258], 0xa
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
push str.system32
push ecx
call esi
add esp, 8
cmp eax, ebx
jne 0x409665
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x24]
mov byte [esp + 0x1b], bl
push ebx
push 0x4156e4
call sub.MFC42u.DLL_CString::Find
test eax, eax
jle 0x40961a
call fcn.00402630
test eax, eax
je 0x4096d6
mov byte [esp + 0x1b], 1
call fcn.004092f0
lea ecx, [esp + 0x260]
call sub.MFC42u.DLL_CString::MakeLower
push str.SysWow64
push str.system32
lea ecx, [esp + 0x268]
call sub.MFC42u.DLL_CString::Replace
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x260]
push edx
push eax
push str.CheckSpecialFile____IsX64
call fcn.00401770
add esp, 0xc
push 1
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x26c]
mov ecx, esp
mov dword [esp + 0x50], esp
push eax
mov byte [esp + 0x268], 0xd
call sub.MFC42u.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x264], 0xa
call fcn.00409970
cmp byte [esp + 0x1b], bl
je 0x4096d6
call fcn.00409320
jmp 0x4096d6
mov ecx, dword [esp + 0x10]
push str.windows
push ecx
call esi
add esp, 8
cmp eax, ebx
jne 0x4097ae
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push eax
lea ecx, [esp + 0x1c]
push str._s_s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea edx, [esp + 0x14]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push edx
call sub.MFC42u.DLL_CString::CString_2
push ecx
lea eax, [esp + 0x26c]
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov byte [esp + 0x268], 0xe
call sub.MFC42u.DLL_CString::CString_2
mov ecx, ebp
mov byte [esp + 0x264], 0xa
call fcn.00409970
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x258], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x258], 5
call fcn.00407400
lea ecx, [esp + 0x30]
mov byte [esp + 0x258], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x258], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x258], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x260]
mov byte [esp + 0x258], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x264]
mov dword [esp + 0x258], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov al, 1
jmp 0x409873
push ecx
push str.CheckSpecialFile____szFirstName:__s_
call fcn.00401770
add esp, 8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x258], 9
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 8
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x258], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x258], 6
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x258], 5
call fcn.00407400
lea ecx, [esp + 0x30]
mov byte [esp + 0x258], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x258], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x258], 2
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x258], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x260]
mov byte [esp + 0x258], bl
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x264]
mov dword [esp + 0x258], 0xffffffff
call sub.MFC42u.DLL_CString::CString
xor al, al
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24c
ret 8