Function at 0x4087e0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4146ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
mov al, byte [esp + 0x13]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0x128
mov byte [esp + 0x18], al
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 + 0x16c]
lea edx, [esp + 0x14]
push ecx
push edx
mov dword [esp + 0x16c], ebx
call fcn.00406400
add esp, 8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x164], 1
cmp eax, ebx
je 0x40886a
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0040a220
push eax
call dword [sym.imp.MSVCRT.dll__mbslwr]
add esp, 4
mov edi, 0x41b350
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push 0x41b350
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 ecx, dword [esp + 0x1c]
add ecx, 0xfffffffc
cmp eax, ecx
je 0x4088a7
lea edx, [esp + 0x14]
push 0x41b350
push edx
call fcn.004067f0
add esp, 8
cmp dword [esp + 0x1c], ebx
je 0x4088c2
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0040a220
push eax
call dword [sym.imp.MSVCRT.dll__mbslwr]
add esp, 4
lea eax, [esp + 0x34]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x408a06
mov edi, dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea esi, [esp + 0x58]
shr esi, 0x10
mov cl, byte [esp + 0x13]
push ebx
mov byte [esp + 0x28], cl
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
cmp si, bx
mov byte [esp + 0x164], 2
je 0x408916
lea edx, [esp + 0x58]
lea eax, [esp + 0x24]
push edx
push eax
call fcn.004065e0
add esp, 8
jmp 0x408932
lea ecx, [esp + 0x58]
test ecx, ecx
je 0x408932
xor edx, edx
lea eax, [esp + 0x58]
mov dx, ax
push ebx
push edx
lea ecx, [esp + 0x2c]
call fcn.00409d00
mov eax, dword [esp + 0x2c]
mov byte [esp + 0x164], 3
cmp eax, ebx
je 0x408957
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
call fcn.0040a220
push eax
call dword [sym.imp.MSVCRT.dll__mbslwr]
add esp, 4
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call edi
add esp, 8
test al, al
jne 0x4089b6
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x164], 1
cmp ecx, ebx
je 0x408996
mov al, byte [ecx - 1]
cmp al, bl
je 0x40898c
cmp al, 0xff
je 0x40898c
dec al
mov byte [ecx - 1], al
jmp 0x408996
dec ecx
push ecx
call fcn.004134f0
add esp, 4
lea eax, [esp + 0x34]
mov dword [esp + 0x28], ebx
push eax
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4089ff
jmp 0x4088e2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x3c]
push 1
lea ecx, [esp + 0x28]
mov byte [esp + 0x168], 1
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 + 0x18]
cmp ecx, ebx
je 0x4089fb
mov al, byte [ecx - 1]
cmp al, bl
je 0x4089f1
cmp al, 0xff
je 0x4089f1
dec al
mov byte [ecx - 1], al
mov eax, esi
jmp 0x408a2d
dec ecx
push ecx
call fcn.004134f0
add esp, 4
mov eax, esi
jmp 0x408a2d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x408a2a
mov al, byte [ecx - 1]
cmp al, bl
je 0x408a20
cmp al, 0xff
je 0x408a20
dec al
mov byte [ecx - 1], al
jmp 0x408a2a
dec ecx
push ecx
call fcn.004134f0
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 4