Function at 0x40dce0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492c86
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x4c100c]
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 esi, ecx
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x240], ebx
call fcn.00405e70
mov dword [ebp - 4], 0
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x294], ecx
mov ecx, dword [esi + 8]
mov dword [ebp - 0x28c], eax
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x290], ecx
lea ecx, [ebp - 0x288]
mov dword [ebp - method.CWString.virtual_0], vtable.CWString.0
call dword [eax + 0x44]
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x288]
call fcn.004059c0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x26c]
call fcn.00405e70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x298]
call fcn.00449b30
cmp ebx, 0xffffffff
jne 0x40dda4
or esi, ebx
jmp 0x40dfeb
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40dfe2
nop dword [eax]
nop dword [eax + eax]
xor esi, esi
mov dword [ebp - 0x260], esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x40ddf8
push eax
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x25c]
call dword [eax + 0xc]
mov esi, dword [ebp - 0x260]
xor edx, edx
mov dword [ebp - 0x250], 0
xor ebx, ebx
mov dword [ebp - 0x248], edx
mov dword [ebp - 0x24c], ebx
cmp word [ebp - 0x218], dx
je 0x40de3f
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x25c]
call fcn.00446f60
mov edx, dword [ebp - 0x248]
mov ebx, dword [ebp - 0x24c]
mov esi, dword [ebp - 0x260]
test esi, esi
je 0x40df0e
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40de50
sub ecx, edx
xor edx, edx
sar ecx, 1
mov dword [ebp - 0x248], edx
lea edi, [ecx*2 + 2]
cmp ebx, edi
jl 0x40ded7
cmp edi, 2
jne 0x40de93
mov eax, dword [ebp - 0x250]
mov cx, word [esi]
mov word [eax], cx
mov edx, dword [ebp - 0x248]
add edx, edi
mov dword [ebp - 0x248], edx
jmp 0x40df06
cmp edi, 4
jne 0x40deb2
mov eax, dword [ebp - 0x250]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [ebp - 0x248]
add edx, edi
mov dword [ebp - 0x248], edx
jmp 0x40df06
cmp edi, 8
jne 0x40ded7
mov eax, dword [ebp - 0x250]
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x248]
add edx, edi
mov dword [ebp - 0x248], edx
jmp 0x40df06
test edi, edi
jle 0x40df06
push edi
lea ecx, [ebp - 0x25c]
call fcn.00446eb0
push edi
test esi, esi
je 0x40def5
push esi
push eax
call fcn.00478c80
jmp 0x40defd
push 0
push eax
call fcn.00479200
mov edx, dword [ebp - 0x248]
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x260], esi
mov edi, dword [ebp - 0x250]
xor eax, eax
test edx, edx
cmove edi, eax
test esi, esi
je 0x40df35
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40df24
sub ecx, ebx
sar ecx, 1
jmp 0x40df3e
test edx, edx
je 0x40df68
mov ecx, edx
shr ecx, 1
dec ecx
test ecx, ecx
jle 0x40df68
movzx edx, word [edi]
lea eax, [edx - 0x41]
cmp ax, 0x19
ja 0x40df54
lea eax, [edx + 0x20]
mov word [edi], ax
add edi, 2
sub ecx, 1
jne 0x40df42
mov edx, dword [ebp - 0x248]
mov esi, dword [ebp - 0x260]
mov eax, dword [ebp - 0x28c]
test eax, eax
jne 0x40df85
cmp dword [ebp - 0x274], 0
mov eax, 0x4a49e4
cmovne eax, dword [ebp - 0x27c]
test esi, esi
jne 0x40df97
test edx, edx
mov esi, 0x4a49e4
cmovne esi, dword [ebp - 0x250]
mov cx, word [esi]
cmp cx, word [eax]
jne 0x40dfbd
test cx, cx
je 0x40dfb9
mov cx, word [esi + 2]
cmp cx, word [eax + 2]
jne 0x40dfbd
add esi, 4
add eax, 4
test cx, cx
jne 0x40df97
xor eax, eax
jmp 0x40dfc2
sbb eax, eax
or eax, 1
test eax, eax
je 0x40e02a
mov ebx, dword [ebp - 0x240]
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40ddd0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x26c]
call fcn.00405340
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x298]
call fcn.00405340
mov eax, esi
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.00477369
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x234]
jmp 0x40dfeb