Function at 0x10016e60
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x1003e966
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
push ebx
push ebp
push esi
mov esi, dword [esp + 0x180]
push edi
lea ecx, [esp + 0x34]
lea eax, [esi + 0xc]
xor ebx, ebx
push eax
push ecx
mov byte [esp + 0x1b], bl
call fcn.100172b0
add esi, 0x1c
lea edx, [esp + 0x2c]
push esi
push edx
mov dword [esp + 0x18c], ebx
call fcn.100172b0
add esp, 0x10
lea ecx, [esp + 0x44]
mov byte [esp + 0x17c], 2
call fcn.100170f0
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x48]
push ebx
rep stosd dword es:[edi], eax
push 2
mov byte [esp + 0x184], 3
mov dword [esp + 0x50], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.10017290
lea eax, [esp + 0x48]
mov dword [esp + 0x44], esi
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
setne al
mov byte [esp + 0x170], al
cmp al, bl
mov byte [esp + 0x17c], 4
je 0x10017032
mov ebp, dword [sym.imp.MSVCRT.dll_tolower]
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x18], cl
lea ecx, [esp + 0x18]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea edi, [esp + 0x6c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x1c]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x17c], 5
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x10016f81
xor esi, esi
jmp 0x10016f88
mov ecx, dword [esp + 0x1c]
lea esi, [ecx + eax]
lea ecx, [esp + 0x14]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Freeze_void_]
mov edx, dword [esp + 0x18]
push ebp
push edi
push esi
push edx
call fcn.100173c0
mov eax, dword [esp + 0x38]
add esp, 0x10
cmp eax, ebx
jne 0x10016faf
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
jne 0x10017070
mov eax, dword [esp + 0x38]
cmp eax, ebx
jne 0x10016fdb
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
push eax
lea ecx, [esp + 0x20]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [edx]
je 0x10016ffb
mov byte [esp + 0x13], 1
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x180], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x48]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
setne al
cmp al, bl
mov byte [esp + 0x170], al
jne 0x10016f24
lea ecx, [esp + 0x44]
mov byte [esp + 0x17c], 8
call fcn.10017290
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x100170cd
mov al, byte [ecx - 1]
cmp al, bl
je 0x100170c3
cmp al, 0xff
je 0x100170c3
dec al
mov byte [ecx - 1], al
jmp 0x100170cd
push 1
lea ecx, [esp + 0x18]
mov byte [esp + 0x180], 4
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea ecx, [esp + 0x44]
mov byte [esp + 0x17c], 6
call fcn.10017270
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [esp + 0x38]
mov dword [esp + 0x180], 0xffffffff
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
xor al, al
jmp 0x100170d1
dec ecx
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x174]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x170
ret