Function at 0x405ce0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x646526
mov eax, dword fs:[0]
push eax
sub esp, 0x4c0
mov eax, dword [0x6c3afc]
xor eax, esp
mov dword [esp + 0x4b8], eax
push ebx
push esi
push edi
mov eax, dword [0x6c3afc]
xor eax, esp
push eax
lea eax, [esp + 0x4d0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
push 0x228
xor esi, esi
lea edx, [esp + 0x34]
push esi
push edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], ebx
call fcn.005de050
add esp, 0xc
push esi
push 2
mov dword [esp + 0x34], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x405d7f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x406014
xor ecx, ecx
push esi
mov word [esp + 0x268], cx
mov edi, 7
push 0x688638
lea ecx, [esp + 0x26c]
mov dword [esp + 0x264], esi
mov dword [esp + 0x268], esi
mov dword [esp + 0x280], edi
mov dword [esp + 0x27c], esi
call fcn.00403600
mov dword [esp + 0x4d8], esi
push esi
xor edx, edx
push 0x688638
lea ecx, [esp + 0x288]
mov dword [esp + 0x29c], edi
mov dword [esp + 0x298], esi
mov word [esp + 0x288], dx
call fcn.00403600
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push edi
mov dword [esp + 0x4e0], 1
mov byte [esp + 0x1f], 0
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x405ffd
mov ecx, dword [esp + 0x28]
call fcn.00403dd0
push eax
lea ecx, [esp + 0x54]
push ecx
call fcn.005de254
add esp, 8
test eax, eax
jne 0x405fe5
cmp dword [ebx + 0x10], esi
jne 0x405e91
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x260], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x25c], edx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405e56
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x26c]
call fcn.00403600
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x25c]
call fcn.00406970
mov byte [esp + 0x17], 1
jmp 0x405fe5
mov edx, dword [esp + 0x34]
push edx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x20], edi
cmp edi, esi
je 0x405fe5
push 0x206
lea ecx, [esp + 0x2c2]
xor eax, eax
push esi
push ecx
mov word [esp + 0x2c8], ax
call fcn.005de050
add esp, 0xc
push 0x104
lea edx, [esp + 0x2c0]
push edx
push esi
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x405fe5
xor eax, eax
mov word [esp + 0x2a0], ax
lea eax, [esp + 0x2bc]
mov dword [esp + 0x2b4], 7
mov dword [esp + 0x2b0], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405f13
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2c0]
push ecx
lea ecx, [esp + 0x2a8]
call fcn.00403600
mov ecx, dword [ebx + 0x10]
mov edi, 8
cmp dword [ebx + 0x14], edi
jb 0x405f48
mov eax, dword [ebx]
jmp 0x405f4a
mov eax, ebx
push ecx
push esi
push eax
lea ecx, [esp + 0x2ac]
call fcn.00402580
cmp eax, 0xffffffff
setne bl
cmp dword [esp + 0x2b4], edi
jb 0x405f78
mov edx, dword [esp + 0x2a0]
push edx
call fcn.004effaf
add esp, 4
test bl, bl
je 0x405fd6
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x25c], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x260], ecx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x405fa0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x26c]
call fcn.00403600
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x25c]
call fcn.00406970
mov byte [esp + 0x17], 1
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405e15
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x25c]
call fcn.00406040
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x4d0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4b8]
xor ecx, esp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret