Function at 0x403140
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2f88
mov eax, dword fs:[0]
push eax
mov eax, 0x185c
call fcn.0043c1d0
mov eax, dword [0x66a344]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1844], ecx
lea eax, [ebp - 0x1850]
push eax
push 0x1000
lea ecx, [ebp - 0x17e0]
push ecx
call sub.PSAPI.DLL_EnumProcesses
mov edx, dword [ebp - 0x1850]
shr edx, 2
mov dword [ebp - 0x1854], edx
mov dword [ebp - 0x184c], 0
mov dword [ebp - 0x182c], 0
mov dword [ebp - 0x1834], 0
mov dword [ebp - 0x1830], 0
jmp 0x4031d5
mov eax, dword [ebp - 0x1830]
add eax, 1
mov dword [ebp - 0x1830], eax
mov ecx, dword [ebp - 0x1830]
cmp ecx, dword [ebp - 0x1854]
jae 0x4034ac
mov edx, dword [ebp - 0x1830]
mov eax, dword [ebp + edx*4 - 0x17e0]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1838], eax
cmp dword [ebp - 0x1838], 0
je 0x40349a
xor ecx, ecx
mov word [ebp - 0x7e0], cx
push 0x7ce
push 0
lea edx, [ebp - 0x7de]
push edx
call fcn.004ac380
add esp, 0xc
mov dword [ebp - 0x1840], 0
push 0x7d0
lea eax, [ebp - 0x7e0]
push eax
push 0
mov ecx, dword [ebp - 0x1838]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea edx, [ebp - 0x7e0]
push edx
call fcn.004afdb1
add esp, 4
mov dword [ebp - 0x183c], eax
cmp dword [ebp - 0x183c], 0
jne 0x4032e6
cmp dword [ebp - 0x182c], 0
jne 0x403290
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x182c], eax
cmp dword [ebp - 0x182c], 0
je 0x4032e6
cmp dword [ebp - 0x1834], 0
jne 0x4032ba
push 0x5f5bb4
mov eax, dword [ebp - 0x182c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1834], eax
cmp dword [ebp - 0x1834], 0
je 0x4032e6
push 0x104
lea ecx, [ebp - 0x7e0]
push ecx
mov edx, dword [ebp - 0x1838]
push edx
call dword [ebp - 0x1834]
mov dword [ebp - 0x1840], 1
lea eax, [ebp - 0x7e0]
push eax
call fcn.004afdb1
add esp, 4
mov dword [ebp - 0x183c], eax
cmp dword [ebp - 0x183c], 0
jle 0x40349a
lea ecx, [ebp - 0x7e0]
push ecx
call fcn.004b0326
add esp, 4
lea edx, [ebp - 0x7e0]
push edx
mov ecx, dword [ebp - 0x1844]
call fcn.004036f0
movzx eax, al
test eax, eax
je 0x40349a
mov dword [ebp - 0x184c], 1
mov dword [ebp - 0x1848], 0
lea ecx, [ebp - 0x7e0]
push ecx
lea ecx, [ebp - 0x1810]
call fcn.00404a20
mov dword [ebp - 4], 0
push 0x5f5bd0
lea ecx, [ebp - 0x17f8]
call fcn.00404a20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1840], 0
je 0x4033e9
lea edx, [ebp - 0x7e0]
push edx
lea eax, [ebp - 0x1828]
push eax
mov ecx, dword [ebp - 0x1844]
call fcn.00403810
mov dword [ebp - 0x1858], eax
mov ecx, dword [ebp - 0x1858]
push ecx
lea ecx, [ebp - 0x17f8]
call fcn.00404da0
lea ecx, [ebp - 0x1828]
call fcn.00404b90
push 0x5f5bd4
lea edx, [ebp - 0x17f8]
push edx
call fcn.00403e30
add esp, 8
movzx eax, al
test eax, eax
je 0x4033e7
lea ecx, [ebp - 0x7e0]
push ecx
lea ecx, [ebp - 0x17f8]
call fcn.00404f00
jmp 0x4033fb
lea edx, [ebp - 0x1810]
push edx
lea ecx, [ebp - 0x17f8]
call fcn.00404e90
lea eax, [ebp - 0x17f8]
push eax
lea ecx, [ebp - 0x1860]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00412a10
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x1864]
push eax
mov ecx, dword [ebp + 8]
call fcn.0041a830
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x185c]
push edx
call fcn.00404780
add esp, 0x10
lea eax, [ebp - 0x1868]
push eax
mov ecx, dword [ebp + 8]
call fcn.00412a10
push eax
lea ecx, [ebp - 0x185c]
call fcn.0041c460
movzx ecx, al
test ecx, ecx
je 0x403461
mov dword [ebp - 0x1848], 1
cmp dword [ebp - 0x1848], 0
jne 0x403479
lea edx, [ebp - 0x17f8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407450
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x17f8]
call fcn.00404b90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1810]
call fcn.00404b90
mov eax, dword [ebp - 0x1838]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4031c6
cmp dword [ebp - 0x182c], 0
je 0x4034c2
mov ecx, dword [ebp - 0x182c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x184c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043c1bd
mov esp, ebp
pop ebp
ret 4