Function at 0x4600d0
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 0x4600fb
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x4600ed
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 0x4602ed
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4602e6
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov ecx, esi
call fcn.004643a0
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 0x4602e6
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 2
cmp edx, 1
jae 0x460230
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x460198
sub eax, ecx
sar eax, 2
cmp eax, 1
mov ebx, eax
ja 0x46019d
mov ebx, 1
mov ecx, esi
call fcn.004645b0
mov ebp, eax
add ebp, ebx
mov eax, ebp
jns 0x4601ae
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.00446860
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push 1
push eax
mov dword [esp + 0x20], eax
call fcn.004645d0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
add eax, 4
push eax
push ecx
push edi
mov ecx, esi
call fcn.00446860
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00464390
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.004645b0
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 0x4602c2
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x460280
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00446860
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.004645d0
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x4602be
mov edx, dword [esp + 0x20]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x460271
jmp 0x4602be
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.00446860
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x4602aa
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x46029b
lea eax, [edi + 4]
cmp edi, eax
je 0x4602be
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x4602b1
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 0x46016f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4