Function at 0x411640
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x46e780]
xor eax, esp
mov dword [esp + 0x230], eax
push ebp
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
lea eax, [esp + 8]
push eax
push ebp
mov dword [esp + 0x10], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4116b9
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x23c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4116a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00439c98
add esp, 0x234
ret
push ebx
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
mov edi, dword [esp + 0x248]
je 0x4117ee
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
call fcn.004024e0
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x41170a
push esi
lea ecx, [esp + 0x14]
call fcn.004013d0
mov eax, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0043b89c
add esp, 8
test esi, esi
jl 0x411869
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x411869
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
mov word [edx + esi*2], 0
mov esi, dword [edi - 0xc]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
sub ecx, esi
or eax, ecx
jge 0x411761
push esi
lea ecx, [esp + 0x24c]
call fcn.004013d0
mov edi, dword [esp + 0x248]
lea edx, [esi + 1]
push edx
push edi
call fcn.0043b89c
add esp, 8
test esi, esi
jl 0x411869
cmp esi, dword [edi - 8]
jg 0x411869
mov dword [edi - 0xc], esi
mov word [edi + esi*2], 0
mov ebx, dword [esp + 0x10]
mov ecx, edi
mov eax, ebx
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4117b6
test dx, dx
je 0x4117b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4117b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x411790
xor eax, eax
jmp 0x4117bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [ebx - 0x10]
je 0x41182c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4117db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4116d6
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411811
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
call fcn.00439c98
add esp, 0x234
ret
mov esi, dword [esp + 0x1c]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x411849
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411865
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x411813
push 0x80070057
call fcn.00401350
int3