Function at 0x405370
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 0x408ec5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x4e8
mov eax, dword [0x40d00c]
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 - 0x270], edi
mov dword [ebp - 0x26c], edi
push 0
push 2
mov dword [ebp - 0x278], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x26c], esi
push 0
push 0
cmp esi, 0xffffffff
jne 0x40546f
mov dword [edi], 0
add edi, 4
mov dword [ebp - 0x26c], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00407000
mov dword [edi], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x270]
lea esi, [eax + 0xc]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [ebp - 4], 1
mov ecx, esi
push 0x10
mov dword [eax], 0x3f800000
call fcn.004031c0
mov edx, dword [edi]
lea eax, [ebp - 0x274]
push eax
push 0x10
mov ecx, esi
mov dword [ebp - 0x274], edx
call fcn.00403030
mov eax, dword [ebp - 0x270]
mov dword [eax + 0x18], 7
mov dword [eax + 0x1c], 8
jmp 0x405845
xorps xmm0, xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
movups xmmword [ebp - 0x24], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00407000
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
push 0x10
mov dword [ebp - 0x34], 0x3f800000
call fcn.004031c0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push eax
push 0x10
call fcn.00403030
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x18], 8
push 0x228
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 4
push 0
push eax
mov dword [ebp - 0x268], 0x22c
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405714
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x284], 0
lea ecx, [ebp - 0x244]
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405556
sub ecx, edx
lea eax, [ebp - 0x244]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x294]
call fcn.004041b0
lea edx, [ebp - 0x294]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2ac]
call fcn.004021a0
movups xmm0, xmmword [eax]
mov ecx, 0x8b
lea esi, [ebp - 0x268]
lea edi, [ebp - 0x4e0]
movups xmmword [ebp - 0x4f8], xmm0
movq xmm0, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
movq qword [ebp - 0x4e8], xmm0
mov byte [eax], 0
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x30]
mov esi, dword [eax]
lea eax, [ebp - 0x4f8]
push eax
mov edi, dword [esi + 4]
push edi
push esi
call fcn.004076d0
mov edx, dword [ebp - 0x2c]
mov ecx, 0x6f74ad
sub ecx, edx
cmp ecx, 1
jb 0x405801
inc edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x2c], edx
mov dword [esi + 4], eax
mov dword [edi], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
push eax
add eax, 8
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00407030
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x4e4]
cmp edx, 0x10
jb 0x405655
mov ecx, dword [ebp - 0x4f8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40564b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057fb
push edx
push ecx
call fcn.00407a25
add esp, 8
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x298]
cmp edx, 0x10
jb 0x405693
mov ecx, dword [ebp - 0x2ac]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405689
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057fb
push edx
push ecx
call fcn.00407a25
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x280]
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 0xf
mov byte [ebp - 0x2ac], 0
cmp edx, 8
jb 0x4056f2
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4056e8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4057fb
push edx
push ecx
call fcn.00407a25
add esp, 8
mov esi, dword [ebp - 0x26c]
lea eax, [ebp - 0x268]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405530
mov edi, dword [ebp - 0x270]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x34]
lea esi, [edi + 4]
push 0
mov dword [edi], eax
mov dword [ebp - 0x278], esi
push 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00407000
mov ecx, dword [ebp - 0x30]
mov dword [esi], ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [edi + 0x1c], eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.00406c80
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
sar eax, 2
cmp eax, 0x10
jae 0x4057aa
push 0x10
lea ecx, [ebp - 0x28]
call fcn.004031c0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x26c]
push eax
push 0x10
call fcn.00403030
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x18], 8
test edx, edx
je 0x40582b
mov ecx, dword [ebp - 0x20]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x40580c
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x40580c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push str.list_T__too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
push ecx
push edx
call fcn.00407a25
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x30]
call fcn.00406c80
push 0x24c
push dword [ebp - 0x30]
call fcn.00407a25
add esp, 8
mov eax, edi
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.00407a14
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret