Function at 0x409100
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4a05e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x450
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 2
mov dword [esp + 0x46c], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x409165
mov ecx, 0x8a
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4091a1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x470]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40919a
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40919a
mov edx, dword [esp + 0x470]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
xor eax, eax
jmp 0x409480
mov eax, 0x4b7dd0
push ebx
test eax, eax
je 0x4093ac
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
mov ebx, eax
cmp ebx, ebp
je 0x4093ac
mov ecx, 0x4b7dcc
test ecx, ecx
jne 0x4091d1
mov dword [esp + 0x10], ebp
jmp 0x4091dc
push 0x4b7dcc
call esi
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x474]
xor edi, edi
mov edx, dword [esi - 8]
lea eax, [esi + edx*2]
cmp esi, eax
mov dword [esp + 0x14], eax
jae 0x4093ac
mov ebp, dword [sym.imp.MSVCRT.dll_wcsstr]
push 0x4b7dd0
push esi
call ebp
add esp, 8
test eax, eax
je 0x40921f
lea esi, [eax + ebx*2]
push 0x4b7dd0
push esi
inc edi
call ebp
add esp, 8
test eax, eax
jne 0x40920c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x14]
cmp esi, eax
jb 0x4091f7
test edi, edi
jle 0x4093ac
lea ecx, [esp + 0x474]
call fcn.00406ea0
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x474]
sub ebp, ebx
imul ebp, edi
mov ecx, dword [eax - 8]
mov dword [esp + 0x18], ecx
add ebp, ecx
mov ecx, dword [eax - 4]
mov dword [esp + 0x24], ebp
cmp ecx, ebp
jl 0x409270
cmp dword [eax - 0xc], 1
jle 0x4092c1
lea edi, [eax - 0xc]
push ebp
lea ecx, [esp + 0x478]
mov dword [esp + 0x18], edi
mov esi, eax
call fcn.00406c50
test eax, eax
je 0x4093ac
mov ecx, dword [edi + 4]
lea eax, [ebp + ebp + 2]
shl ecx, 1
cmp eax, ecx
jb 0x4092b4
mov edi, dword [esp + 0x474]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x14]
push edi
call fcn.00406f90
mov eax, dword [esp + 0x474]
mov ecx, dword [eax - 8]
mov edi, eax
lea ecx, [eax + ecx*2]
cmp eax, ecx
mov dword [esp + 0x14], ecx
jae 0x4093a9
push 0x4b7dd0
push edi
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov esi, eax
add esp, 8
test esi, esi
je 0x40938b
mov eax, dword [esp + 0x10]
mov edx, eax
neg edx
shl edx, 0x1f
sub edx, eax
inc edx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x474]
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, dword [edx - 4]
sub eax, edx
mov edx, dword [esp + 0x20]
sar eax, 1
sub ecx, eax
sub edi, eax
mov eax, dword [esp + 0x10]
sub ecx, ebx
add edx, edi
add eax, eax
lea ebp, [ecx + ecx]
lea ecx, [esi + ebx*2]
push ebp
add eax, esi
shl edx, 1
push ecx
push edx
push eax
mov dword [esp + 0x38], eax
call fcn.00409f10
mov eax, dword [esp + 0x20]
lea ecx, [edi + edi + 2]
add eax, eax
push eax
push 0x4b7dcc
push ecx
push esi
call fcn.00405800
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x30]
sub edx, ebx
push 0x4b7dd0
mov word [edi + ebp], 0
mov ebp, dword [esp + 0x3c]
add ebp, edx
push edi
mov dword [esp + 0x40], ebp
call dword [sym.imp.MSVCRT.dll_wcsstr]
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x409300
mov ebp, dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [esp + 0x14]
cmp edi, eax
jb 0x4092d5
mov eax, dword [esp + 0x474]
mov dword [eax - 8], ebp
push 0x4b7dcc
push 0x4b7dc4
lea ecx, [esp + 0x47c]
call fcn.00409f40
mov ebp, dword [esp + 0x470]
mov esi, dword [sym.imp.MSVCRT.dll__wcsicmp]
xor ebx, ebx
lea eax, [esp + 0x50]
push ebp
push eax
call esi
add esp, 8
test eax, eax
jne 0x40942a
mov edx, dword [esp + 0x34]
mov ecx, 0x81
lea edi, [esp + 0x25a]
mov word [esp + 0x258], ax
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x258]
push 0x102
push ecx
push edx
mov ebx, edx
stosw word es:[edi], ax
call fcn.00409000
mov eax, dword [esp + 0x480]
lea edx, [esp + 0x264]
push edx
push eax
call esi
add esp, 0x14
test eax, eax
je 0x40943d
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
push ecx
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4093d1
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x474]
mov edx, dword [0x4b7084]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40947d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40947d
mov edx, dword [esp + 0x474]
add edx, 0xfffffff4
push edx
call fcn.00437568
add esp, 4
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x45c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x45c
ret