Function at 0x4190e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4545c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x23c], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24c], edi
cmp edi, 0xffffffff
je 0x41932b
push 0x228
lea ecx, [ebp - 0x22c]
push esi
push ecx
call fcn.0042c9e0
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x419324
push ebx
mov eax, dword [ebp - 0x23c]
cmp word [eax], si
jne 0x419323
mov edx, dword [ebp - 0x228]
lea ecx, [ebp - 0x244]
push ecx
push edx
mov dword [ebp - 0x244], esi
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x244]
jne 0x41930d
mov ecx, dword [ebp - 0x228]
push ecx
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x248], ebx
cmp ebx, esi
je 0x41930d
lea edx, [ebp - 0x238]
push edx
push 8
push ebx
mov dword [ebp - 0x238], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x419306
mov ecx, dword [ebp - 0x238]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x234]
push eax
push esi
push esi
push 1
push ecx
mov dword [ebp - 0x234], esi
call edi
test eax, eax
jne 0x4192ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4192ed
mov edx, dword [ebp - 0x234]
push edx
call fcn.00424a1d
mov ebx, eax
mov eax, dword [ebp - 0x234]
push eax
push esi
push ebx
call fcn.0042c9e0
mov edx, dword [ebp - 0x234]
mov eax, dword [ebp - 0x238]
add esp, 0x10
lea ecx, [ebp - 0x234]
push ecx
push edx
push ebx
push 1
push eax
call edi
test eax, eax
je 0x4192d0
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4192d0
mov eax, dword [ebx]
cmp eax, esi
je 0x4192d0
lea edx, [ebp - 0x240]
push edx
push eax
mov dword [ebp - 0x240], esi
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x4192d0
mov edx, dword [ebp - 0x240]
mov eax, edx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x419280
sub eax, edi
sar eax, 1
cmp eax, 0xf
jbe 0x4192c9
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4192a0
mov esi, dword [ebp - 0x23c]
sub eax, edi
sar eax, 1
mov ecx, eax
mov eax, 0x80
call fcn.00418f70
mov edx, dword [ebp - 0x240]
xor esi, esi
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x234]
push eax
push esi
push ebx
call fcn.0042c9e0
push ebx
call fcn.00424a28
mov ebx, dword [ebp - 0x248]
add esp, 0x10
mov ecx, dword [ebp - 0x238]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x24c]
mov dword [ebp - 0x238], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x230]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x419150
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x23c]
xor eax, eax
cmp word [ecx], si
mov ecx, dword [ebp - 4]
setne al
pop edi
xor ecx, ebp
pop esi
call fcn.004243bb
mov esp, ebp
pop ebp
ret