Function at 0x435e5b
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2450
call fcn.004703d0
mov eax, dword [0x4a02f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x1450], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0xffc
mov dword [ebp - 0x1444], eax
lea eax, [ebp - 0x1410]
push ebx
push eax
mov dword [ebp - 0x1414], ebx
call fcn.0046e0e0
add esp, 0xc
lea eax, [ebp - 0x144c]
push eax
push 0x1000
lea eax, [ebp - 0x1414]
push eax
mov dword [ebp - 0x144c], ebx
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [ebp - 0x144c]
shr edi, 2
mov dword [ebp - 0x1434], ebx
mov dword [ebp - 0x143c], ebx
cmp edi, ebx
jbe 0x4360bc
cmp dword [ebp - 0x1434], ebx
je 0x435ef3
push dword [ebp - 0x1434]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x143c]
push dword [ebp + eax*4 - 0x1414]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1434], eax
cmp eax, ebx
je 0x436096
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.0046e0e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x1434]
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
cmp esi, ebx
je 0x436096
push esi
push 0x4900d4
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x435f8b
push esi
push 0x490118
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x436096
push 0xffc
lea eax, [ebp - 0x244c]
push ebx
push eax
mov dword [ebp - 0x1448], ebx
mov dword [ebp - 0x2450], ebx
call fcn.0046e0e0
add esp, 0xc
lea eax, [ebp - 0x1448]
push eax
push 0x400
lea eax, [ebp - 0x2450]
push eax
push dword [ebp - 0x1434]
call sub.PSAPI.DLL_EnumProcessModules
mov esi, dword [ebp - 0x1448]
shr esi, 2
mov dword [ebp - 0x1440], ebx
cmp esi, ebx
jbe 0x436096
xor eax, eax
push 0x206
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push ebx
push eax
call fcn.0046e0e0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x1440]
push dword [ebp + eax*4 - 0x2450]
push dword [ebp - 0x1434]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x436084
xor eax, eax
mov word [ebp - 0x1430], ax
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x1430]
mov dword [ebp - 0x141c], 7
mov dword [ebp - 0x1420], ebx
call fcn.00401fb0
push ebx
push dword [ebp - 0x1450]
lea eax, [ebp - 0x1430]
push eax
call fcn.004120c0
add esp, 0xc
push ebx
push 1
lea ecx, [ebp - 0x1430]
mov byte [ebp - 0x1435], al
call fcn.00402b70
cmp byte [ebp - 0x1435], bl
jne 0x4360d9
inc dword [ebp - 0x1440]
cmp dword [ebp - 0x1440], esi
jb 0x435fe1
inc dword [ebp - 0x143c]
cmp dword [ebp - 0x143c], edi
jb 0x435edf
cmp dword [ebp - 0x1434], ebx
je 0x4360bc
push dword [ebp - 0x1434]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1444]
mov eax, dword [ecx + 4]
sub eax, dword [ecx]
sar eax, 2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e0cd
leave
ret
mov eax, dword [ebp - 0x143c]
mov ecx, dword [ebp - 0x1444]
lea eax, [ebp + eax*4 - 0x1414]
push eax
call fcn.00435887
push dword [ebp - 0x1434]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4360ca