Function at 0x470f40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5428db
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x580124]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x248], ecx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x470f82
mov ecx, ebx
call fcn.0044c650
cmp dword [0x584fe4], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jne 0x470fab
push str.QueryFullProcessImageNameW
push str.Kernel32.dll
call edi
push eax
call esi
mov dword [0x584fe4], eax
cmp dword [0x584fe8], 0
jne 0x470fc8
push str.NtQueryInformationProcess
push str.ntdll
call edi
push eax
call esi
mov dword [0x584fe8], eax
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x471012
push 0x228
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.004e8ae0
add esp, 0xc
mov dword [ebp - 0x23c], 0x22c
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x471030
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e4c11
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x244], eax
call fcn.00408090
test eax, eax
je 0x47118a
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
cmp ecx, vtable.ATL::CAtlStringMgr.0
jne 0x47105b
lock inc dword [eax + 0x14]
lea esi, [eax + 8]
jmp 0x471061
mov ecx, eax
call edx
mov esi, eax
add esi, 0x10
mov dword [ebp - 0x240], esi
mov dword [ebp - 4], 0
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
jge 0x47109b
push 0x104
lea ecx, [ebp - 0x240]
call fcn.00407610
mov esi, dword [ebp - 0x240]
push ecx
mov ecx, dword [ebp - 0x234]
mov edx, esi
call fcn.00470d00
push dword [esi - 8]
push esi
call fcn.005053f1
add esp, 0xc
test eax, eax
js 0x471180
cmp eax, dword [esi - 8]
jg 0x471180
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
lea edx, [ebp - 0x240]
mov ecx, dword [ebp - 0x248]
call fcn.00499100
test eax, eax
je 0x47110a
test ebx, ebx
je 0x471104
push dword [ebp - 0x248]
lea eax, [ebp - 0x234]
push eax
push ecx
lea eax, [ebp - 0x250]
mov ecx, ebx
push eax
call fcn.0044f610
inc dword [ebp - 0x244]
mov dword [ebp - 0x23c], 0x22c
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471158
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x471156
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x471156
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x471158
call edx
lea eax, [ebp - 0x23c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x471038
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
jmp 0x471014
push 0x80070057
call fcn.00407be0
push 0x80004005
call fcn.00407be0
int3