Function at 0x40e6c9
Capabilities:
Enumerate process modules

Disassembly:
push ebp
lea ebp, [esp - 0x80c]
sub esp, 0x80c
push 0xffffffffffffffff
push 0x536f41
mov eax, dword fs:[0]
push eax
mov eax, 0x1058
call fcn.00450330
mov eax, dword [0x59d680]
xor eax, ebp
mov dword [ebp + 0x808], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x814]
lea eax, [ebp - 0x28]
push eax
push 0x1000
lea eax, [ebp - 0x1064]
push eax
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [ebp - 0x28]
shr edi, 2
push 0
pop ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
je 0x40e931
mov eax, dword [ebp - 0x14]
push dword [ebp + eax*4 - 0x1064]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x40e90e
push 0x7ce
lea eax, [ebp + 0x3a]
push ebx
push eax
mov word [ebp + 0x38], bx
call fcn.0044fd00
add esp, 0xc
push 0x7d0
lea eax, [ebp + 0x38]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x20], ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp + 0x38]
push eax
call fcn.0044f427
test eax, eax
pop ecx
jne 0x40e7e0
cmp dword [ebp - 0x10], ebx
jne 0x40e7b0
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x40e7e0
cmp dword [ebp - 0x1c], ebx
jne 0x40e7ca
push str.GetProcessImageFileNameW
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x40e7e0
push 0x104
lea eax, [ebp + 0x38]
push eax
push dword [ebp - 0x18]
call dword [ebp - 0x1c]
mov dword [ebp - 0x20], 1
lea eax, [ebp + 0x38]
push eax
call fcn.0044f427
cmp eax, ebx
pop ecx
jle 0x40e90e
lea eax, [ebp + 0x38]
push eax
call fcn.00450655
lea eax, [ebp + 0x38]
push eax
call fcn.0040e479
test al, al
pop ecx
pop ecx
je 0x40e90e
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp]
mov dword [ebp - 0x24], 1
call fcn.00401a45
push 0x53de0c
lea ecx, [ebp + 0x1c]
mov dword [ebp - 4], ebx
call fcn.00401a45
cmp dword [ebp - 0x20], ebx
mov byte [ebp - 4], 1
je 0x40e887
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040ddb6
pop ecx
pop ecx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 2
call fcn.004018bf
push ebx
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401376
push 0x53de0c
lea ecx, [ebp + 0x1c]
call fcn.00403586
test eax, eax
jne 0x40e896
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401a28
jmp 0x40e896
push 0xffffffffffffffff
push ebx
lea eax, [ebp]
push eax
lea ecx, [ebp + 0x1c]
call fcn.004018bf
mov eax, dword [esi + 8]
push esi
push eax
lea ecx, [ebp - 0x30]
call fcn.00403537
mov eax, dword [esi + 4]
push esi
push eax
lea ecx, [ebp - 0x38]
call fcn.00403537
lea eax, [ebp + 0x1c]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x48]
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push eax
call fcn.0040db42
mov eax, dword [esi + 8]
add esp, 0x18
push esi
push eax
lea ecx, [ebp - 0x40]
call fcn.00403537
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x48]
call fcn.0041fe07
test al, al
je 0x40e8f4
lea eax, [ebp + 0x1c]
push eax
mov ecx, esi
call fcn.00404599
push ebx
push 1
lea ecx, [ebp + 0x1c]
call fcn.00401376
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp]
call fcn.00401376
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], edi
jb 0x40e73f
cmp dword [ebp - 0x10], ebx
je 0x40e931
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x808]
xor ecx, ebp
call fcn.0044fa75
add ebp, 0x80c
leave
ret