Function at 0x40cfc0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x411d1c
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1688
call fcn.00411250
mov eax, dword [0x41a014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1678], ecx
mov dword [ebp - 0x166c], 0
push 0x420
push 0
lea eax, [ebp - 0x660]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x240], 0x22c
mov dword [ebp - 4], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x1670], eax
cmp dword [ebp - 0x1670], 0xffffffff
jne 0x40d06f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x166c], eax
mov ecx, dword [ebp - 0x166c]
mov dword [ebp - 0x1680], ecx
push 0x418038
lea edx, [ebp - 0x1680]
push edx
call sub.VCRUNTIME140.dll__CxxThrowException
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x1670]
push ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov dword [ebp - 0x1674], eax
cmp dword [ebp - 0x1674], 0
jne 0x40d0c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x166c], eax
mov edx, dword [ebp - 0x166c]
mov dword [ebp - 0x1684], edx
push 0x418038
lea eax, [ebp - 0x1684]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
jmp 0x40d263
cmp dword [ebp - 0x1674], 0
je 0x40d256
mov ecx, 0x82
lea esi, [ebp - 0x21c]
lea edi, [ebp - 0x660]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x458], ecx
push 0x416110
lea ecx, [ebp - 0x167c]
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__3]
mov dword [ebp - 0x1694], eax
mov byte [ebp - 4], 1
lea edx, [ebp - 0x167c]
push edx
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x1678]
call fcn.0040d2a0
mov dword [ebp - 0x1688], eax
mov ecx, dword [ebp - 0x1688]
mov dword [ebp - 0x1698], ecx
lea ecx, [ebp - 0x167c]
call dword [sym.imp.mfc140u.dll_Ordinal_1663]
push eax
lea edx, [ebp - 0x44c]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 8
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x1678]
call fcn.0040d4a0
mov dword [ebp - 0x168c], eax
mov ecx, dword [ebp - 0x168c]
mov dword [ebp - 0x1690], ecx
mov edx, dword [ebp - 0x1690]
mov dword [ebp - 0x450], edx
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x454], eax
cmp dword [ebp + 0xc], 1
je 0x40d197
cmp dword [ebp + 0xc], 2
jne 0x40d1a2
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x244], ecx
jmp 0x40d1ac
mov dword [ebp - 0x244], 0
lea edx, [ebp - 0x240]
push edx
mov eax, dword [ebp - 0x1670]
push eax
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov dword [ebp - 0x1674], eax
push 0x1004
push 0
lea ecx, [ebp - 0x1664]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1664], 0x19
mov ecx, 0x108
lea esi, [ebp - 0x660]
lea edi, [ebp - 0x1660]
rep movsd dword es:[edi], dword [esi]
mov byte [ebp - 0x1665], 1
lea edx, [ebp - 0x1665]
push edx
push 0x1004
lea eax, [ebp - 0x1664]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1678]
call fcn.0040a000
movzx edx, byte [ebp - 0x1665]
test edx, edx
jne 0x40d241
mov eax, dword [ebp - 0x166c]
push eax
push 0x416114
call fcn.00406d00
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x167c]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
jmp 0x40d0c0
mov ecx, dword [ebp - 0x1670]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40d26b
mov dword [ebp - 4], 0xffffffff
jmp 0x40d27b
mov eax, dword [ebp - 0x166c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004102f6
mov esp, ebp
pop ebp
ret 8