Function at 0x40aa50
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557769
mov eax, dword fs:[0]
push eax
mov eax, 0x168c
call fcn.00484a20
mov eax, dword [0x5be984]
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
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1690], eax
mov dword [ebp - 0x167c], ebx
mov dword [ebp - 0x168c], ebx
mov dword [ebp - 0x1680], ebx
test esi, esi
jne 0x40aaad
xor eax, eax
jmp 0x40aeeb
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004f0120
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40aad0
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push esi
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x40aaf5
push 0x57483c
jmp 0x40aafa
push 0x574844
push 0x103
push eax
call fcn.00408080
add esp, 0x10
mov dword [ebp - 0x1668], ebx
xor eax, eax
mov dword [ebp - 0x1664], 7
lea ecx, [ebp - 0x424]
mov word [ebp - 0x1678], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ab30
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1678]
call fcn.004048f0
push 1
xor eax, eax
mov dword [ebp - 4], 0
push 0x57446c
lea ecx, [ebp - 0x1648]
mov dword [ebp - 0x1638], 0
mov dword [ebp - 0x1634], 7
mov word [ebp - 0x1648], ax
call fcn.004048f0
push 1
xor eax, eax
mov byte [ebp - 4], 1
push 0x574470
lea ecx, [ebp - 0x1660]
mov dword [ebp - 0x1650], 0
mov dword [ebp - 0x164c], 7
mov word [ebp - 0x1660], ax
call fcn.004048f0
lea eax, [ebp - 0x1648]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1660]
push eax
lea eax, [ebp - 0x1678]
push eax
call fcn.00412040
lea ecx, [ebp - 0x1678]
add esp, 0xc
cmp ecx, eax
je 0x40abff
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x40abf0
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1678]
call fcn.004048f0
lea ecx, [ebp - 0x1660]
call fcn.004029d0
lea ecx, [ebp - 0x1648]
mov byte [ebp - 4], 0
call fcn.004029d0
lea eax, [ebp - 0x1688]
push eax
push 0x1000
lea eax, [ebp - 0x1630]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40ac3c
xor ebx, ebx
jmp 0x40aead
push 0x20a
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x1650], 0
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x164c], 7
mov word [ebp - 0x1660], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ac90
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1660]
call fcn.004048f0
mov esi, dword [ebp - 0x1688]
lea eax, [ebp - 0x21c]
push 0x20a
push 0
shr esi, 2
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x1694], esi
call fcn.004f0120
add esp, 0xc
mov dword [ebp - 0x1684], 0
xor edi, edi
test esi, esi
je 0x40ae6b
nop
push dword [ebp + edi*4 - 0x1630]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40ae5e
lea eax, [ebp - 0x1698]
push eax
push 4
lea eax, [ebp - 0x1684]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40ae57
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x1684]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
cmp dword [ebp + 0xc], 0
jne 0x40adc3
xor eax, eax
mov dword [ebp - 0x1638], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x1634], 7
mov word [ebp - 0x1648], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad70
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1648]
call fcn.004048f0
lea eax, [ebp - 0x1648]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x1660]
or ebx, 1
push eax
mov dword [ebp - 0x167c], ebx
mov dword [ebp - 0x168c], ebx
call fcn.00408ce0
add esp, 8
test al, al
je 0x40adc3
mov bl, 1
jmp 0x40adc5
xor bl, bl
mov eax, dword [ebp - 0x167c]
mov dword [ebp - 4], 3
test al, 1
je 0x40adea
and eax, 0xfffffffe
lea ecx, [ebp - 0x1648]
mov dword [ebp - 0x167c], eax
call fcn.004029d0
test bl, bl
jne 0x40ae51
cmp dword [ebp - 0x1664], 8
lea eax, [ebp - 0x1678]
cmovae eax, dword [ebp - 0x1678]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x40ae51
inc dword [ebp - 0x1680]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x1648]
call fcn.00402910
mov ecx, dword [ebp - 0x1690]
lea eax, [ebp - 0x1648]
push eax
mov byte [ebp - 4], 5
call fcn.00411e50
lea ecx, [ebp - 0x1648]
mov byte [ebp - 4], 3
call fcn.004029d0
mov ebx, dword [ebp - 0x167c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x1694]
jb 0x40acf0
mov edx, dword [ebp - 0x164c]
cmp edx, 8
jb 0x40aea7
mov ecx, dword [ebp - 0x1660]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ae9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af07
push edx
push ecx
call fcn.004845fc
add esp, 8
mov ebx, dword [ebp - 0x1680]
mov edx, dword [ebp - 0x1664]
cmp edx, 8
jb 0x40aee9
mov ecx, dword [ebp - 0x1678]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aedf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40af0c
push edx
push ecx
call fcn.004845fc
add esp, 8
mov eax, ebx
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.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
call fcn.004faed4
int3