Function at 0x45dad0
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 0x45dafb
mov edi, dword [eax]
add eax, 4
mov dword [ecx], edi
add ecx, 4
cmp eax, edx
jne 0x45daed
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 0x45dced
lea ecx, [esp + 0x18]
push ecx
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x45dce6
mov eax, dword [esi + 8]
lea edx, [esp + 0x20]
push edx
push 1
push eax
mov ecx, esi
call fcn.00461da0
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 0x45dce6
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub edx, eax
mov edi, eax
sar edx, 2
cmp edx, 1
jae 0x45dc30
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x45db98
sub eax, ecx
sar eax, 2
cmp eax, 1
mov ebx, eax
ja 0x45db9d
mov ebx, 1
mov ecx, esi
call fcn.00461fb0
mov ebp, eax
add ebp, ebx
mov eax, ebp
jns 0x45dbae
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.004445d0
lea edx, [esp + 0x20]
mov ecx, esi
push edx
push 1
push eax
mov dword [esp + 0x20], eax
call fcn.00461fd0
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 8]
add eax, 4
push eax
push ecx
push edi
mov ecx, esi
call fcn.004445d0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00461d90
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.00461fb0
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 0x45dcc2
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x45dc80
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.004445d0
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.00461fd0
mov ecx, dword [esi + 8]
mov eax, edi
cmp edi, ecx
je 0x45dcbe
mov edx, dword [esp + 0x20]
mov dword [eax], edx
add eax, 4
cmp eax, ecx
jne 0x45dc71
jmp 0x45dcbe
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x1c], ecx
push ecx
mov ecx, esi
call fcn.004445d0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x45dcaa
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x45dc9b
lea eax, [edi + 4]
cmp edi, eax
je 0x45dcbe
mov ecx, dword [esp + 0x20]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x45dcb1
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 0x45db6f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x234
ret 4