Function at 0x406560
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x4334c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x434428]
push ebx
push esi
push edi
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4340e0]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x24c], edi
cmp eax, dword [ecx + 4]
jg 0x4067c8
cmp dword [0x433498], 0
jne 0x406735
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
call fcn.004073b0
test al, al
jne 0x40661a
push esi
lea eax, [ebp - 0x1c]
push str._05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0xc
cmp esi, 0x433488
je 0x40672d
mov edx, dword [0x43349c]
cmp edx, 0x10
jb 0x4066ea
mov ecx, dword [0x433488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4067fe
jmp 0x4066e0
push 0
push 2
mov dword [ebp - 0x24c], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov ebx, eax
lea eax, [ebp - 0x244]
push 0
push eax
call fcn.00410340
add esp, 0xc
mov dword [ebp - 0x248], 0x22c
lea eax, [ebp - 0x248]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x406687
cmp dword [ebp - 0x240], esi
je 0x40667b
lea eax, [ebp - 0x248]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x406660
jmp 0x406687
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x24c], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push dword [ebp - 0x24c]
lea eax, [ebp - 0x1c]
push str._05d__05d
push eax
call fcn.00401250
mov esi, eax
add esp, 0x10
cmp esi, 0x433488
je 0x40672d
mov edx, dword [0x43349c]
cmp edx, 0x10
jb 0x4066ea
mov ecx, dword [0x433488]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4066e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x406803
push edx
push ecx
call fcn.0040e748
add esp, 8
mov dword [0x433498], 0
mov dword [0x43349c], 0xf
mov byte [0x433488], 0
movups xmm0, xmmword [esi]
movups xmmword [0x433488], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [0x433498], xmm0
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov dword [esi + 0x14], 0xf
lea ecx, [ebp - 0x1c]
call fcn.00401390
mov dword [edi], 0
mov ebx, 0x433488
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
cmp dword [0x43349c], 0x10
mov eax, dword [0x433498]
cmovae ebx, dword [0x433488]
mov dword [ebp - 0x24c], eax
cmp eax, 0x10
jae 0x406779
movups xmm0, xmmword [ebx]
mov esi, 0xf
movups xmmword [edi], xmm0
jmp 0x4067af
mov esi, eax
mov ecx, edi
mov eax, 0x7fffffff
or esi, 0xf
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040cca0
mov ecx, eax
mov eax, dword [ebp - 0x24c]
inc eax
mov dword [edi], ecx
push eax
push ebx
push ecx
call fcn.0040faa0
mov eax, dword [ebp - 0x24c]
add esp, 0xc
mov ecx, dword [ebp - 4]
mov dword [edi + 0x10], eax
xor ecx, ebp
mov dword [edi + 0x14], esi
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.0040e93b
mov esp, ebp
pop ebp
ret
push 0x4340e0
call fcn.0040e865
add esp, 4
cmp dword [0x4340e0], 0xffffffff
jne 0x40659f
push 0x427930
call fcn.0040eba8
push 0x4340e0
call fcn.0040e81b
add esp, 8
jmp 0x40659f
call fcn.00411d1f
call fcn.00411d1f
int3