Function at 0x41d390
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x521167
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x56a260]
xor eax, esp
mov dword [esp + 0x258], eax
push ebx
push esi
push edi
mov eax, dword [0x56a260]
xor eax, esp
push eax
lea eax, [esp + 0x270]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
push 0x228
mov esi, ecx
lea ecx, [esp + 0x3c]
push edi
push ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], edi
call fcn.004f5b00
add esp, 0xc
push esi
lea ecx, [esp + 0x18]
call fcn.0041abb0
lea ecx, [esp + 0x14]
mov dword [esp + 0x278], edi
call fcn.0041ef90
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
or esi, 0xffffffff
cmp eax, esi
mov dword [esp + 0x2c], eax
jne 0x41d441
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x278], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], esi
dec esi
jmp 0x41d740
lea ecx, [esp + 0x34]
push ecx
push eax
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x41d72a
lea esp, [esp]
mov edx, dword [esp + 0x3c]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
call fcn.0041abb0
mov byte [esp + 0x278], 1
mov edx, dword [esp + 0x10]
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 0x41d4bb
push esi
lea ecx, [esp + 0x14]
call fcn.0041b5a0
mov edx, dword [esp + 0x10]
lea ecx, [esi + 1]
push ecx
push edx
call fcn.004f45bc
add esp, 8
test esi, esi
jl 0x41d720
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x41d720
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
mov word [edx + esi*2], 0
mov eax, dword [esp + 0x10]
push 0x5c
push eax
call fcn.004f2f85
add esp, 8
test eax, eax
je 0x41d5a9
sub eax, dword [esp + 0x10]
sar eax, 1
mov esi, eax
test esi, esi
jle 0x41d5a9
push 0x543e10
lea ecx, [esp + 0x1c]
call fcn.0041abb0
add esi, 1
push esi
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x280], 2
call fcn.0041eff0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x27c], 3
call fcn.0041b3b0
mov byte [esp + 0x278], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041b3b0
mov byte [esp + 0x278], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d5a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0xe
push 0
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x20]
call fcn.0041f020
mov esi, eax
push 0xe
push 0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x284], 4
call fcn.0041f020
mov ecx, dword [esi]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x41d716
mov eax, dword [eax]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41d616
test dx, dx
je 0x41d612
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41d616
add eax, 4
add ecx, 4
test dx, dx
jne 0x41d5f0
xor eax, eax
jmp 0x41d61b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov eax, dword [esp + 0x28]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d640
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x278], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d668
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x41d699
mov ecx, dword [esp + 0x1c]
mov esi, dword [ecx + 4]
mov eax, dword [esi + 4]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
call fcn.0041f1e0
mov ecx, dword [esp + 0x1c]
mov edi, eax
call fcn.0040db60
mov dword [esi + 4], edi
mov eax, dword [edi + 4]
mov dword [eax], edi
mov edi, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
mov byte [esp + 0x278], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41d6ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41d460
push edi
call esi
mov dword [esp + 0x278], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41d70f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x41d750
push 0x80004005
call fcn.00402980
push 0x80070057
call fcn.00402980
mov dword [esp + 0x278], esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x41d74e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x270]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.004f2ac1
mov esp, ebp
pop ebp
ret