Function at 0x445750
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f3e90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x1464
call fcn.004d0660
mov eax, dword [0x52bd18]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], esp
mov ecx, 0x4a
lea edi, [ebp - 0x13c]
xor ebx, ebx
rep stosd dword es:[edi], eax
push 1
mov dword [ebp - 0x450], 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x458], 0x1000
mov dword [ebp - 0x13c], 0x128
call fcn.00444d10
add esp, 4
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 0x454], esi
jne 0x445805
call fcn.00407350
push 0xc5
push str..ProcessMgr.cpp
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_CreateToolhelp32Snapshot__ld.
push 0x20
call fcn.0047dea0
add esp, 0xc
xor eax, eax
jmp 0x445b4f
lea eax, [ebp - 0x13c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
mov dword [ebp - 0x450], eax
je 0x445b38
lea ecx, [ebp - 0x458]
push ecx
push 0x1000
lea edx, [ebp - 0x1474]
push edx
call sub.PSAPI.DLL_EnumProcesses
cmp eax, ebx
mov dword [ebp - 0x450], eax
je 0x445b04
mov edi, dword [ebp - 0x458]
mov esi, dword [ebp + 8]
shr edi, 2
push edi
push ebx
mov ecx, esi
mov dword [ebp - 0x474], edi
call fcn.00444c60
mov dword [ebp - 0x44c], ebx
cmp ebx, edi
jae 0x445b32
mov eax, dword [str.unknown]
mov ecx, dword [0x505080]
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x23c], ecx
mov ecx, 0x3f
lea edi, [ebp - 0x238]
rep stosd dword es:[edi], eax
mov byte [ebp - 0x344], al
mov ecx, 0x40
lea edi, [ebp - 0x343]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp ebx, dword [esi]
jae 0x4458bc
mov eax, dword [esi + 4]
lea ebx, [ebx + ebx*2]
shl ebx, 4
add ebx, eax
jmp 0x4458be
xor ebx, ebx
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x118]
mov dword [ebx + 0x18], edx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4458d0
sub eax, edx
lea esi, [eax + 1]
mov eax, dword [ebx + 4]
test eax, eax
je 0x4458ec
push eax
call fcn.004df1b9
add esp, 4
push esi
mov dword [ebx], esi
call fcn.004df1be
mov dword [ebx + 4], eax
mov ecx, esi
mov edi, eax
mov eax, ecx
shr ecx, 2
lea esi, [ebp - 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x128]
add esp, 4
lea edx, [ebp - 0x344]
mov dword [ebx + 0x1c], ecx
mov eax, dword [ebp - 0x134]
push edx
push eax
call fcn.004451a0
add esp, 8
test eax, eax
je 0x445954
lea eax, [ebp - 0x344]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445940
sub eax, edx
inc eax
push eax
lea ecx, [ebp - 0x344]
push ecx
jmp 0x44595b
push 1
push 0x4fca4e
lea ecx, [ebx + 8]
call fcn.00406e20
mov edx, dword [ebp - 0x134]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
mov dword [ebp - 0x468], esi
je 0x445a06
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x460]
push edx
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x468]
push edx
call fcn.004452c0
mov eax, dword [ebp - 0x46c]
mov edx, dword [ebp - 0x45c]
mov ecx, dword [ebp - 0x460]
mov dword [ebx + 0x24], eax
lea eax, [ebp - 0x448]
mov dword [ebx + 0x28], edx
add esp, 0x18
mov dword [ebx + 0x20], ecx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4459e0
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x448]
push eax
lea ecx, [ebx + 0x10]
call fcn.00406e20
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x445ad0
mov eax, dword [ebp - 0x134]
test eax, eax
jne 0x445ad0
mov ecx, dword [str.System_Idle_Process]
mov eax, dword [0x505070]
mov edx, dword [0x50506c]
mov esi, dword [ebp - 0x44c]
mov dword [ebp - 0x240], ecx
mov ecx, dword [0x505074]
mov dword [ebp - 0x238], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x234], ecx
cmp esi, dword [eax]
mov dword [ebp - 0x23c], edx
mov edx, dword [0x505078]
mov dword [ebp - 0x230], edx
jae 0x445a69
mov ecx, dword [eax + 4]
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
jmp 0x445a6b
xor esi, esi
lea eax, [ebp - 0x240]
mov dword [esi + 0x18], 0
lea edx, [eax + 1]
jmp 0x445a80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445a80
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x240]
push eax
mov ecx, esi
call fcn.00406e20
push 1
push 0x4fca4e
lea ecx, [esi + 8]
call fcn.00406e20
lea ecx, [ebp - 0x464]
push ecx
lea edx, [ebp - 0x470]
push edx
call fcn.00445420
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp - 0x464]
add esp, 8
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ecx
mov eax, dword [ebp - 0x454]
lea edx, [ebp - 0x13c]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x445b32
mov eax, dword [ebp - 0x44c]
mov edi, dword [ebp - 0x474]
mov esi, dword [ebp + 8]
inc eax
mov dword [ebp - 0x44c], eax
mov ebx, eax
jmp 0x445867
call fcn.00407350
push 0x101
push str..ProcessMgr.cpp
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Enum_processes_error.Error_code:_d
push 0x20
call fcn.0047dea0
add esp, 0xc
jmp 0x445b38
mov esi, dword [ebp - 0x454]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00444d10
add esp, 4
mov eax, dword [ebp - 0x450]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004ce183
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret