Function at 0x40a360
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 0x41d5ab
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x280
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x280], edi
xor esi, esi
mov dword [ebp - 4], 0
push 0x228
lea eax, [ebp - 0x274]
mov dword [ebp - 0x284], esi
push esi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x278], 0x22c
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x288], eax
cmp eax, 0xffffffff
je 0x40a5b5
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a5a9
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
xor eax, eax
mov dword [ebp - 0x20], esi
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40a51c
cmp dword [ebp - 0x18], edi
jne 0x40a51c
push dword [ebp - 0x270]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40a516
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x27c], 0
push eax
push 8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a49a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a516
mov ecx, dword [ebp - 0x27c]
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x30]
call fcn.0040a0e0
add esp, 4
mov esi, eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40a510
sub esp, 0x18
lea eax, [ebx + 8]
mov ecx, esp
mov dword [ebp - 0x28c], esp
push eax
call fcn.00405910
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00405910
mov byte [ebp - 4], 2
call fcn.0040d7e0
add esp, 0x30
test al, al
je 0x40a510
mov esi, dword [ebp - 0x270]
mov dword [ebp - 0x284], esi
test esi, esi
jne 0x40a537
jmp 0x40a516
mov esi, dword [ebp - 0x284]
mov edi, dword [ebp - 0x280]
lea eax, [ebp - 0x278]
push eax
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a435
mov ecx, dword [ebp - 0x34]
cmp ecx, 7
jbe 0x40a56d
mov edx, dword [ebp - 0x48]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a563
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40a599
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 7
jbe 0x40a5a9
mov edx, dword [ebp - 0x30]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a59f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a59f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
push dword [ebp - 0x288]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x1c]
cmp ecx, 7
jbe 0x40a5f1
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40a5e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40a5e7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0041c16d
add esp, 8
mov eax, esi
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.0041bed2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret