Function at 0x401920
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x428131
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
xor ebx, ebx
push esi
push ebx
lea eax, [esp + 0x24]
push 0x1c
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
push str._sTemp_
push edx
mov dword [esp + 0x23c], ebx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
push ebx
push eax
call fcn.0041b500
add esp, 0x14
lea ecx, [esp + 0x10]
call sub.MFC42u.DLL_CString::CString_3
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push str._SZ___s
push edx
mov byte [esp + 0x23c], 1
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x18], ebx
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [esp + 0x14]
push 0x434390
push eax
lea ecx, [esp + 0x10]
push 0x434384
push ecx
mov byte [esp + 0x240], 2
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
call fcn.0041bc90
test eax, eax
je 0x4019ee
mov edx, dword [esp + 8]
push edx
push 0x84
jmp 0x4019f8
mov eax, dword [esp + 8]
push eax
push 0x82
push str.SYSFILE
call fcn.0041c5e0
add esp, 0xc
lea ecx, [esp + 0x18]
push str.mdf16
push ecx
call fcn.0041c910
add esp, 8
cmp eax, ebx
je 0x401a46
push ebx
lea edx, [esp + 0x10]
push ebx
push edx
push ebx
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0xc]
push ebx
push ebx
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x401c3a
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push str._SZ__MDF16_:__s
push eax
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
cmp eax, ebx
jne 0x401af8
mov ecx, dword [esp + 8]
push ecx
push str.mdf16
push str.mdf16
call fcn.0041c6b0
add esp, 0xc
cmp eax, ebx
je 0x401ab5
push ebx
lea edx, [esp + 0x10]
push ebx
push edx
push ebx
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0xc]
push ebx
push ebx
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x401c3a
push 0x3e8
call esi
push str.mdf16
call fcn.0041c860
add esp, 4
cmp eax, ebx
je 0x401af8
push ebx
lea edx, [esp + 0x10]
push ebx
push edx
push ebx
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, dword [esp + 0xc]
push ebx
push ebx
push eax
call sub.MFC42u.DLL_AfxMessageBox
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x401c3a
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push str._SZ__MDF16_:__s__Install__Start_OK
push eax
call sub.MFC42u.DLL_CString::Format
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea edx, [esp + 8]
push 0x4342ec
push ecx
push 0x434384
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
call fcn.0041bc90
test eax, eax
je 0x401b40
mov eax, dword [esp + 8]
push eax
push 0x85
jmp 0x401b4a
mov ecx, dword [esp + 8]
push ecx
push 0x83
push str.SYSFILE
call fcn.0041c5e0
add esp, 0xc
lea edx, [esp + 0x18]
push str.mvd23
push edx
call fcn.0041c910
add esp, 8
cmp eax, ebx
je 0x401b97
push ebx
lea ecx, [esp + 0x10]
push ebx
push ecx
push ebx
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0xc]
push ebx
push ebx
push edx
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [esp + 0xc]
jmp 0x401c39
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push str._SZ__MVD23_:__s
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp eax, ebx
jne 0x401c8e
mov eax, dword [esp + 8]
push eax
push str.mvd23
push str.mvd23
call fcn.0041c6b0
add esp, 0xc
cmp eax, ebx
je 0x401bfc
push ebx
lea ecx, [esp + 0x10]
push ebx
push ecx
push ebx
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0xc]
push ebx
push ebx
push edx
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [esp + 0xc]
jmp 0x401c39
push 0x3e8
call esi
push str.mvd23
call fcn.0041c860
add esp, 4
cmp eax, ebx
je 0x401c8e
push ebx
lea ecx, [esp + 0x20]
push ebx
push ecx
push ebx
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push edx
call sub.MFC42u.DLL_AfxMessageBox
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 8]
mov byte [esp + 0x230], 1
call sub.MFC42u.DLL_CString::CString
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
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
add esp, 0x22c
ret
mov ecx, dword [esp + 8]
lea edx, [esp + 0x10]
push ecx
push str._SZ__MVD23MDF16_:__s__Install__Start_OK
push edx
call sub.MFC42u.DLL_CString::Format
mov eax, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 8]
push str.AccaData.dat
push eax
push 0x434384
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x18]
push edx
push 0x81
push str.DATAFILE
call fcn.0041c5e0
mov eax, dword [esp + 0x24]
add esp, 0x1c
lea ecx, [esp + 0x10]
push eax
push str._SZ___s
push ecx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x230], 1
call sub.MFC42u.DLL_CString::CString
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
mov ecx, dword [esp + 0x228]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x22c
ret