Function at 0x40c710
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0x47426c]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x40c755
mov byte [0], 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
call fcn.0040e660
add esp, 4
mov dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
call fcn.0040e660
add esp, 4
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
call fcn.0040e660
add esp, 4
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
call fcn.0040e660
add esp, 4
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
call fcn.0040e660
add esp, 4
mov dword [esp + 0x34], 0
lea eax, [esp + 0x34]
push eax
call fcn.0040e660
add esp, 4
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
call fcn.0040e660
add esp, 4
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
push eax
call fcn.0040e660
add esp, 4
lea eax, [esp + 0x4c]
push 0x228
push 0
push eax
call fcn.0043d870
add esp, 0xc
mov dword [esp + 0x48], 0x22c
lea eax, [esp + 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40c82e
mov byte [0], al
mov ebx, esi
push dword [esp + 0x50]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x10], 0
test esi, esi
je 0x40c9d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x40c8c7
cmp ecx, 0xffffffff
je 0x40c8c7
call fcn.00411140
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x47782c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
test ecx, ecx
jne 0x40c891
call fcn.004105a0
mov ecx, dword [0x47782c]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edi
push ebx
push edx
push dword [esp + 0x48]
call dword [eax + 8]
mov ecx, dword [0x47782c]
mov edi, dword [esp + 0x10]
test ecx, ecx
jne 0x40c8ba
call fcn.004105a0
mov ecx, dword [0x47782c]
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [esp + 0x10], 0
cmp esi, 0xffffffff
je 0x40c8fc
mov dword [esp + 0x10], esi
call fcn.00411140
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x47782c]
test ecx, ecx
jne 0x40c8ef
call fcn.004105a0
mov ecx, dword [0x47782c]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edi
push ebx
push edx
push esi
call dword [eax + 4]
push dword [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c9d3
cmp eax, 0xffffffff
je 0x40c9d3
mov edi, dword [sym.imp.USER32.dll_GetGuiResources]
push 0
push eax
call edi
push 1
push dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0x4c], esi
call edi
mov ecx, dword [esp + 0x24]
inc dword [esp + 0x18]
add dword [esp + 0x1c], eax
add dword [esp + 0x20], esi
cmp ecx, esi
cmovl ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, dword [esp + 0x60]
jne 0x40c970
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
inc dword [esp + 0x28]
add dword [esp + 0x30], esi
cmp eax, esi
cmovl eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40c9d3
cmp eax, 0xffffffff
je 0x40c9d3
call fcn.00411140
mov edi, dword [ebp + 4]
mov esi, eax
mov ecx, dword [0x47782c]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x40c9a0
call fcn.004105a0
mov ecx, dword [0x47782c]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push esi
push edi
push edx
push ebx
call dword [eax + 8]
mov ecx, dword [0x47782c]
mov esi, dword [esp + 0x10]
test ecx, ecx
jne 0x40c9c6
call fcn.004105a0
mov ecx, dword [0x47782c]
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40c830
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov byte [0], 0
mov ecx, dword [esp + 0x274]
pop ebx
xor ecx, esp
call fcn.0043a597
mov esp, ebp
pop ebp
ret