Function at 0x402c70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x168
mov eax, dword [0x40d004]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
push edi
push 0
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x402ce9
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
mov edx, str.Failed_to_create_process_snapshot._Error_code:
call fcn.004019f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
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___unsigned_long_int_]
push 0x401c10
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
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004079cd
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x402d4c
push esi
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::cerr]
mov edx, str.Failed_to_retrieve_process_information._Error_code:
call fcn.004019f0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
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___unsigned_long_int_]
push 0x401c10
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
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.004079cd
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x18], 0
nop dword [eax]
nop dword [eax + eax]
xorps xmm0, xmm0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x64]
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x34], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402d80
sub ecx, edx
lea eax, [esp + 0x64]
push ecx
push eax
lea ecx, [esp + 0x28]
call fcn.00403a20
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
cmp dword [esp + 0x34], 0x10
mov eax, ecx
mov edi, dword [esp + 0x20]
cmovae edx, edi
cmp dword [ecx + 0x14], 0x10
mov esi, dword [ecx + 0x10]
jb 0x402db9
mov eax, dword [ecx]
cmp esi, dword [esp + 0x30]
jne 0x402e19
sub esi, 4
jb 0x402dd5
mov ecx, dword [eax]
cmp ecx, dword [edx]
jne 0x402dda
add eax, 4
add edx, 4
sub esi, 4
jae 0x402dc4
cmp esi, 0xfffffffc
je 0x402e0e
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x402e07
cmp esi, 0xfffffffd
je 0x402e0e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x402e07
cmp esi, 0xfffffffe
je 0x402e0e
mov cl, byte [eax + 2]
cmp cl, byte [edx + 2]
jne 0x402e07
cmp esi, 0xffffffff
je 0x402e0e
mov al, byte [eax + 3]
cmp al, byte [edx + 3]
je 0x402e0e
sbb eax, eax
or eax, 1
jmp 0x402e10
xor eax, eax
mov byte [esp + 0x13], 1
test eax, eax
je 0x402e1e
mov byte [esp + 0x13], 0
mov eax, dword [esp + 0x34]
cmp eax, 0x10
jb 0x402e4e
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x402e44
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402e6f
push ecx
push edi
call fcn.00407a0b
add esp, 8
cmp byte [esp + 0x13], 0
mov esi, dword [esp + 0x14]
jne 0x402e75
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402d60
jmp 0x402e7d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x18]
pop edi
pop esi
xor ecx, esp
call fcn.004079cd
mov esp, ebp
pop ebp
ret