Function at 0x4059e0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407e70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x30]
push edi
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x28], esi
call sub.MFC42.DLL_CPropertySheetEx::CPropertySheetEx
xor ebx, ebx
lea ecx, [esi + 0xc0]
mov dword [esp + 0x1c], ebx
call fcn.00405190
lea ecx, [esi + 0x26c]
mov byte [esp + 0x1c], 1
call fcn.00401a60
lea ecx, [esi + 0x384]
mov byte [esp + 0x1c], 2
call fcn.00401080
lea ecx, [esi + 0x560]
mov byte [esp + 0x1c], 3
call fcn.00404990
lea ecx, [esi + 0x778]
mov byte [esp + 0x1c], 4
call fcn.00402590
lea ecx, [esi + 0x8e8]
mov byte [esp + 0x1c], 5
call fcn.00401ff0
mov eax, 6
lea ecx, [esi + 0xa04]
mov byte [esp + 0x1c], al
mov dword [esi + 0xa00], eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa08]
mov byte [esp + 0x1c], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa0c]
mov byte [esp + 0x1c], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa10]
mov byte [esp + 0x1c], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xa14]
mov byte [esp + 0x1c], 0xa
call sub.MFC42.DLL_CString::CString
lea edi, [esi + 0xa18]
mov byte [esp + 0x1c], 0xb
mov ecx, edi
call sub.MFC42.DLL_CString::CString
lea ebp, [esi + 0xa20]
mov byte [esp + 0x1c], 0xc
mov dword [esp + 0x38], ebp
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x1c], 0xd
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x18]
mov byte [esp + 0x1c], 0xe
call sub.MFC42.DLL_CString::CString
push 0xa
lea ecx, [esi + 0xa3c]
mov byte [esp + 0x20], 0xf
call fcn.00406fea
lea ebp, [esi + 0xa5c]
mov byte [esp + 0x1c], 0x10
mov ecx, ebp
call sub.MFC42.DLL_CWnd::CWnd
mov dword [ebp], 0x4095a8
lea eax, [esi + 0xc0]
mov ecx, esi
push eax
mov byte [esp + 0x20], 0x11
mov dword [esi], 0x409f70
call sub.MFC42.DLL_CPropertySheetEx::AddPage
lea eax, [esi + 0x26c]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheetEx::AddPage
lea eax, [esi + 0x384]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheetEx::AddPage
lea eax, [esi + 0x560]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheetEx::AddPage
lea eax, [esi + 0x8e8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheetEx::AddPage
lea eax, [esi + 0x778]
mov ecx, esi
push eax
call sub.MFC42.DLL_CPropertySheetEx::AddPage
call fcn.00403720
mov eax, dword [esi + 0x90]
push 0x40ca3c
or ah, 0x28
lea ecx, [esi + 0xa10]
mov dword [esi + 0x90], eax
mov dword [esi + 0xa28], ebx
mov dword [esi + 0xa2c], ebx
mov dword [esi + 0xa20], ebx
mov dword [esi + 0xa24], ebx
mov dword [esi + 0xa1c], ebx
call fcn.0040703e
push 0x104
mov ecx, edi
mov byte [esi + 0xa58], bl
mov byte [esi + 0xa59], bl
mov byte [esi + 0xa5a], bl
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [edi]
mov ecx, dword [eax - 8]
cmp byte [ecx + eax - 1], 0x5c
je 0x405c1a
push 0x40c43c
mov ecx, edi
call sub.MFC42.DLL_CString::operator
push str.hpbsuwiz.log
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov edx, dword [edi]
push edx
push ebx
push ebx
push str.Software_Update_Wizard
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18