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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42f3e0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1db4
call fcn.00410da0
mov eax, dword [0x441070]
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 - 0x1b80]
push esi
push eax
call fcn.00412cb0
add esp, 0xc
mov dword [ebp - 0x1b80], 0x114
lea eax, [ebp - 0x1b80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1b70], 2
jne 0x40a7db
cmp dword [ebp - 0x1b7c], 6
jb 0x40a7db
lea eax, [esi + 1]
jmp 0x40a7dd
xor eax, eax
test eax, eax
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov edx, 0x1000
mov ecx, 0x410
cmovne ecx, edx
push str.IsAlreadyRun___In_n
mov dword [ebp - 0x1db8], ecx
call edi
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00412cb0
push 0x22c
lea eax, [ebp - 0x1dac]
push 0
push eax
call fcn.00412cb0
add esp, 0x18
mov dword [ebp - 0x1dac], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x1dc4], eax
lea eax, [ebp - 0x62c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0
lea eax, [ebp - 0x62c]
push 0
push eax
call fcn.0041de38
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0041e6f5
add esp, 0x28
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x1dc0], ebx
cmp ebx, 0xffffffff
je 0x40aa4d
lea eax, [ebp - 0x1dac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40aa4d
nop dword [eax]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x1d88]
push eax
call fcn.0041deec
add esp, 8
test eax, eax
jne 0x40aa33
mov eax, dword [ebp - 0x1da4]
cmp dword [ebp - 0x1dc4], eax
je 0x40aa33
push eax
push 0
push dword [ebp - 0x1db8]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1db4], eax
test eax, eax
je 0x40aa33
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00412cb0
xor eax, eax
mov dword [ebp - 0x1dbc], 0x104
push 0x114
push eax
mov dword [ebp - 0x1db0], eax
lea eax, [ebp - 0x1b80]
push eax
call fcn.00412cb0
add esp, 0x18
mov dword [ebp - 0x1b80], 0x114
lea eax, [ebp - 0x1b80]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x1b70], 2
jne 0x40aac8
cmp dword [ebp - 0x1b7c], 6
jb 0x40aac8
push 0x43d39c
call edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a9d5
push str.QueryFullProcessImageNameW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a9ce
lea ecx, [ebp - 0x1dbc]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
push 0
push dword [ebp - 0x1db4]
call eax
mov dword [ebp - 0x1db0], eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [ebp - 0x1db0]
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x124c]
push str.GetModulePathWrap___Out_:_lpszModPath___s__ret__int____d_n
push eax
call fcn.00409240
add esp, 0x10
lea eax, [ebp - 0x124c]
push eax
call edi
test ebx, ebx
je 0x40aa21
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041deec
add esp, 8
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 0x1db4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x1dc0]
lea eax, [ebp - 0x1dac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40aa4d
test esi, esi
je 0x40a8d0
test ebx, ebx
je 0x40aa5d
cmp ebx, 0xffffffff
je 0x40aa5d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
lea eax, [ebp - 0x1a6c]
push str.IsAlreadyRun___Out_:_ret__BOOL____d_n
push eax
call fcn.00409240
add esp, 0xc
lea eax, [ebp - 0x1a6c]
push eax
call edi
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.00410abf
mov esp, ebp
pop ebp
ret
push str.Window_is_XP_n
call edi
push dword [ebp - 0x1dbc]
lea eax, [ebp - 0x21c]
push eax
push 0
push dword [ebp - 0x1db4]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x40a9db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x124c]
push str.GetModulePathWrap___:_GetModuleFileNameEx___err___d_n
push eax
call fcn.00409240
add esp, 0xc
lea eax, [ebp - 0x124c]
push eax
call edi
jmp 0x40a9db