Function at 0x421e50
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x15c
mov eax, dword [0x498040]
xor eax, esp
mov dword [esp + 0x158], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x18]
push eax
mov dword [esp + 0x14], eax
call fcn.00422d50
cmp dword [esp + 0x2c], 7
lea ecx, [esp + 0x30]
lea eax, [esp + 0x18]
cmova eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.MSVCP140.dll__Stat]
add esp, 8
cmp eax, 8
je 0x421eb0
cmp eax, 0xffffffff
je 0x421eb0
xor bl, bl
jmp 0x421eb2
mov bl, 1
mov ecx, dword [esp + 0x2c]
cmp ecx, 7
jbe 0x421ef0
mov edx, dword [esp + 0x18]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x421ee6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x421ee6
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004250be
add esp, 8
test bl, bl
jne 0x421fae
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x421f6d
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x421f66
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
lea ecx, [esp + 0x5c]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421f30
sub ecx, edx
mov eax, esi
cmp dword [esi + 0x14], 0xf
jbe 0x421f43
mov eax, dword [esi]
mov edx, dword [esi + 0x10]
push ecx
lea ecx, [esp + 0x60]
push ecx
mov ecx, eax
call fcn.0041e7c0
add esp, 8
test eax, eax
je 0x421fc7
lea eax, [esp + 0x38]
push eax
push edi
call ebx
test eax, eax
jne 0x421f27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.____Process
call fcn.004018e0
cmp dword [esi + 0x14], 0xf
mov ecx, dword [esi + 0x10]
jbe 0x421f88
mov esi, dword [esi]
push ecx
mov edx, esi
mov ecx, eax
call fcn.00401bf0
add esp, 4
mov edx, str._not_found_
mov ecx, eax
call fcn.004018e0
push 0x401b00
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.00424d75
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
mov eax, dword [esp + 0x40]
test eax, eax
je 0x421f6d
push eax
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x422041
cmp edi, 0xffffffff
je 0x422041
push dword [esp + 0x10]
call fcn.00423ab0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x422007
push edi
call ebx
jmp 0x421fae
mov ecx, dword [esp + 0x14]
push eax
push edi
call fcn.00422060
push 0x8000
push 0
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push edi
call ebx
mov ecx, dword [esp + 0x164]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00424d75
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.____Error:_Failed_to_obtain_handle_to_the_process_
jmp 0x421f9c