Function at 0x1001f940
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 + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 2
mov dword [esp + 0x14], 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 0x1001f9c7
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
mov ecx, dword [ebp + 8]
mov eax, dword [esp + 0x38]
cmp eax, dword [ecx]
je 0x1001f9e5
lea eax, [esp + 0x30]
push eax
push ebx
call esi
test eax, eax
jne 0x1001f9b0
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 0x1001fa94
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 0x1001fa8a
xor esi, esi
test dword [esp + 0x2c], 0xfffffffc
jbe 0x1001fa84
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 0x1001faf7
mov eax, dword [esp + 0x2c]
inc esi
shr eax, 2
cmp esi, eax
jb 0x1001fa32
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 0x1001f9c7
lea ecx, [ecx]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x268]
cmp eax, dword [ecx]
je 0x1001fb78
lea eax, [esp + 0x260]
push eax
push ebx
call esi
test eax, eax
jne 0x1001fad0
jmp 0x1001f9c7
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 0x1001fb42
cmp dword [edi + 0x14], 8
jb 0x1001fb27
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 0x1001fb52
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 0x1001fbc3
cmp dword [edi + 0x14], 8
jb 0x1001fba8
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 0x1001fbd3
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