Function at 0x406d50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2014
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x4f238c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x480], eax
cmp eax, 0xffffffff
je 0x406dbe
lea ecx, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x406dc5
push dword [ebp - 0x480]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40700b
mov esi, dword [ebp - 0x480]
nop dword [eax + eax]
cmp dword [ebp - 0x474], 0xa
jb 0x406fec
xor eax, eax
mov dword [ebp - 0x250], 0
push eax
push 0x4e7e9c
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
call fcn.00405100
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x4e7e9c
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00405100
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x458]
mov eax, dword [ebp - 0x474]
lea edx, [ecx + 2]
mov dword [ebp - 0x24c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406e70
sub ecx, edx
lea eax, [ebp - 0x458]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.00405100
push dword [ebp - 0x474]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x406f0c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0049e790
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
test eax, eax
je 0x406f05
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406ee3
sub eax, edx
lea ecx, [ebp - 0x230]
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00405100
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 4]
cmp dword [edi + 8], esi
je 0x406f53
mov eax, dword [ebp - 0x250]
lea ecx, [esi + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 4], eax
lea eax, [ebp - 0x248]
push eax
mov dword [ebp - 0x484], esi
call fcn.00404bf0
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x20]
call fcn.00404bf0
add dword [edi + 4], 0x38
jmp 0x406f62
lea eax, [ebp - 0x250]
mov ecx, edi
push eax
push esi
call fcn.00407480
mov dword [ebp - 4], 0xffffffff
inc ebx
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x406faa
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406fa0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407027
push edx
push ecx
call fcn.0045757d
add esp, 8
mov edx, dword [ebp - 0x234]
cmp edx, 8
jb 0x406fe6
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406fdc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407027
push edx
push ecx
call fcn.0045757d
add esp, 8
mov esi, dword [ebp - 0x480]
lea eax, [ebp - 0x47c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406dd0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00457808
mov esp, ebp
pop ebp
ret
call fcn.004a2f99
int3