Function at 0x413310
Capabilities:
Check os version
Delete file
Move file
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x417db5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x438
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x98]
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x9c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov esi, dword [esp + 0xa8]
xor ecx, ecx
cmp esi, 2
push 0x41f314
sete cl
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x18]
call fcn.00415a40
xor edi, edi
mov dword [esp + 0x450], edi
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
push edi
lea edx, [esp + 0x234]
push edi
push edx
mov edx, dword [eax + 0x90]
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__splitpath]
add esp, 0x14
lea eax, [esp + 0x230]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push eax
push ecx
push str._s_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CStdioFile::CStdioFile_1
lea eax, [esp + 0x14]
push str._patch.nfo
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x45c], 1
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push edi
push edi
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x45c], 2
call sub.MFC42.DLL_CStdioFile::Open
lea ecx, [esp + 0x20]
mov esi, eax
mov byte [esp + 0x450], 1
call sub.MFC42.DLL_CString::CString
cmp esi, edi
je 0x41387e
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x10]
mov bl, 3
push edx
lea ecx, [esp + 0x54]
mov byte [esp + 0x454], bl
mov dword [esp + 0x24], edi
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
je 0x4136f4
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push 0x41edc0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov esi, eax
cmp esi, 0xffffffff
je 0x4136af
lea eax, [esp + 0x44]
push esi
push eax
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
mov byte [esp + 0x45c], 4
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x330]
push ecx
push eax
mov byte [esp + 0x458], 5
call sub.MFC42.DLL_CFile::GetStatus
lea ecx, [esp + 0x3c]
mov edi, eax
mov byte [esp + 0x450], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x44]
mov byte [esp + 0x450], bl
call sub.MFC42.DLL_CString::CString
test edi, edi
je 0x4136da
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x4135fc
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x12c]
push 0x103
push edx
push eax
call ebp
push 0
push str.wininit.ini
push 0
lea ecx, [esp + 0x80]
call fcn.0040b240
lea ecx, [esp + 0x30]
push esi
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x458], 6
call sub.MFC42.DLL_CString::Left
push eax
lea edx, [esp + 0x130]
lea eax, [esp + 0x44]
push edx
push eax
mov byte [esp + 0x45c], 7
call sub.MFC42.DLL_operator_2
mov ecx, dword [esp + 0x10]
mov edi, dword [eax]
lea edx, [esp + 0x4c]
mov byte [esp + 0x450], 8
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
sub eax, esi
dec eax
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x130]
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x45c], 9
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push edi
push eax
push str.rename
lea ecx, [esp + 0x80]
mov byte [esp + 0x45c], 0xa
call fcn.0040b5b0
lea ecx, [esp + 0x34]
mov byte [esp + 0x450], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x450], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x450], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x450], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x74]
mov byte [esp + 0x450], bl
call fcn.0040b400
mov dword [esp + 0x20], 1
jmp 0x4136da
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [esp + 0x20]
push eax
call sub.MFC42.DLL_CString::Right
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x28]
push ecx
push edx
mov byte [esp + 0x45c], 0xb
call sub.MFC42.DLL_operator_1
mov edi, dword [eax]
lea eax, [esp + 0x38]
push esi
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x458], 0xc
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x4c]
push ecx
push edx
mov byte [esp + 0x45c], 0xd
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
push 5
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea ecx, [esp + 0x48]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x450], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x450], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x450], bl
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x20], 1
jmp 0x4136da
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x4136da
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00413b30
lea edx, [esp + 0x10]
lea ecx, [esp + 0x50]
push edx
call sub.MFC42.DLL_CStdioFile::ReadString
test eax, eax
jne 0x413456
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CStdioFile::Close
mov eax, dword [esp + 0x20]
test eax, eax
je 0x413847
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_3
mov al, byte [ebp + 0x184]
mov byte [esp + 0x450], 0xe
test al, al
jne 0x41372b
push 0x41ed60
jmp 0x413730
push str.You_must_restart_your_system_to_complete_patch_process._n_nRestart_now__
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x18]
push 0
push 0x34
push eax
call sub.MFC42.DLL_AfxMessageBox
cmp eax, 6
jne 0x4137ed
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4137bb
lea ecx, [esp + 0x1c]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4137fd
lea edx, [esp + 0x68]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 0x1c]
push 0
push 0
lea eax, [esp + 0x6c]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x7c], 1
mov dword [esp + 0x88], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4137fd
lea edx, [esp + 0x14]
push str._patch.nfo
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x4137fd
mov ecx, dword [ebp + 0x20]
push 0
push 0
push 0x12
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x450], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x450], 0
call fcn.00415bc0
lea ecx, [esp + 0x14]
mov dword [esp + 0x450], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4138a8
lea edx, [esp + 0x14]
push str._patch.nfo
lea eax, [esp + 0x28]
push edx
push eax
call sub.MFC42.DLL_operator
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x450], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x450], 0
call fcn.00415bc0
lea ecx, [esp + 0x14]
mov dword [esp + 0x450], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
mov ecx, dword [esp + 0x448]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x444
ret