Function at 0x4051f0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x439fc3
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x448e28]
xor eax, esp
mov dword [esp + 0x234], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448e28]
xor eax, esp
push eax
lea eax, [esp + 0x24c]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
push 2
mov dword [esp + 0x25c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x1c]
push eax
push esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4054da
lea ecx, [ecx]
mov ecx, dword [esp + 0x24]
push ecx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
call fcn.0041b120
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
je 0x405464
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x40]
mov byte [esp + 0x254], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4052a3
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00408530
mov edi, dword [esp + 0x14]
mov esi, dword [edi - 0xc]
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4052e7
push esi
lea ecx, [esp + 0x18]
call fcn.004088f0
mov edi, dword [esp + 0x14]
lea edx, [esi + 1]
push edx
push edi
call fcn.00420147
add esp, 8
cmp esi, ebx
jl 0x4054d0
cmp esi, dword [edi - 8]
jg 0x4054d0
mov dword [edi - 0xc], esi
xor eax, eax
mov word [edi + esi*2], ax
mov edx, dword [esp + 0x25c]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40533d
push esi
lea ecx, [esp + 0x260]
call fcn.004088f0
mov edx, dword [esp + 0x25c]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.00420147
add esp, 8
cmp esi, ebx
jl 0x4054d0
mov eax, dword [esp + 0x25c]
cmp esi, dword [eax - 8]
jg 0x4054d0
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x25c]
xor edx, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov word [eax + esi*2], dx
call ebp
mov ecx, dword [esp + 0x25c]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x405464
mov eax, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4053b9
cmp dx, bx
je 0x4053b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4053b9
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x405393
xor eax, eax
jmp 0x4053be
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
sete al
cmp al, bl
jne 0x40546e
lea eax, [edi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4053ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x405260
mov esi, dword [esp + 0x18]
push esi
call ebp
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40543a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x24c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.0041f350
add esp, 0x244
ret
push 0x80004005
call fcn.00408c10
mov eax, dword [esp + 0x18]
push eax
call ebp
lea eax, [edi - 0x10]
mov byte [esp + 0x254], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405498
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x254], 0xffffffff
mov eax, dword [esp + 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4054c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40543c
push 0x80070057
call fcn.00408c10
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405409