Function at 0x4012f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40314d
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x284], edi
mov ebx, ecx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x25c], ebx
xor eax, eax
mov dword [ebp - 0x25c], ebx
xor esi, esi
mov dword [ebp - 0x250], eax
xorps xmm0, xmm0
mov dword [ebp - 0x258], esi
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x14], eax
push 0x228
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x244]
mov dword [ebp - 0x248], 0x22c
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
je 0x4013b5
lea ecx, [ebp - 0x248]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4013f0
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
lea ecx, [ebp - 0x1c]
mov dword [ebx + 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebx + 8], 0
call fcn.00401c10
mov eax, ebx
jmp 0x401634
cmp dword [edi + 0x10], 0
je 0x40151f
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x278], 0
mov dword [ebp - 0x268], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x264], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401421
sub ecx, edx
lea eax, [ebp - 0x224]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x278]
call fcn.00401d30
or esi, 2
mov ebx, edi
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x258], esi
jb 0x401456
mov ebx, dword [edi]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x278]
mov edx, dword [ebp - 0x278]
cmp esi, 8
mov edi, dword [edi + 0x10]
mov eax, dword [ebp - 0x268]
cmovae ecx, edx
mov dword [ebp - 0x24c], edx
mov dword [ebp - 0x25c], ecx
mov dword [ebp - 0x27c], edi
cmp edi, eax
ja 0x4014c9
test edi, edi
je 0x40152b
sub eax, edi
mov edx, ecx
inc eax
lea eax, [ecx + eax*2]
mov dword [ebp - 0x280], eax
sub eax, edx
sar eax, 1
je 0x4014bd
movzx ecx, word [ebx]
nop dword [eax]
cmp word [edx], cx
je 0x4014cd
add edx, 2
sub eax, 1
jne 0x4014b0
mov esi, dword [ebp - 0x264]
mov edx, dword [ebp - 0x24c]
xor bl, bl
jmp 0x40152d
mov esi, edi
mov eax, ebx
test edi, edi
je 0x4014f1
mov edi, edx
sub edi, ebx
nop dword [eax]
mov cx, word [eax + edi]
cmp cx, word [eax]
jne 0x40150e
add eax, 2
sub esi, 1
jne 0x4014e0
sub edx, dword [ebp - 0x25c]
mov esi, dword [ebp - 0x264]
sar edx, 1
cmp edx, 0xffffffff
mov edx, dword [ebp - 0x24c]
jne 0x40152b
xor bl, bl
jmp 0x40152d
mov edi, dword [ebp - 0x27c]
add edx, 2
mov eax, dword [ebp - 0x280]
jmp 0x4014a3
mov edx, dword [ebp - 0x278]
mov esi, dword [ebp - 0x264]
mov bl, 1
mov eax, dword [ebp - 0x258]
test al, 2
je 0x401574
and eax, 0xfffffffd
mov dword [ebp - 0x258], eax
cmp esi, 8
jb 0x401574
lea ecx, [esi*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40156a
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4015f7
push ecx
push edx
call fcn.0040242f
add esp, 8
test bl, bl
mov ebx, dword [ebp - 0x250]
je 0x4015a4
cmp ebx, dword [ebp - 0x254]
je 0x4015d3
mov edi, ebx
lea esi, [ebp - 0x248]
add ebx, 0x22c
mov ecx, 0x8b
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x18], ebx
mov edi, dword [ebp - 0x254]
mov esi, dword [ebp - 0x260]
lea eax, [ebp - 0x248]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4015fd
mov esi, dword [ebp - 0x258]
mov edi, dword [ebp - 0x284]
jmp 0x4013f0
lea eax, [ebp - 0x248]
push eax
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00401fd0
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], ebx
jmp 0x4015aa
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x288]
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], edi
call fcn.00401c10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004023ec
mov esp, ebp
pop ebp
ret