Function at 0x40a542
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401a28
push 0x414d30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
push ebx
push ebx
push 0x1009
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
or dword [ebp - 0x260], 0xffffffff
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x3c], ebx
push ebx
push 1
push 0x1002
push dword [ebp + 8]
call edi
mov dword [ebp - 0x2c], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040b6dc
mov dword [ebp - 0x270], eax
cmp eax, ebx
je 0x40a92e
mov dword [ebp - 0x20], 0x328
push dword [ebp - 0x20]
call fcn.0040505d
mov esi, eax
mov dword [ebp - 0x27c], esi
cmp esi, ebx
je 0x40a92e
push dword [ebp - 0x20]
push esi
push 8
push dword [ebp + 0x10]
push dword [ebp - 0x270]
call fcn.00404a99
cmp eax, ebx
jne 0x40a5ff
mov eax, dword [esi]
cmp eax, ebx
je 0x40a669
cmp eax, 0x105
jne 0x40a628
add eax, 0xffffffe5
cmp eax, 0xea
je 0x40a610
cmp eax, 0x7a
je 0x40a610
cmp eax, 0x18
jne 0x40a628
add dword [ebp - 0x20], 0x3cd0
cmp dword [ebp - 0x20], 0x4004
ja 0x40a638
push esi
call fcn.00405081
jmp 0x40a5bf
push esi
call fcn.00405081
mov dword [ebp - 0x27c], ebx
mov esi, ebx
jmp 0x40a669
mov eax, 0x3ff
push eax
push eax
push str.It_seems_that_more_than__d_threads_are_waiting_for__nthe_object._Only_the_first__d_threads_will_be_listed.
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x30
push str.Warning
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp esi, ebx
je 0x40a92e
mov dword [ebp - 0x268], 1
mov eax, dword [esi + 4]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x40a917
mov dword [ebp - 0x20], 0x2000
push dword [ebp - 0x20]
call fcn.0040505d
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x40a6e2
push ebx
push dword [ebp - 0x20]
push eax
push 5
call dword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, ebx
je 0x40a6e2
cmp eax, 0xc0000004
push dword [ebp - 0x3c]
jne 0x40a6da
call fcn.00405081
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x20]
shl eax, 2
mov dword [ebp - 0x20], eax
cmp eax, 0x800000
ja 0x40a6e2
push eax
call fcn.0040505d
jmp 0x40a690
call fcn.00405081
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x288], ebx
mov ebx, 0x1006
mov eax, dword [ebp - 0x288]
cmp eax, dword [ebp - 0x30]
jae 0x40a8f7
mov dword [ebp - 0x284], 0x423834
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x40a741
and byte [ebp - 0x28c], 0
mov dword [ebp - 0x290], eax
cmp byte [ebp - 0x28c], 0
jne 0x40a741
mov ecx, dword [ebp - 0x288]
shl ecx, 4
mov ecx, dword [ecx + esi + 0xc]
cmp ecx, dword [eax + 0x44]
jne 0x40a7a4
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x284], eax
mov dword [ebp - 0x264], 3
inc dword [ebp - 0x260]
and dword [ebp - 0x25c], 0
mov eax, dword [ebp - 0x284]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x2c], 0
je 0x40a7c1
mov eax, dword [ebp - 0x288]
shl eax, 4
push dword [eax + esi + 0xc]
call fcn.00409b41
mov dword [ebp - 0x24], eax
test eax, eax
je 0x40a7ba
push eax
push 0xffffffffffffffff
push dword [ebp - 0x2c]
call dword [sym.imp.COMCTL32.dll_ImageList_ReplaceIcon]
mov dword [ebp - 0x248], eax
push dword [ebp - 0x24]
call dword [sym.imp.USER32.dll_DestroyIcon]
and dword [ebp - 0x24], 0
jmp 0x40a7c1
mov ecx, dword [eax]
xor edx, edx
test ecx, ecx
sete dl
mov byte [ebp - 0x28c], dl
add eax, ecx
jmp 0x40a717
and dword [ebp - 0x248], 0
lea eax, [ebp - 0x264]
push eax
push 0
push 0x104d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x264], 1
inc dword [ebp - 0x25c]
mov eax, dword [ebp - 0x288]
shl eax, 4
lea esi, [eax + esi + 8]
push dword [esi + 4]
push 0x41f780
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x264]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
mov dword [ebp - 0x264], 1
inc dword [ebp - 0x25c]
push dword [esi + 8]
push 0x41f780
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x264]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
inc dword [ebp - 0x25c]
push dword [esi]
push str.0x_08X
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x264]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
inc dword [ebp - 0x25c]
movzx eax, word [esi + 0xe]
sub eax, 0
je 0x40a8c7
dec eax
je 0x40a8be
mov dword [ebp - 0x28], 0x41f14c
jmp 0x40a8ce
mov dword [ebp - 0x28], str.Wait_Any
jmp 0x40a8ce
mov dword [ebp - 0x28], str.Wait_All
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x264]
push eax
push 0
push ebx
push dword [ebp + 8]
call edi
inc dword [ebp - 0x288]
mov esi, dword [ebp - 0x27c]
jmp 0x40a6f0
or dword [ebp - 4], 0xffffffff
jmp 0x40a915
xor ebx, ebx
cmp dword [ebp - 0x3c], ebx
je 0x40a924
push dword [ebp - 0x3c]
call fcn.00405081
cmp esi, ebx
je 0x40a92e
push esi
call fcn.00405081
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc