Function at 0x10018c40
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x1007b054]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x25c], ecx
push 0x234
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x250], esi
call fcn.10022452
add esp, 4
mov edi, eax
mov dword [ebp - 0x254], edi
push esi
push 2
mov dword [edi], edi
mov dword [edi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
jne 0x10018cd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10018d86
push 0x228
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.10023f30
add esp, 0xc
mov dword [ebp - 0x238], 0x22c
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10018d74
nop
cmp esi, 0x7432d6
je 0x10018ecc
push 0x234
call fcn.10022452
mov edx, eax
lea esi, [ebp - 0x238]
mov ecx, 0x8b
add esp, 4
lea edi, [edx + 8]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x254]
mov esi, dword [ebp - 0x250]
inc esi
mov dword [ebp - 0x250], esi
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov dword [edx], edi
mov dword [edi + 4], edx
mov dword [eax], edx
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10018d10
jmp 0x10018d7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi]
lea ecx, [ebp - 0x24c]
mov eax, dword [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], ecx
cmp esi, edi
je 0x10018db9
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x260]
call fcn.10018ee0
mov esi, dword [esi]
cmp esi, edi
jne 0x10018da4
mov ecx, dword [ebp - 0x24c]
mov eax, dword [ebp - 0x248]
cmp ecx, eax
je 0x10018e47
sub eax, ecx
mov edx, 4
sar eax, 2
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100227d2
mov edx, dword [ebp - 0x248]
add esp, 4
mov esi, dword [ebp - 0x24c]
xor ecx, ecx
mov dword [ebp - 0x23c], eax
mov eax, edx
sub eax, esi
sar eax, 2
test eax, eax
je 0x10018e35
mov edi, dword [ebp - 0x23c]
mov eax, dword [esi + ecx*4]
mov dword [edi + ecx*4], eax
inc ecx
mov edx, dword [ebp - 0x248]
mov eax, edx
mov esi, dword [ebp - 0x24c]
sub eax, esi
sar eax, 2
cmp ecx, eax
jb 0x10018e11
mov edi, dword [ebp - 0x254]
mov eax, dword [ebp - 0x23c]
sub edx, esi
sar edx, 2
mov dword [eax + edx*4], 0
mov eax, dword [edi + 4]
mov dword [eax], 0
mov eax, dword [edi]
test eax, eax
je 0x10018e6c
mov esi, dword [eax]
push 0x234
push eax
call fcn.10022487
add esp, 8
mov eax, esi
test esi, esi
jne 0x10018e56
push 0x234
push edi
call fcn.10022487
mov edx, dword [ebp - 0x24c]
add esp, 8
test edx, edx
je 0x10018eb3
mov ecx, dword [ebp - 0x244]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10018ea9
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018ed6
push ecx
push edx
call fcn.10022487
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x23c]
xor ecx, ebp
pop edi
pop esi
call fcn.1002225a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.list_too_long
call fcn.10020dd8
call fcn.1002b828
int3