Function at 0x406110
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4397ce
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x44a6a0]
xor eax, esp
mov dword [esp + 0x1b4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a6a0]
xor eax, esp
push eax
lea eax, [esp + 0x1cc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x124
lea eax, [esp + 0x28]
push ebx
mov dword [esp + 0x1dc], ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00424f30
add esp, 0xc
push 0x440c40
lea ecx, [esp + 0x18]
call fcn.00406800
push 0x440c40
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1d8], 1
call fcn.00406800
mov byte [esp + 0x1d4], 2
cmp dword [esp + 0x1f4], 0x10
mov eax, dword [esp + 0x1e0]
jae 0x4061b3
lea eax, [esp + 0x1e0]
push eax
lea ecx, [esp + 0x1c]
push 0x44095c
push ecx
call fcn.00406900
mov edx, dword [esp + 0x24]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
add esp, 0xc
or eax, ecx
jge 0x4061ec
push esi
lea ecx, [esp + 0x1c]
call fcn.00404740
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00423d29
push eax
call fcn.00404c60
add esp, 0xc
cmp esi, ebx
jl 0x406469
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x406469
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
push ebx
push 2
mov byte [esi + ecx], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4063aa
push 0x7f
lea edx, [esp + 0x14d]
push ebx
push edx
mov dword [esp + 0x2c], 0x128
mov byte [esp + 0x154], bl
call fcn.00424f30
add esp, 0xc
lea eax, [esp + 0x20]
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4063a3
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esp, [esp]
lea ecx, [esp + 0x44]
push 0x5c
push ecx
call fcn.00424150
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x4062e6
push 0x80
lea edx, [esp + 0x14c]
push ebx
push edx
call fcn.00424f30
lea eax, [esp + 0x50]
add esp, 0xc
mov ecx, eax
push ecx
sub esi, eax
call edi
sub eax, esi
cmp eax, ebx
jle 0x40630a
push eax
lea edx, [esp + esi + 0x49]
push edx
lea eax, [esp + 0x150]
push eax
call fcn.00428590
lea eax, [esp + 0x154]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4062d0
sub eax, edx
push eax
lea ecx, [esp + 0x14c]
push ecx
jmp 0x406301
lea eax, [esp + 0x44]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4062f0
sub eax, edx
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x1c]
call fcn.004065e0
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x406330
push esi
lea ecx, [esp + 0x18]
call fcn.00404740
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00423d29
push eax
call fcn.00404c60
add esp, 0xc
cmp esi, ebx
jl 0x406469
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x406469
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov byte [esi + ecx], bl
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp ecx, ebx
setne al
cmp eax, ebx
je 0x40643f
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.00424135
add esp, 8
cmp eax, ebx
sete al
cmp al, bl
jne 0x406449
lea eax, [esp + 0x20]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406270
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x1d4], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1d4], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4063f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x1f4], 0x10
jb 0x406413
mov ecx, dword [esp + 0x1e0]
push ecx
call fcn.004072b4
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1cc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1b4]
xor ecx, esp
call fcn.00422bc2
add esp, 0x1c4
ret
push 0x80004005
call fcn.004046c0
mov ebx, dword [esp + 0x28]
call fcn.00406020
xor ebx, ebx
test eax, eax
je 0x4063a3
mov dword [esp + 0x1c], 1
jmp 0x4063a3
push 0x80070057
call fcn.004046c0
int3