Function at 0x40a340
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cf560
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x5053a4]
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
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x18], 0
call fcn.00408680
mov dword [ebp - 4], 0
or ecx, 0xffffffff
mov eax, dword [ebp - 0x18]
cmp dword [eax - 0xc], 0
jne 0x40a3a2
xor ebx, ebx
jmp 0x40a628
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
xorps xmm0, xmm0
or ecx, edx
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
jge 0x40a3cd
push 0
lea ecx, [ebp - 0x18]
call fcn.00408460
mov eax, dword [ebp - 0x18]
push 0x4f6684
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00405d60
add esp, 4
xorps xmm0, xmm0
mov byte [ebp - 4], 1
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.0040f890
mov dword [ebp - 0x20], eax
push 0
mov byte [ebp - 4], 2
push 2
mov dword [ebp - 0x258], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a526
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a51f
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea eax, [ebp - 0x258]
push eax
push edi
call ebx
test eax, eax
je 0x40a51f
lea eax, [ebp - 0x234]
mov dword [ebp - 0x14], 0
push eax
lea ecx, [ebp - 0x14]
call fcn.00408680
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
mov esi, dword [eax - 0xc]
test esi, esi
js 0x40a5be
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x40a497
push esi
lea ecx, [ebp - 0x14]
call fcn.00408460
mov eax, dword [ebp - 0x14]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004af1ba
mov eax, dword [ebp - 0x14]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x40a5be
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x14]
push 0x4f61c8
push 0x4f6688
mov word [eax + esi*2], cx
lea ecx, [ebp - 0x14]
call fcn.004068c0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040ff50
mov eax, dword [ebp - 0x264]
mov byte [ebp - 4], 2
mov dword [eax + 0x14], 0
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a50d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x258]
push eax
push edi
call ebx
test eax, eax
jne 0x40a452
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x28]
xor edi, edi
mov ebx, dword [ebp - 0x2c]
sub eax, ebx
mov edx, dword [ebp - 0x20]
sar eax, 2
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a5fa
mov esi, dword [edx]
cmp esi, edx
je 0x40a5ee
nop dword [eax + eax]
mov eax, dword [ebx]
test eax, eax
je 0x40a599
mov ecx, dword [esi + 0x10]
cmp dword [ecx - 0xc], 0
jl 0x40a599
push eax
push ecx
call fcn.004a7724
add esp, 8
test eax, eax
je 0x40a596
sub eax, dword [esi + 0x10]
sar eax, 1
cmp eax, 0xffffffff
je 0x40a596
movsd xmm0, qword [0x4f8088]
movd xmm1, edi
cvtdq2pd xmm1, xmm1
call fcn.004cdf10
cvttsd2si eax, xmm0
add dword [ebp - 0x25c], eax
mov edx, dword [ebp - 0x20]
cmp byte [esi + 0xd], 0
jne 0x40a5e3
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x40a5c8
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x40a5e3
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x40a5b2
jmp 0x40a5e3
push 0x80070057
call fcn.00408740
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40a5e1
cmp esi, dword [eax + 8]
jne 0x40a5e1
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x40a5d1
mov esi, eax
cmp esi, edx
jne 0x40a550
mov eax, dword [ebp - 0x14]
inc edi
add ebx, 4
cmp edi, eax
jb 0x40a541
push edx
push dword [edx]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040f340
push dword [ebp - 0x20]
call fcn.004364d2
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00406bb0
mov eax, dword [ebp - 0x18]
or ecx, 0xffffffff
mov ebx, dword [ebp - 0x25c]
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x40a644
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.004a4bf6
mov esp, ebp
pop ebp
ret