Function at 0x405c70
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x407c6b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c8
mov eax, dword [0x40c008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x2bc], esi
cmp esi, 0xffffffff
je 0x40606f
mov edi, 7
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], edi
mov word [ebp - 0x70], ax
push 0x228
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2b4]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x2b8], 0x22c
lea eax, [ebp - 0x2b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x405d30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40606f
xor eax, eax
mov dword [ebp - 0x88], 0
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 7
lea edx, [ecx + 2]
mov word [ebp - 0x88], ax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405d60
sub ecx, edx
lea eax, [ebp - 0x294]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x88]
call fcn.00402240
mov byte [ebp - 4], 1
lea esi, [ebp - 0x16]
mov ecx, dword [ebp - 0x2b0]
nop
mov eax, 0xcccccccd
add esi, 0xfffffffe
mul ecx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
add ecx, 0x30
mov word [esi], cx
mov ecx, edx
test ecx, ecx
jne 0x405d90
lea eax, [ebp - 0x16]
mov dword [ebp - 0x2d4], edx
mov dword [ebp - 0x2c4], edx
mov dword [ebp - 0x2c0], 7
cmp esi, eax
je 0x405dde
sub eax, esi
lea ecx, [ebp - 0x2d4]
sar eax, 1
push eax
push esi
call fcn.00402240
cmp edi, 8
jb 0x405e15
mov ecx, dword [ebp - 0x70]
lea edx, [edi*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405e0b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406016
push edx
push ecx
call fcn.00406d23
add esp, 8
movups xmm0, xmmword [ebp - 0x2d4]
push 0x4093e0
lea edx, [ebp - 0x88]
movups xmmword [ebp - 0x70], xmm0
lea ecx, [ebp - 0x2d4]
movq xmm0, qword [ebp - 0x2c4]
movq qword [ebp - 0x60], xmm0
call fcn.004023a0
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x58]
call fcn.00405a50
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c0]
cmp edx, 8
jb 0x405e9c
mov ecx, dword [ebp - 0x2d4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405e92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406016
push edx
push ecx
call fcn.00406d23
add esp, 8
mov ecx, dword [0x40c570]
lea edx, [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x2c4], 0
cmp dword [ebp - 0x44], 8
push eax
cmovae edx, dword [ebp - 0x58]
push eax
mov word [ebp - 0x2d4], ax
mov eax, dword [ebp - 0x48]
add eax, eax
mov dword [ebp - 0x2c0], 7
push 0x89
push eax
call fcn.00402c60
add esp, 0x10
test eax, eax
jne 0x405f9d
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x405f25
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f1b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406016
push edx
push ecx
call fcn.00406d23
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
mov byte [ebp - 4], al
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x405f79
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405f6f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406016
push edx
push ecx
call fcn.00406d23
add esp, 8
mov esi, dword [ebp - 0x2bc]
lea eax, [ebp - 0x2b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40602c
mov edi, dword [ebp - 0x5c]
jmp 0x405d30
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x405fd3
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x405fc9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406016
push edx
push ecx
call fcn.00406d23
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
cmp edx, 8
jb 0x406026
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40601c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40601c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406d23
add esp, 8
mov esi, dword [ebp - 0x2bc]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x5c]
cmp edx, 8
jb 0x40606f
mov ecx, dword [ebp - 0x70]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x406065
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x406065
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00406d23
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00406a94
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret