Function at 0x416710
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41eb91
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
push esi
push edi
mov dword [esp + 0x134], 0
call sub.MFC42.DLL_AfxGetModuleState
mov esi, dword [eax + 4]
push 0x429044
lea ecx, [esp + 0x20]
lea eax, [esi + 0xc8]
push eax
push ecx
call sub.MFC42.DLL_operator
lea edx, [esi + 0xd0]
mov byte [esp + 0x134], 1
push edx
push eax
lea eax, [esp + 0x30]
push eax
call sub.MFC42.DLL_operator_2
push 0x429044
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x140], 2
call sub.MFC42.DLL_operator
add esi, 0xe8
lea edx, [esp + 0x20]
push esi
push eax
push edx
mov byte [esp + 0x140], 3
call sub.MFC42.DLL_operator_2
push str.MyInstallTool.log
push eax
lea eax, [esp + 0x10]
mov byte [esp + 0x13c], 4
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x20]
mov byte [esp + 0x134], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x134], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x134], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 6
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fopen]
push 0x429ee0
push ecx
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4168be
lea edx, [esp + 0x14]
push edx
call fcn.0041b400
add esp, 4
push 0x42a1ac
push eax
lea eax, [esp + 0x20]
mov byte [esp + 0x13c], 0xa
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x10]
push ecx
push eax
push edx
mov byte [esp + 0x140], 0xb
call sub.MFC42.DLL_operator_2
push 0x429a58
push eax
lea eax, [esp + 0x14]
mov byte [esp + 0x13c], 0xc
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0xa
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x134], 6
lea ecx, [esp + 0x14]
jmp 0x41699f
lea ecx, [esp + 0x2c]
push 0x100
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edx, [esp + 0x2c]
lea ecx, [esp + 8]
push edx
call fcn.0041b81e
push str.ptSetup.log
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 8]
push 0x429ee0
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4169ae
lea ecx, [esp + 0xc]
push ecx
call fcn.0041b400
add esp, 4
push 0x42a1ac
lea edx, [esp + 0x14]
push eax
push edx
mov byte [esp + 0x140], 0xd
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x13c]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
mov byte [esp + 0x140], 0xe
call sub.MFC42.DLL_operator_2
push 0x429a58
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x13c], 0xf
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0xd
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x134], 6
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 8]
mov byte [esp + 0x134], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x130
ret