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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42e8c0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1db4
call fcn.00410e60
mov eax, dword [0x441064]
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 0x110
xor esi, esi
lea eax, [ebp - 0x1b7c]
push esi
push eax
call fcn.00412cd0
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 0x40a84b
cmp dword [ebp - 0x1b7c], 6
jb 0x40a84b
lea eax, [esi + 1]
jmp 0x40a84d
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.00412cd0
push 0x228
lea eax, [ebp - 0x1da8]
push 0
push eax
call fcn.00412cd0
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.0041d2d8
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0xa2c]
push eax
push 0
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.0041db95
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 0x40aabd
lea eax, [ebp - 0x1dac]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40aabd
nop dword [eax]
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x1d88]
push eax
call fcn.0041d38c
add esp, 8
test eax, eax
jne 0x40aaa3
mov eax, dword [ebp - 0x1da4]
cmp dword [ebp - 0x1dc4], eax
je 0x40aaa3
push eax
push 0
push dword [ebp - 0x1db8]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1db4], eax
test eax, eax
je 0x40aaa3
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00412cd0
xor eax, eax
mov dword [ebp - 0x1dbc], 0x104
push 0x110
push eax
mov dword [ebp - 0x1db0], eax
lea eax, [ebp - 0x1b7c]
push eax
call fcn.00412cd0
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 0x40ab38
cmp dword [ebp - 0x1b7c], 6
jb 0x40ab38
push 0x43d73c
call edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aa45
push str.QueryFullProcessImageNameW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40aa3e
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.004092a0
add esp, 0x10
lea eax, [ebp - 0x124c]
push eax
call edi
test ebx, ebx
je 0x40aa91
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0041d38c
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 0x40aabd
test esi, esi
je 0x40a940
test ebx, ebx
je 0x40aacd
cmp ebx, 0xffffffff
je 0x40aacd
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.004092a0
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.00410b68
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 0x40aa4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x124c]
push str.GetModulePathWrap___:_GetModuleFileNameEx___err___d_n
push eax
call fcn.004092a0
add esp, 0xc
lea eax, [ebp - 0x124c]
push eax
call edi
jmp 0x40aa4b