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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call fcn.00401dc0
test al, al
jne 0x4020bc
push 0x90
lea eax, [ebp - 0x9c]
push 0
push eax
call fcn.00407760
add esp, 0xc
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x9c], 5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
jb 0x401feb
cmp dword [ebp - 0x98], 1
jb 0x401feb
push str.CsrGetProcessId
push str.ntdll.dll
call esi
push eax
call ebx
test eax, eax
je 0x401fe4
call eax
jmp 0x4020a7
xor eax, eax
jmp 0x4020a7
push 0x128
lea eax, [ebp - 0x1c8]
push 0
push eax
call fcn.00407760
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40209f
lea eax, [ebp - 0x1c8]
mov dword [ebp - 0x1c8], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x402037
push esi
call edi
jmp 0x40209f
lea eax, [ebp - 0x1a4]
push str.csrss.exe
push eax
call fcn.00409fcc
add esp, 8
test eax, eax
jne 0x40205a
push esi
call edi
mov eax, dword [ebp - 0x1c0]
jmp 0x4020a1
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea eax, [ebp - 0x1c8]
push eax
push esi
call ebx
test eax, eax
je 0x402096
nop
lea eax, [ebp - 0x1a4]
push str.csrss.exe
push eax
call fcn.00409fcc
add esp, 8
test eax, eax
je 0x4020cf
lea eax, [ebp - 0x1c8]
push eax
push esi
call ebx
test eax, eax
jne 0x402070
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4020e0
push eax
call edi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405a9e
mov esp, ebp
pop ebp
ret
push esi
call edi
mov eax, dword [ebp - 0x1c0]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x4020a1
push str.NtQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 0x1cc], 0
call esi
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
push 0
push 4
lea eax, [ebp - 0x1cc]
push eax
push 0x1e
call edi
push eax
call esi
test eax, eax
jne 0x40211f
cmp dword [ebp - 0x1cc], eax
jne 0x4020bc
push str.NtQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 0x1cc], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
push 0
mov esi, eax
lea eax, [ebp - 0x1cc]
push 4
push eax
push 0x1f
call edi
push eax
call esi
test eax, eax
jne 0x402160
cmp dword [ebp - 0x1cc], eax
je 0x4020bc
push 0x4243b8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4020bc
call fcn.00401e50
test al, al
jne 0x4020bc
call fcn.00401ed0
mov ecx, dword [ebp - 4]
test al, al
pop edi
setne al
xor ecx, ebp
pop esi
pop ebx
call fcn.00405a9e
mov esp, ebp
pop ebp
ret