Function at 0x1001f680
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1694
call fcn.100974c0
mov eax, dword [0x100e6018]
xor eax, esp
mov dword [esp + 0x1690], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov ebx, eax
lea eax, [esp + 0x38]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push ebx
mov dword [esp + 0x38], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1001f709
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x38], eax
je 0x1001f727
lea eax, [esp + 0x30]
push eax
push ebx
call esi
test eax, eax
jne 0x1001f6f3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1690]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0xc]
push eax
push 0
push 0x100410
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1001f7d6
lea ecx, [esp + 0x2c]
push ecx
push 0x1000
lea ecx, [esp + 0x498]
push ecx
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x1001f7cc
xor esi, esi
test dword [esp + 0x2c], 0xfffffffc
jbe 0x1001f7c6
xor eax, eax
push 0x206
push eax
mov word [esp + 0x1498], ax
lea eax, [esp + 0x149a]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x1490]
push 0x104
push eax
push dword [esp + esi*4 + 0x498]
push dword [esp + 0x1c]
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
jne 0x1001f837
mov eax, dword [esp + 0x2c]
inc esi
shr eax, 2
cmp esi, eax
jb 0x1001f774
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x228
lea eax, [esp + 0x268]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 0x260]
push eax
push ebx
mov dword [esp + 0x268], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1001f709
nop
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x268]
cmp eax, dword [ecx]
je 0x1001f8b8
lea eax, [esp + 0x260]
push eax
push ebx
call esi
test eax, eax
jne 0x1001f810
jmp 0x1001f709
lea eax, [esp + 0x1490]
push eax
lea ecx, [esp + 0x18]
call fcn.10008550
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [esp + 0xc], eax
cmp edi, eax
je 0x1001f882
cmp dword [edi + 0x14], 8
jb 0x1001f867
push dword [edi]
call esi
mov eax, dword [esp + 0x10]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.1000d5d0
cmp dword [esp + 0x28], 8
jb 0x1001f892
push dword [esp + 0x14]
call esi
add esp, 4
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1690]
xor ecx, esp
call fcn.100947be
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x284]
push eax
lea ecx, [esp + 0x18]
call fcn.10008550
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
mov dword [esp + 0xc], eax
cmp edi, eax
je 0x1001f903
cmp dword [edi + 0x14], 8
jb 0x1001f8e8
push dword [edi]
call esi
mov eax, dword [esp + 0x10]
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], cx
push eax
mov ecx, edi
call fcn.1000d5d0
cmp dword [esp + 0x28], 8
jb 0x1001f913
push dword [esp + 0x14]
call esi
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x169c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.100947be
mov esp, ebp
pop ebp
ret