Function at 0x40c450
Capabilities:
Check os version
Enumerate processes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42a470
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1588
call fcn.00414570
mov eax, dword [0x4371c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0x114
xor esi, esi
lea eax, [ebp - 0x1360]
push esi
push eax
call fcn.004142a0
add esp, 0xc
mov dword [ebp - 0x1360], 0x114
lea eax, [ebp - 0x1360]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1350], 2
jne 0x40c4cb
cmp dword [ebp - 0x135c], 6
jb 0x40c4cb
lea eax, [esi + 1]
jmp 0x40c4cd
xor eax, eax
test eax, eax
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 0x1000
mov ecx, 0x410
cmovne ecx, edx
push str.IsAlreadyRun___In_n
mov dword [ebp - 0x1590], ecx
call ebx
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004142a0
push 0x22c
lea eax, [ebp - 0x158c]
push 0
push eax
call fcn.004142a0
add esp, 0x18
mov dword [ebp - 0x158c], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1598], eax
lea eax, [ebp - 0x62c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.00413187
lea eax, [ebp - 0xa2c]
push eax
lea eax, [ebp - 0x82c]
push eax
push 0
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00412b95
add esp, 0x28
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x1594], edi
cmp edi, 0xffffffff
je 0x40c66b
lea eax, [ebp - 0x158c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40c66b
lea esp, [esp]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x1568]
push eax
call fcn.00412a27
add esp, 8
test eax, eax
jne 0x40c64b
mov eax, dword [ebp - 0x1584]
cmp dword [ebp - 0x1598], eax
je 0x40c64b
push eax
push 0
push dword [ebp - 0x1590]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x40c64b
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004142a0
add esp, 8
lea edx, [ebp - 0x424]
mov ecx, ebx
call fcn.0040c310
add esp, 4
test eax, eax
je 0x40c644
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00412a27
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x158c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40c665
test esi, esi
je 0x40c5c0
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test edi, edi
je 0x40c67b
cmp edi, 0xffffffff
je 0x40c67b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp - 0x124c]
push str.IsAlreadyRun___Out_:_ret__BOOL____d_n
push eax
call fcn.0040b470
add esp, 0xc
lea eax, [ebp - 0x124c]
push eax
call ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004114dd
mov esp, ebp
pop ebp
ret