Function at 0x404930
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40681d
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x25c], ecx
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x258], eax
cmp eax, 0xffffffff
je 0x404b39
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x404b2d
nop dword [eax]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x14], 0
movups xmmword [ebp - 0x28], xmm0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4049c0
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00403ce0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
cmp esi, 7
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
cmova ecx, edi
push 1
sub esp, 8
call fcn.00405120
mov ecx, eax
add esp, 0xc
cmp ecx, 0xffffffff
je 0x404aa3
cmp dword [ebp - 0x18], ecx
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
mov dword [ebp - 0x264], 0
cmovb ecx, dword [ebp - 0x18]
cmp esi, 7
push ecx
cmova eax, edi
mov dword [ebp - 0x260], 0
push eax
lea ecx, [ebp - 0x274]
movups xmmword [ebp - 0x274], xmm0
call fcn.00403ce0
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x404a85
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404a7b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b88
push ecx
push edx
call fcn.00405491
add esp, 8
movups xmm0, xmmword [ebp - 0x274]
movups xmmword [ebp - 0x28], xmm0
mov edi, dword [ebp - 0x28]
movq xmm0, qword [ebp - 0x264]
movq qword [ebp - 0x18], xmm0
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x25c]
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x404ab3
mov ecx, dword [eax]
cmp esi, 7
lea eax, [ebp - 0x28]
push ecx
cmova eax, edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x404b56
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x404b10
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404b06
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404b88
push ecx
push edx
call fcn.00405491
add esp, 8
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x4049a0
xor esi, esi
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405453
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24c]
cmp ecx, 7
jbe 0x404b2d
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404b8e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404b8e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00405491
add esp, 8
jmp 0x404b2d