Function at 0x4044c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x407a7c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebp
push esi
push edi
mov eax, dword [esp + 0x188]
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push eax
push 0x40c484
push str.ApplyPatch::Entering
push str.Software_Update_Wizard
mov dword [esp + 0x18c], 1
call ebp
mov al, byte [esp + 0x18c]
test al, al
je 0x4045cf
lea ecx, [esp + 0x184]
lea edx, [esp + 0x18]
push ecx
push str.Please_copy_the_test_patch_to:
push edx
call sub.MFC42.DLL_operator_1
push str.____Then_click_OK.
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x184], 2
push eax
call sub.MFC42.DLL_operator
lea ecx, [esp + 0x18]
mov byte [esp + 0x17c], 4
call fcn.00406f5a
mov ecx, dword [esp + 0x14]
push 1
push str.Testing_Patch_Application
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x4045be
mov edx, dword [esp + 0x188]
push edx
push str.Canceled
push str.ApplyPatch::WaitMessage
push str.Software_Update_Wizard
call ebp
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 1
call fcn.00406f5a
lea ecx, [esp + 0x184]
mov byte [esp + 0x17c], 0
call fcn.00406f5a
mov dword [esp + 0x17c], 0xffffffff
jmp 0x40479e
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 1
call fcn.00406f5a
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x2c]
push 0x2e
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x188]
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
or edi, 0xffffffff
cmp esi, edi
je 0x404783
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
push 4
lea ecx, [esp + 0x14]
push esi
push ecx
lea ecx, [esp + 0x190]
mov byte [esp + 0x188], 5
call sub.MFC42.DLL_CString::Mid
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str..msp
push edx
mov byte [esp + 0x184], 6
call esi
add esp, 8
test eax, eax
jne 0x4046b0
lea eax, [esp + 0x70]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 0x70]
push ecx
lea ecx, [esp + 0x10]
call fcn.0040703e
push str.msiexec.exe__p
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x184]
lea ecx, [esp + 0xc]
push edx
call sub.MFC42.DLL_CString::operator_1
push str.__qb
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push str._REINSTALLALL_REINSTALLMODEomus
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
jmp 0x4046d4
mov eax, dword [esp + 0x10]
push str..exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x4046d4
lea ecx, [esp + 0x184]
push ecx
lea ecx, [esp + 0x10]
call fcn.00406fe4
mov edx, dword [esp + 0x188]
mov eax, dword [esp + 0xc]
push edx
push eax
push str.ApplyPatch::CmdLine
push str.Software_Update_Wizard
call ebp
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x104
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x404761
mov eax, dword [esp + 0x1c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, dword [esp + 0x188]
push eax
push 0x40c484
push str.ApplyPatch::Returning
push str.Software_Update_Wizard
call ebp
lea ecx, [esp + 0x10]
mov byte [esp + 0x17c], 5
call fcn.00406f5a
lea ecx, [esp + 0xc]
mov byte [esp + 0x17c], 1
call fcn.00406f5a
lea ecx, [esp + 0x184]
mov byte [esp + 0x17c], 0
call fcn.00406f5a
mov dword [esp + 0x17c], edi
lea ecx, [esp + 0x188]
call fcn.00406f5a
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x174
ret