Function at 0x416680
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461dee
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.004428a0
mov eax, dword [0x4776f4]
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
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
jne 0x4166e9
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4166e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x41690b
push 0x400
lea ecx, [ebp - 0x1010]
push ebx
push ecx
call fcn.0042d1d0
add esp, 0xc
lea edx, [ebp - 0x1020]
push edx
push 0x1000
lea eax, [ebp - 0x1010]
push eax
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x1018], ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x4168d9
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x101c], esi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1020]
shr eax, 2
mov dword [ebp - 0x1024], eax
cmp eax, ebx
jbe 0x416871
mov ecx, dword [ebp + ebx*4 - 0x1010]
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x41685e
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x400
or eax, ecx
jge 0x4167a8
mov eax, 0x400
lea ecx, [ebp - 0x101c]
call fcn.00413680
mov esi, dword [ebp - 0x101c]
push 0x400
push esi
push 0
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0042b50a
add esp, 8
test eax, eax
js 0x4168cf
cmp eax, dword [esi - 8]
jg 0x4168cf
mov dword [esi - 0xc], eax
xor edx, edx
push ecx
mov word [esi + eax*2], dx
lea eax, [esi - 0x10]
mov dword [ebp - 0x1028], esp
mov edi, esp
call fcn.00413290
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x1014]
push eax
call fcn.00416290
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1014]
cmp dword [eax - 0xc], 0
je 0x41683c
mov ecx, dword [ebp + 8]
xor edx, edx
test ecx, ecx
setne dl
test edx, edx
je 0x416893
push ecx
push eax
call fcn.0042b62d
add esp, 8
test eax, eax
je 0x41689d
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416864
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x416864
call dword [sym.imp.KERNEL32.dll_GetLastError]
inc ebx
cmp ebx, dword [ebp - 0x1024]
jb 0x41675f
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4168df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4168df
push 0x80004005
call fcn.004136e0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1014]
add eax, 0xfffffff0
mov dword [ebp - 0x1018], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416871
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x416871
push 0x80070057
call fcn.004136e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416905
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1018]
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.0042ab2f
mov esp, ebp
pop ebp
ret