Function at 0x417660
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x590d26
mov eax, dword fs:[0]
push eax
mov eax, 0x1238
call fcn.005618f0
mov eax, dword [0x5fcff4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004232cc
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x4179a1
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x121c], eax
push 0x5db008
lea ecx, [ebp - 0x121c]
mov dword [ebp - 4], 1
call fcn.004078a0
test al, al
jne 0x4176eb
push 0x14
push 0x5db008
lea ecx, [ebp - 0x121c]
call fcn.00407b80
mov dword [ebp - 4], 2
mov edi, dword [ebp - 0x121c]
mov esi, dword [edi - 0xc]
test esi, esi
js 0x417997
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x417726
push esi
lea ecx, [ebp - 0x121c]
call fcn.00407f40
mov edi, dword [ebp - 0x121c]
lea eax, [esi + 1]
push eax
push edi
call fcn.00570917
lea eax, [edi - 0x10]
add esp, 8
mov dword [ebp - 0x1240], eax
cmp esi, dword [eax + 8]
jg 0x417997
mov dword [eax + 4], esi
xor eax, eax
mov word [edi + esi*2], ax
lea eax, [ebp - 0x1234]
push eax
push 0x1000
lea eax, [ebp - 0x1218]
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcesses]
or ecx, 0xffffffff
test eax, eax
jne 0x417775
xor edi, edi
jmp 0x41794c
mov eax, dword [ebp - 0x1234]
movups xmm0, xmmword [str._unknown_]
shr eax, 2
mov dword [ebp - 0x1230], eax
mov eax, dword [0x5dce70]
push 0x1f4
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x204]
push 0
push eax
movups xmmword [ebp - 0x218], xmm0
call fcn.00564770
add esp, 0xc
mov byte [ebp - 4], 4
call fcn.004232cc
mov ecx, eax
mov byte [ebp - 4], 3
test ecx, ecx
je 0x4179ab
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1220], esi
xor eax, eax
mov byte [ebp - 4], 5
mov dword [ebp - 0x122c], eax
cmp dword [ebp - 0x1230], eax
jbe 0x41792d
lea ecx, [ebp - 0x1218]
push dword [ecx + eax*4]
lea eax, [ecx + eax*4]
push 0
push 0x411
mov dword [ebp - 0x123c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1224], eax
test eax, eax
je 0x417914
lea ecx, [ebp - 0x1244]
push ecx
push 4
lea ecx, [ebp - 0x1238]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x417908
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x1238]
push dword [ebp - 0x1224]
call dword [sym.imp.KERNEL32.dll_K32GetModuleBaseNameW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417865
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1220]
call fcn.00407b80
mov esi, dword [ebp - 0x1220]
mov edx, dword [esi - 0xc]
mov dword [ebp - 0x1228], edx
test edx, edx
js 0x417997
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x4178c7
push edx
lea ecx, [ebp - 0x1220]
call fcn.00407f40
mov esi, dword [ebp - 0x1220]
mov edx, dword [ebp - 0x1228]
lea eax, [edx + 1]
push eax
push esi
call fcn.00570917
mov eax, dword [ebp - 0x1228]
add esp, 8
cmp eax, dword [esi - 8]
jg 0x417997
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [edi - 0xc], ecx
jl 0x417908
push esi
push edi
call fcn.00563f87
add esp, 8
test eax, eax
je 0x417908
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
jne 0x417981
push dword [ebp - 0x1224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x122c]
inc eax
mov dword [ebp - 0x122c], eax
cmp eax, dword [ebp - 0x1230]
jb 0x4177f2
xor edi, edi
or ecx, 0xffffffff
add esi, 0xfffffff0
mov eax, ecx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x41794c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
or ecx, 0xffffffff
mov eax, dword [ebp - 0x1240]
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x417964
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00560f1e
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x123c]
mov edi, dword [edi]
jmp 0x41792f
push 0x80070057
call fcn.00407ff0
push 0x80004005
call fcn.00407ff0
push 0x80004005
call fcn.00407ff0
int3