Function at 0x40c217
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x684
push ebx
xor ebx, ebx
cmp dword [0x4133f8], ebx
push esi
mov dword [ebp + 0x60], 1
jne 0x40c242
mov esi, 0x4133ec
mov dword [ebp + 0x60], ebx
call fcn.0040b8c3
push ebx
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp + 0x68], eax
lea eax, [ebp - 0x608]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0x68]
mov dword [ebp - 0x60c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0x68]
mov dword [ebp + 0x64], ebx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
je 0x40c550
push edi
mov eax, dword [ebp - 0x604]
mov ecx, dword [ebp - 0x5f4]
mov esi, dword [sym.imp.KERNEL32.DLL_OpenProcess]
push eax
push ebx
push 0x410
mov word [ebp - 0x1d0], bx
mov dword [ebp + 0x40], ebx
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x58], ebx
mov dword [ebp + 0x5c], ebx
mov dword [ebp - 0x1d4], eax
mov dword [ebp + 0x3c], ecx
call esi
cmp eax, ebx
mov dword [ebp + 0x74], eax
jne 0x40c308
call fcn.00404015
cmp dword [eax + 4], 5
jbe 0x40c3ce
push dword [ebp - 0x1d4]
push ebx
push 0x1000
call esi
cmp eax, ebx
mov dword [ebp + 0x74], eax
je 0x40c3ce
push 0x208
lea eax, [ebp - 0x3de]
push ebx
push eax
mov word [ebp - 0x3e0], bx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3e0]
push eax
push dword [ebp + 0x74]
call fcn.0040c560
cmp word [ebp - 0x3e0], bx
je 0x40c346
cmp word [ebp - 0x3e0], 0x3f
jne 0x40c399
cmp dword [0x414970], ebx
mov dword [ebp + 0x70], 0x104
jne 0x40c37f
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
cmp eax, ebx
je 0x40c37f
push str.QueryFullProcessImageNameW
push eax
mov dword [0x414970], 1
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x414974], eax
mov eax, dword [0x414974]
cmp eax, ebx
je 0x40c399
lea ecx, [ebp + 0x70]
push ecx
lea ecx, [ebp - 0x3e0]
push ecx
push ebx
push dword [ebp + 0x74]
call eax
lea esi, [ebp - 0x3e0]
lea edi, [ebp - 0x1d0]
call fcn.0040be76
lea eax, [ebp + 0x58]
push eax
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x40]
push eax
push dword [ebp + 0x74]
call fcn.0040c1c1
add esp, 0x14
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp + 0x60], ebx
mov dword [ebp + 0x70], ebx
je 0x40c4cb
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x74], eax
inc eax
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x74]
mov ecx, 0x4133ec
call fcn.004026ec
cmp eax, ebx
je 0x40c433
mov ecx, dword [eax]
cmp ecx, dword [ebp - 0x1d4]
jne 0x40c433
mov ecx, dword [eax + 0x210]
cmp ecx, dword [ebp + 0x3c]
jne 0x40c433
lea edx, [eax + 0x214]
mov ecx, dword [edx + 4]
mov edx, dword [edx]
xor esi, esi
xor edi, edi
or esi, edx
or ecx, edi
mov edi, dword [ebp + 0x44]
xor edx, edx
or edx, dword [ebp + 0x40]
xor ebx, ebx
or edi, ebx
cmp esi, edx
jne 0x40c431
cmp ecx, edi
je 0x40c4a2
xor ebx, ebx
mov eax, dword [ebp + 0x6c]
mov ecx, 0x4133ec
call fcn.004026ec
cmp eax, ebx
je 0x40c482
mov ecx, dword [ebp - 0x1d4]
cmp dword [eax], ecx
jne 0x40c482
mov ecx, dword [ebp + 0x3c]
cmp dword [eax + 0x210], ecx
jne 0x40c482
lea edx, [eax + 0x214]
mov ecx, dword [edx + 4]
mov edx, dword [edx]
xor esi, esi
xor edi, edi
or esi, edx
or ecx, edi
mov edi, dword [ebp + 0x44]
xor edx, edx
or edx, dword [ebp + 0x40]
xor ebx, ebx
or edi, ebx
cmp esi, edx
jne 0x40c480
cmp ecx, edi
je 0x40c4a2
xor ebx, ebx
dec dword [ebp + 0x74]
inc dword [ebp + 0x6c]
cmp dword [ebp + 0x74], ebx
jge 0x40c3e4
mov eax, dword [ebp + 0x6c]
cmp eax, dword [0x4133f8]
jl 0x40c3e4
jmp 0x40c4cb
xor ebx, ebx
add eax, 4
cmp word [eax], bx
mov dword [ebp + 0x70], 1
jne 0x40c4cb
cmp word [ebp - 0x1d0], bx
je 0x40c4cb
lea ecx, [ebp - 0x1d0]
push ecx
push eax
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
inc dword [ebp + 0x64]
cmp dword [ebp + 0x70], ebx
jne 0x40c538
mov esi, dword [0x4133f8]
cmp esi, ebx
jl 0x40c538
cmp esi, 0xffffffff
jne 0x40c4ef
push dword [0x4133ec]
call sub.msvcrt.dll_free
jmp 0x40c50c
push dword [0x4133f4]
mov eax, 0x4133f0
push 0x234
mov edx, esi
mov edi, 0x4133ec
call fcn.00403d8e
pop ecx
lea eax, [esi + 1]
cmp dword [0x4133f8], eax
pop ecx
jge 0x40c51d
mov dword [0x4133f8], eax
mov edi, esi
imul edi, edi, 0x234
add edi, dword [0x4133ec]
mov ecx, 0x8d
lea esi, [ebp - 0x1d4]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x60c]
push eax
push dword [ebp + 0x68]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x40c296
pop edi
push dword [ebp + 0x68]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ebx
add ebp, 0x78
leave
ret