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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432bb0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1db4
call fcn.00412e10
mov eax, dword [0x445080]
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.00414fa0
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 0x40a86b
cmp dword [ebp - 0x1b7c], 6
jb 0x40a86b
lea eax, [esi + 1]
jmp 0x40a86d
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.00414fa0
push 0x22c
lea eax, [ebp - 0x1dac]
push 0
push eax
call fcn.00414fa0
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.00420998
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.00421255
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 0x40aadd
lea eax, [ebp - 0x1dac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40aadd
nop dword [eax]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x1d88]
push eax
call fcn.00420a4c
add esp, 8
test eax, eax
jne 0x40aac3
mov eax, dword [ebp - 0x1da4]
cmp dword [ebp - 0x1dc4], eax
je 0x40aac3
push eax
push 0
push dword [ebp - 0x1db8]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1db4], eax
test eax, eax
je 0x40aac3
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00414fa0
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.00414fa0
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 0x40ab58
cmp dword [ebp - 0x1b7c], 6
jb 0x40ab58
push 0x4409fc
call edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aa65
push str.QueryFullProcessImageNameW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa5e
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.004092d0
add esp, 0x10
lea eax, [ebp - 0x124c]
push eax
call edi
test ebx, ebx
je 0x40aab1
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00420a4c
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 0x40aadd
test esi, esi
je 0x40a960
test ebx, ebx
je 0x40aaed
cmp ebx, 0xffffffff
je 0x40aaed
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.004092d0
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.00412b32
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 0x40aa6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x124c]
push str.GetModulePathWrap___:_GetModuleFileNameEx___err___d_n
push eax
call fcn.004092d0
add esp, 0xc
lea eax, [ebp - 0x124c]
push eax
call edi
jmp 0x40aa6b