Function at 0x413ca0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8370
mov eax, dword fs:[0]
push eax
mov eax, 0x187c
call fcn.0047bee0
mov eax, dword [0x4f4320]
xor eax, ebp
mov dword [ebp - 0x1030], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1c]
push eax
push 0x1000
lea ecx, [ebp - 0x101c]
push ecx
call sub.PSAPI.DLL_EnumProcesses
mov edx, dword [ebp - 0x1c]
shr edx, 2
mov dword [ebp - 0x1020], edx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1024], 0
jmp 0x413d23
mov eax, dword [ebp - 0x1024]
add eax, 1
mov dword [ebp - 0x1024], eax
mov ecx, dword [ebp - 0x1024]
cmp ecx, dword [ebp - 0x1020]
jae 0x413ff5
mov edx, dword [ebp - 0x1024]
mov eax, dword [ebp + edx*4 - 0x101c]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1028], eax
cmp dword [ebp - 0x1028], 0
je 0x413fe3
mov word [ebp - 0x1804], 0
push 0x7ce
push 0
lea ecx, [ebp - 0x1802]
push ecx
call fcn.00479a10
add esp, 0xc
mov dword [ebp - 0x102c], 0
push 0x7d0
lea edx, [ebp - 0x1804]
push edx
push 0
mov eax, dword [ebp - 0x1028]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExW
lea ecx, [ebp - 0x1804]
push ecx
call fcn.0047a212
add esp, 4
mov dword [ebp - 0x1808], eax
cmp dword [ebp - 0x1808], 0
jne 0x413e1c
cmp dword [ebp - 0x10], 0
jne 0x413dd8
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x413e1c
cmp dword [ebp - 0x14], 0
jne 0x413df6
push str.GetProcessImageFileNameW
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x413e1c
push 0x104
lea eax, [ebp - 0x1804]
push eax
mov ecx, dword [ebp - 0x1028]
push ecx
call dword [ebp - 0x14]
mov dword [ebp - 0x102c], 1
lea edx, [ebp - 0x1804]
push edx
call fcn.0047a212
add esp, 4
mov dword [ebp - 0x1808], eax
cmp dword [ebp - 0x1808], 0
jle 0x413fe3
lea eax, [ebp - 0x1804]
push eax
call fcn.0047c162
add esp, 4
lea ecx, [ebp - 0x1804]
push ecx
call fcn.00413990
add esp, 4
movzx edx, al
test edx, edx
je 0x413fe3
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1814], 0
lea eax, [ebp - 0x1804]
push eax
lea ecx, [ebp - 0x1830]
call fcn.00401600
mov dword [ebp - 4], 0
push 0x4d107c
lea ecx, [ebp - 0x184c]
call fcn.00401600
mov byte [ebp - 4], 1
cmp dword [ebp - 0x102c], 0
je 0x413f2a
lea ecx, [ebp - 0x1804]
push ecx
lea edx, [ebp - 0x1868]
push edx
call fcn.00413a70
add esp, 8
mov dword [ebp - 0x1884], eax
mov eax, dword [ebp - 0x1884]
mov dword [ebp - 0x1888], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1888]
push ecx
lea ecx, [ebp - 0x184c]
call fcn.00403640
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1868]
call fcn.00401640
push 0x4d1080
lea edx, [ebp - 0x184c]
push edx
call fcn.004087b0
add esp, 8
movzx eax, al
test eax, eax
je 0x413f28
lea ecx, [ebp - 0x1804]
push ecx
lea ecx, [ebp - 0x184c]
call fcn.00403660
jmp 0x413f3c
lea edx, [ebp - 0x1830]
push edx
lea ecx, [ebp - 0x184c]
call fcn.00403640
lea eax, [ebp - 0x184c]
push eax
lea ecx, [ebp - 0x1870]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0041f110
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1878]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004376d0
mov edx, dword [eax + 4]
push edx
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x1810]
push ecx
call fcn.004224e0
add esp, 0x18
lea edx, [ebp - 0x1880]
push edx
mov ecx, dword [ebp + 8]
call fcn.0041f110
push eax
lea ecx, [ebp - 0x1810]
call fcn.0041ed70
movzx eax, al
test eax, eax
je 0x413faa
mov dword [ebp - 0x1814], 1
cmp dword [ebp - 0x1814], 0
jne 0x413fc2
lea ecx, [ebp - 0x184c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040f140
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x184c]
call fcn.00401640
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1830]
call fcn.00401640
mov edx, dword [ebp - 0x1028]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413d14
cmp dword [ebp - 0x10], 0
je 0x414005
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1030]
xor ecx, ebp
call fcn.0047a020
mov esp, ebp
pop ebp
ret