Function at 0x100166c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x10137920]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x228
mov edi, ecx
lea ecx, [ebp - 0x450]
mov ebx, edx
push 0
push ecx
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], ebx
call fcn.10066620
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x454], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea edx, [ebp - 0x454]
mov esi, eax
push edx
push esi
mov dword [ebp - 0x468], esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10016747
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006656c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x454]
push eax
push esi
mov byte [ebp - 0x455], 0
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x10016926
mov ecx, dword [ebp - 0x460]
call fcn.1000b040
push eax
lea ecx, [ebp - 0x430]
push ecx
call fcn.10068f48
add esp, 8
test eax, eax
jne 0x1001690a
cmp dword [ebx + 0x10], eax
jne 0x100167fb
mov eax, dword [edi + 4]
lea edx, [ebp - 0x44c]
cmp edx, eax
jae 0x100167d0
mov ecx, dword [edi]
cmp ecx, edx
ja 0x100167d0
mov esi, edx
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x100167b2
mov eax, edi
call fcn.10017b30
mov eax, dword [edi + 4]
test eax, eax
je 0x100167eb
mov ecx, dword [edi]
mov edx, dword [ecx + esi*4]
mov dword [eax], edx
add dword [edi + 4], 4
mov byte [ebp - 0x455], 1
jmp 0x1001690a
cmp eax, dword [edi + 8]
jne 0x100167dc
mov eax, edi
call fcn.10017b30
mov eax, dword [edi + 4]
test eax, eax
je 0x100167eb
mov ecx, dword [ebp - 0x44c]
mov dword [eax], ecx
add dword [edi + 4], 4
mov byte [ebp - 0x455], 1
jmp 0x1001690a
mov edx, dword [ebp - 0x44c]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x464], esi
test esi, esi
je 0x1001690a
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.10066620
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x1001690a
xor eax, eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016880
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.1000abb0
mov ecx, dword [ebx + 0x10]
mov esi, 8
cmp dword [ebx + 0x14], esi
jb 0x100168b3
mov eax, dword [ebx]
jmp 0x100168b5
mov eax, ebx
push ecx
push 0
push eax
lea ecx, [ebp - 0x228]
call fcn.10009d20
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0x214], esi
jb 0x100168e1
mov edx, dword [ebp - 0x228]
push edx
call fcn.10065453
add esp, 4
test bl, bl
je 0x100168f7
lea eax, [ebp - 0x44c]
call fcn.10017950
mov byte [ebp - 0x455], 1
mov eax, dword [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x45c]
mov esi, dword [ebp - 0x468]
lea ecx, [ebp - 0x454]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10016764
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x455]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1006656c
mov esp, ebp
pop ebp
ret