Function at 0x409420
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2b4
mov eax, dword [0x424284]
xor eax, esp
mov dword [esp + 0x2b0], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
test esi, esi
je 0x409790
mov edi, dword [esi + 0xc]
mov dword [esp + 0x20], edi
test edi, edi
je 0x409790
mov ecx, dword [esi + 8]
push edi
push 0x4202bc
push 0xffffffffffffffff
lea edx, [esp + 0x268]
push 0x10
push edx
mov dword [esp + 0x2c], ecx
call fcn.004149b0
mov eax, dword [esi + 0x10]
add esp, 0x14
push eax
push 0x4202bc
push 0xffffffffffffffff
lea ecx, [esp + 0x2a8]
push 0x10
push ecx
call fcn.004149b0
add esp, 0x14
cmp ebx, fcn.004091a0
jne 0x4094cf
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x2a0]
push edx
lea eax, [esp + 0x264]
push eax
push ecx
push 0x400003ff
push 4
call fcn.004021b0
add esp, 0x18
push edi
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x4095ca
mov edx, dword [ebp + 0x14]
push edx
push 0x4202bc
push 0xffffffffffffffff
lea eax, [esp + 0x288]
push 0x10
push eax
call fcn.004149b0
add esp, 0x14
cmp ebx, fcn.004091a0
jne 0x409534
mov ecx, dword [esi]
push 0
push ecx
lea edx, [esp + 0x284]
push edx
lea eax, [esp + 0x268]
push eax
push 0x40000403
push 4
call fcn.004021b0
add esp, 0x18
mov ecx, dword [esp + 0x10]
push esi
push ecx
mov dword [esi + 4], edi
call ebx
add esp, 8
test eax, eax
jne 0x4095c1
lea edx, [esp + 0x24]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x409560
cmp dword [esp + 0x24], 0x103
jne 0x4095c1
test byte [esi + 0x14], 8
push 0
je 0x40959d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
push eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x268]
push ecx
push 0xc0000404
push 1
call fcn.004021b0
mov edi, dword [esp + 0x34]
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4095f4
mov eax, dword [esi]
push str.AppStopMethodSkip
push str.INVGATE
lea edx, [esp + 0x268]
push edx
push eax
push 0x8000041d
push 2
call fcn.004021b0
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4095f4
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
mov ecx, dword [esi]
push eax
push ecx
lea edx, [esp + 0x268]
push edx
push 0xc0000402
push 1
call fcn.004021b0
add esp, 0x18
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40963c
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
push eax
mov eax, dword [esi]
push eax
push 0xc0000400
push 1
call fcn.004021b0
add esp, 0x14
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
push 0x22c
lea ecx, [esp + 0x2c]
push 0
push ecx
call fcn.0041a110
add esp, 0xc
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x30], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4096a5
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.00402080
push eax
mov eax, dword [esi]
push eax
push 0xc0000401
push 1
call fcn.004021b0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x20]
inc dword [esi + 8]
push edi
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.00408e90
add esp, 4
test eax, eax
jne 0x4096dd
mov edx, dword [ebp + 0x14]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x14]
push edx
push esi
mov dword [esi + 0xc], ecx
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00409420
add esp, 0x10
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x409734
push edi
lea edx, [esp + 0x2c]
mov ecx, esi
call fcn.00408e90
add esp, 4
test eax, eax
jne 0x409721
mov ecx, dword [ebp + 0x14]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
push ecx
push esi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00409420
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4096f0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x12
jne 0x409764
mov edx, dword [esp + 0x18]
push ebx
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0041427b
mov esp, ebp
pop ebp
ret
push 0
call edi
mov edi, eax
call fcn.00402080
push eax
mov eax, dword [esi]
push eax
push 0xc0000401
push 1
call fcn.004021b0
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
mov dword [esi + 8], ecx
mov ecx, dword [esp + 0x2bc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041427b
mov esp, ebp
pop ebp
ret