Function at 0x45e7d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x234
push ebx
push ebp
push esi
mov esi, dword [esp + 0x244]
push edi
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
mov eax, edx
cmp eax, edx
je 0x45e7fb
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x45e7ed
mov eax, dword [esi + 8]
mov ebp, 0x22c
push 0
push 2
mov dword [esp + 0x18], eax
mov dword [esi + 8], ecx
mov dword [esp + 0x20], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x45e9ed
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x45e9e6
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov ecx, esi
call fcn.00462aa0
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
push ecx
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x45e9e6
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 2
cmp edx, 1
jae 0x45e930
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45e898
sub eax, ecx
sar eax, 2
cmp eax, 1
mov ebx, eax
ja 0x45e89d
mov ebx, 1
mov ecx, esi
call fcn.00462cb0
mov ebp, eax
add ebp, ebx
mov eax, ebp
jns 0x45e8ae
xor eax, eax
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
mov ecx, dword [esi + 4]
add esp, 4
mov ebx, eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00445160
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push 1
push eax
mov dword [esp + 0x20], eax
call fcn.00462cd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
add eax, 4
push eax
push ecx
push edi
mov ecx, esi
call fcn.00445160
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00462a90
mov ecx, dword [esi + 4]
push ecx
call sub.MFC42u.DLL_operatordelete
lea edx, [ebx + ebp*4]
add esp, 4
mov ecx, esi
mov dword [esi + 0xc], edx
call fcn.00462cb0
lea eax, [ebx + eax*4 + 4]
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x10]
mov dword [esi + 8], eax
mov ebp, 0x22c
jmp 0x45e9c2
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x45e980
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00445160
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
mov ecx, eax
push edx
sub ecx, edi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, esi
push edx
push eax
call fcn.00462cd0
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x45e9be
mov edx, dword [esp + 0x20]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x45e971
jmp 0x45e9be
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.00445160
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x45e9aa
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x45e99b
lea eax, [edi + 4]
cmp edi, eax
je 0x45e9be
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x45e9b1
add dword [esi + 8], 4
lea edx, [esp + 0x18]
mov ecx, 0x8b
xor eax, eax
lea edi, [esp + 0x18]
push edx
push ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45e86f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4