Function at 0x4226a0
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x51f028
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x131]
mov byte [esp + 0x130], bl
mov ebp, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x130]
push 0x104
push eax
call ebp
test eax, eax
jbe 0x422749
lea ecx, [esp + 0x130]
push str.MPSvcC.exe
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x130]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x422749
push ebx
push ebx
lea eax, [esp + 0x138]
push str._removejh
push eax
call fcn.00420fa0
mov esi, eax
add esp, 0x10
cmp esi, ebx
je 0x422749
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [esp + 0x2b]
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x18], cl
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push str.XNet2.exe
lea ecx, [esp + 0x14]
mov dword [esp + 0x344], ebx
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push 1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 1
call fcn.004198b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
push 0x562638
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 2
call fcn.004198b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
push str.gn.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push eax
push 1
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 3
call fcn.004198b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
push str.looklog.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
push 1
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 4
call fcn.004198b0
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
push str.lookpic.exe
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x10]
push ecx
push 1
push edx
lea ecx, [esp + 0x24]
mov byte [esp + 0x34c], 5
call fcn.004198b0
mov byte [esp + 0x340], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x18]
push eax
call fcn.004222a0
mov ecx, esp
mov dword [esp + 0x18], esp
push str.MsPowerSvc
call sub.MFC42.DLL_CString::CString_2
call fcn.00422200
mov ecx, esp
mov dword [esp + 0x18], esp
push str.280D4C48_4FA2_4274_ACEC_1582EFA5DA7D
call sub.MFC42.DLL_CString::CString_2
call fcn.00422200
mov ecx, esp
mov dword [esp + 0x18], esp
push str.MgTaki
call sub.MFC42.DLL_CString::CString_2
call fcn.00422200
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x239]
mov byte [esp + 0x238], bl
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x234]
stosw word es:[edi], ax
push 0x104
push ecx
stosb byte es:[edi], al
call ebp
test eax, eax
jbe 0x422a36
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea edx, [esp + 0x234]
push str.regedit.exe
push edx
call esi
lea eax, [esp + 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x422a36
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d]
mov byte [esp + 0x2c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x2c]
push 0x104
push ecx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jbe 0x422a36
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x14]
mov byte [esp + 0x340], 6
push edx
call fcn.00421830
and eax, 0xffff
add esp, 4
add eax, 0xfffffffc
cmp eax, 7
ja case.0x42298e.5
jmp dword [eax*4 + 0x422a88]
push str.Win98Spi.reg
jmp 0x4229b9
lea ecx, [esp + 0x2c]
push str.win2kspi.reg
push ecx
jmp 0x4229be
lea edx, [esp + 0x2c]
push str.winxpSpi.reg
push edx
jmp 0x4229be
push str.winvista.reg
lea eax, [esp + 0x30]
push eax
call esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x10]
push ecx
push str._s__s
push edx
mov byte [esp + 0x34c], 7
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x1c]
push ebx
push ebx
lea ecx, [esp + 0x248]
push eax
push ecx
call fcn.00420fa0
mov esi, eax
add esp, 0x1c
cmp esi, ebx
je 0x422a15
push 0x4e20
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], bl
call sub.MFC42.DLL_CString::CString
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
cmp esi, edi
mov dword [esp + 0x340], 0xffffffff
je 0x422a5f
mov ecx, esi
call sub.MFC42.DLL_CString::CString
add esi, 4
cmp esi, edi
jne 0x422a4d
mov esi, dword [esp + 0x1c]
push esi
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x33c]
add esp, 4
mov eax, 1
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret