Function at 0x411060
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
mov eax, dword [0x46d750]
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 0x4110d9
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 0x4110c1
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.00438dc7
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 0x41120e
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x14]
call fcn.00402310
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 0x41112a
push esi
lea ecx, [esp + 0x14]
call fcn.004021e0
mov eax, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.0043a95f
add esp, 8
test esi, esi
jl 0x411289
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x411289
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 0x411181
push esi
lea ecx, [esp + 0x24c]
call fcn.004021e0
mov edi, dword [esp + 0x248]
lea edx, [esi + 1]
push edx
push edi
call fcn.0043a95f
add esp, 8
test esi, esi
jl 0x411289
cmp esi, dword [edi - 8]
jg 0x411289
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 0x4111d6
test dx, dx
je 0x4111d2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4111d6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4111b0
xor eax, eax
jmp 0x4111db
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
lea eax, [ebx - 0x10]
je 0x41124c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4111fb
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 0x4110f6
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 0x411231
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.00438dc7
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 0x411269
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 0x411285
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x411233
push 0x80070057
call fcn.00402160
int3