Function at 0x40c890
Capabilities:
Check os version
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44fe42
mov eax, dword fs:[0]
push eax
sub esp, 0x448
mov eax, dword [0x467074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x444], edi
push 0x104
lea eax, [ebp - 0x218]
xor ebx, ebx
push eax
mov dword [ebp - 0x448], ebx
push edi
mov dword [ebp - 0x454], ecx
mov dword [ebp - 0x450], edi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
setne byte [ebp - 0x439]
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x454]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, 0
je 0x40cafc
sub eax, 1
jne 0x40cafc
cmp byte [ebp - 0x439], al
je 0x40ca74
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], 7
lea edx, [ecx + 2]
mov word [ebp - 0x438], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c947
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.00401470
mov dword [ebp - 4], 0
xor esi, esi
mov eax, dword fs:[0x30]
or ebx, 1
mov dword [ebp - 0x440], esi
mov ecx, 0x1000
push 0x2000
mov dword [ebp - 0x448], ebx
cmp dword [eax + 0xa4], 5
mov eax, 0x400
cmove ecx, eax
or ecx, 0x100000
mov dword [ebp - 0x44c], ecx
call fcn.0042b6e2
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40ca6c
lea eax, [ebp - 0x440]
push eax
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
test eax, eax
je 0x40ca63
xor edi, edi
test dword [ebp - 0x440], 0xfffffffc
jbe 0x40ca5d
nop word [eax + eax]
push dword [ebx + edi*4]
push 0
push dword [ebp - 0x44c]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40ca4f
push 0x104
lea eax, [ebp - 0x420]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]
test eax, eax
je 0x40ca46
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.004340df
add esp, 8
test eax, eax
je 0x40ca5d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [ebp - 0x440]
inc edi
shr eax, 2
cmp edi, eax
jb 0x40c9f0
mov edi, dword [ebp - 0x444]
push ebx
call fcn.0042b6dd
add esp, 4
mov ebx, dword [ebp - 0x448]
jmp 0x40ca76
xor esi, esi
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40cade
mov edx, dword [ebp - 0x424]
and ebx, 0xfffffffe
cmp edx, 8
jb 0x40cac1
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40cab7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb23
push edx
push ecx
call fcn.0042b435
add esp, 8
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
test esi, esi
je 0x40cafc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x450], esi
mov edi, esi
mov dword [ebp - 0x444], esi
jmp 0x40c8f6
test edi, edi
je 0x40cb07
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042b3f4
mov esp, ebp
pop ebp
ret
call fcn.0043012a
int3