Function at 0x409c05
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x411d88
call fcn.00410660
sub esp, 0x280
push esi
push edi
and dword [ebp - 0x284], 0
mov eax, dword [ebp + 0xc]
shl eax, 2
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x258], eax
mov eax, dword [ebp - 0x258]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x40], 0
mov al, byte [ebp - 0x288]
mov byte [ebp - 0x30], al
mov al, byte [ebp - 0x28c]
mov byte [ebp - 0x2f], al
and byte [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
call fcn.00401fce
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0xc]
shl eax, 2
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x18]
call fcn.00405957
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x38]
call sub.PSAPI.DLL_EnumProcesses
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x40]
shr eax, 2
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x34], 1
je 0x409cb5
lea ecx, [ebp - 0x268]
call fcn.004068d8
push 0x4170c8
lea eax, [ebp - 0x268]
push eax
call sub.MSVCRT.dll__CxxThrowException
and dword [ebp - 0x3c], 0
jmp 0x409cc2
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x1c]
jae 0x409dd7
push 5
pop ecx
mov esi, str._unknown_
lea edi, [ebp - 0x24c]
rep movsd dword es:[edi], dword [esi]
push 0x7d
pop ecx
xor eax, eax
lea edi, [ebp - 0x238]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push dword [ecx + eax*4]
push 0
push 0x410
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x409d67
lea eax, [ebp - 0x254]
push eax
push 4
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x44]
call sub.PSAPI.DLL_EnumProcessModules
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x409d67
cmp dword [ebp + 0x10], 0
je 0x409d4d
push 0x208
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x250]
push dword [ebp - 0x44]
call sub.PSAPI.DLL_GetModuleFileNameExW
jmp 0x409d67
push 0x104
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 0x250]
push dword [ebp - 0x44]
call sub.PSAPI.DLL_GetModuleBaseNameW
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x274]
call fcn.0040599d
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push dword [ecx + eax*4]
lea ecx, [ebp - 0x280]
call fcn.00405b01
mov byte [ebp - 4], 4
lea eax, [ebp - 0x274]
push eax
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x30]
call fcn.004060c2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x280]
call fcn.00405f05
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x274]
call fcn.00405f05
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x409cbb
mov al, byte [ebp - 0x30]
mov ecx, dword [ebp + 8]
mov byte [ecx], al
mov al, byte [ebp - 0x2f]
mov ecx, dword [ebp + 8]
mov byte [ecx + 1], al
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 0x28]
mov byte [eax + 8], cl
mov ecx, dword [ebp + 8]
call fcn.00401fce
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401eec
mov eax, dword [ebp - 0x284]
or al, 1
mov dword [ebp - 0x284], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00405f05
and byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401d19
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
leave
ret