Function at 0x401290
Capabilities:
Enumerate processes

Disassembly:
mov eax, dword [0x4060ec]
sub esp, 0x23c
mov ecx, dword [eax]
push ebp
push eax
lea eax, [esp + 8]
push ecx
push eax
mov ecx, 0x4060e8
call fcn.004026f0
mov eax, dword [0x4060dc]
push eax
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0xc]
push ecx
mov ecx, 0x4060d8
call fcn.00402840
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
je 0x401408
cmp ebp, 0xffffffff
je 0x401408
push edi
lea edx, [esp + 0x18]
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x22c
push edx
push ebp
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4013f3
push esi
lea eax, [esp + 0x24]
mov ecx, 0x4060d8
push eax
call fcn.00402570
lea ecx, [esp + 0x40]
mov esi, eax
push ecx
call dword [sym.imp.ntdll.dll_wcslen]
add esp, 4
mov ecx, esi
mov edi, eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::max_size_void_const]
cmp eax, edi
jae 0x401340
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x401366
mov al, byte [ecx - 1]
test al, al
je 0x401366
cmp al, 0xff
je 0x401366
test edi, edi
jne 0x40138c
dec al
push edi
mov byte [ecx - 1], al
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x4013b0
test edi, edi
jne 0x401376
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
jmp 0x4013b0
mov eax, dword [esi + 0xc]
cmp eax, 0x1f
ja 0x401382
cmp eax, edi
jae 0x401395
push 1
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
push edi
mov ecx, esi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Copy_unsigned_int_]
mov eax, dword [esi + 4]
lea edx, [esp + 0x40]
push edi
push edx
push eax
call fcn.004022f0
add esp, 0xc
mov ecx, esi
push edi
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Eos_unsigned_int_]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
mov dword [esp + 0xc], ecx
push edx
push eax
mov ecx, 0x4060e8
mov dword [esp + 0x18], 0
call fcn.00402d60
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x1c]
push eax
push ebp
mov dword [edx + 0x10], ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40130d
pop esi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop ebp
add esp, 0x23c
ret
mov eax, 1
pop ebp
add esp, 0x23c
ret