Function at 0x402440
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 0x622f56
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x478
mov eax, dword [0x6b94f8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x238]
xor eax, eax
mov dword [ebp - 0x484], esi
push eax
push 0x6a33d4
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
call fcn.00402c50
push 0x22c
lea eax, [ebp - 0x480]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.00528630
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x484], eax
cmp eax, 0xffffffff
jne 0x402553
xor eax, eax
mov dword [esi + 0x10], 0
push eax
mov dword [esi + 0x14], 7
mov ecx, esi
push 0x6a33d4
mov word [esi], ax
call fcn.00402c50
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x40275f
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402544
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402781
push edx
push ecx
call fcn.0050f532
add esp, 8
jmp 0x40275f
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x480], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40272e
xor eax, eax
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x45c]
mov dword [ebp - 0x23c], 7
mov word [ebp - 0x250], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4025a0
sub ecx, edx
lea eax, [ebp - 0x45c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x250]
call fcn.00402c50
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x478]
cmp edi, dword [ebx + 0xc]
je 0x402635
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x402615
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40260b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402781
push edx
push ecx
call fcn.0050f532
add esp, 8
lea eax, [ebp - 0x480]
push eax
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402573
jmp 0x40272e
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00528630
add esp, 0xc
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4026f2
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402681
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402c50
cmp dword [ebp - 0x228], 0
jne 0x4026f2
lea eax, [ebp - 0x238]
push eax
push edi
call fcn.00402790
cmp dword [ebp - 0x228], 0
jne 0x4026f2
lea ecx, [ebp - 0x45c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4026d0
sub ecx, edx
lea eax, [ebp - 0x45c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x238]
call fcn.00402c50
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x40272e
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x402724
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402786
push edx
push ecx
call fcn.0050f532
add esp, 8
push dword [ebp - 0x484]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x238]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x228]
movq qword [esi + 0x10], xmm0
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.0050eeb2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.0052e0c0
call fcn.0052e0c0
int3