Function at 0x40d1d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x46a264]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x44], ecx
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x10], esi
cmp esi, 0xffffffff
jne 0x40d215
mov byte [0], 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
call fcn.0040e4e0
add esp, 4
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
push eax
call fcn.0040e4e0
add esp, 4
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x1c]
push eax
call fcn.0040e4e0
add esp, 4
mov dword [esp + 0x18], 0
lea eax, [esp + 0x18]
push eax
call fcn.0040e4e0
add esp, 4
mov dword [esp + 0x24], 0
lea eax, [esp + 0x24]
push eax
call fcn.0040e4e0
add esp, 4
mov dword [esp + 0x30], 0
lea eax, [esp + 0x30]
push eax
call fcn.0040e4e0
add esp, 4
mov dword [esp + 0x2c], 0
lea eax, [esp + 0x2c]
push eax
call fcn.0040e4e0
add esp, 4
mov dword [esp + 0x28], 0
lea eax, [esp + 0x28]
push eax
call fcn.0040e4e0
add esp, 4
lea eax, [esp + 0x44]
push 0x228
push 0
push eax
call fcn.004305d0
add esp, 0xc
mov dword [esp + 0x40], 0x22c
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40d2ee
mov byte [0], al
mov ebx, esi
push dword [esp + 0x48]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0xc], 0
test esi, esi
je 0x40d493
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x40d387
cmp ecx, 0xffffffff
je 0x40d387
call fcn.004104e0
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x46c2fc]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x38], eax
test ecx, ecx
jne 0x40d351
call fcn.0040fc20
mov ecx, dword [0x46c2fc]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edi
push ebx
push edx
push dword [esp + 0x44]
call dword [eax + 8]
mov ecx, dword [0x46c2fc]
mov edi, dword [esp + 0xc]
test ecx, ecx
jne 0x40d37a
call fcn.0040fc20
mov ecx, dword [0x46c2fc]
mov eax, dword [ecx]
push edi
call dword [eax]
mov dword [esp + 0xc], 0
cmp esi, 0xffffffff
je 0x40d3bc
mov dword [esp + 0xc], esi
call fcn.004104e0
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x46c2fc]
test ecx, ecx
jne 0x40d3af
call fcn.0040fc20
mov ecx, dword [0x46c2fc]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push edi
push ebx
push edx
push esi
call dword [eax + 4]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d48f
cmp eax, 0xffffffff
je 0x40d48f
mov edi, dword [sym.imp.USER32.dll_GetGuiResources]
push 0
push eax
call edi
push 1
push dword [esp + 0x10]
mov esi, eax
call edi
mov ecx, dword [esp + 0x20]
inc dword [esp + 0x14]
add dword [esp + 0x18], eax
add dword [esp + 0x1c], esi
cmp ecx, esi
cmovl ecx, esi
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
cmp ecx, dword [esp + 0x58]
jne 0x40d42c
add dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
inc dword [esp + 0x24]
add dword [esp + 0x2c], esi
cmp eax, esi
cmovl eax, esi
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d48f
cmp eax, 0xffffffff
je 0x40d48f
call fcn.004104e0
mov edi, dword [ebp + 4]
mov esi, eax
mov ecx, dword [0x46c2fc]
mov ebx, dword [esp + 0xc]
test ecx, ecx
jne 0x40d45c
call fcn.0040fc20
mov ecx, dword [0x46c2fc]
mov eax, dword [ecx]
lea edx, [esp + 0xc]
push esi
push edi
push edx
push ebx
call dword [eax + 8]
mov ecx, dword [0x46c2fc]
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x40d482
call fcn.0040fc20
mov ecx, dword [0x46c2fc]
mov eax, dword [ecx]
push esi
call dword [eax]
mov dword [esp + 0xc], 0
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x40]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40d2f0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov byte [0], 0
mov ecx, dword [esp + 0x26c]
pop ebx
xor ecx, esp
call fcn.0042d2b3
mov esp, ebp
pop ebp
ret