Function at 0x402ee1
Capabilities:
Enumerate process modules
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push 0x1008
call fcn.0042056f
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x43d3b9
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
xor eax, eax
mov ecx, 0x400
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
push 0x20
call fcn.0042056f
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 8
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
cmp dword [ebp + 8], 1
jne 0x4030f4
mov dword [ebp - 0x1c], esp
lea eax, [ebp - 8]
push eax
push 0x1000
mov ebx, dword [ebp - 4]
call fcn.00402ec1
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402f82
push 6
call fcn.0042057b
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x402fa4
push 6
call fcn.0042057b
add esp, 4
mov ebx, dword [ebp - 0xc]
add ebx, 8
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 0xc
mov dword [ebp - 0x20], ebx
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
fild dword [ebx]
fstp qword [ebp - 0x30]
fsub qword [ebp - 0x30]
fstp qword [ebp - 0x38]
fld qword [ebp - 0x38]
call fcn.004013ea
mov dword [ebp - 0x10], eax
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fdiv qword [0x43d3b1]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.004013ea
xor ecx, ecx
push eax
lea eax, [ebp - 0x14]
mov ebx, eax
pop eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
push eax
cmp ecx, eax
jg 0x4030ca
mov ebx, dword [ebp - 4]
call fcn.00402ec1
push ebx
push ecx
mov eax, dword [ebp - 0x14]
dec eax
jns 0x403028
push 4
call fcn.0042057b
add esp, 4
pop ecx
pop ebx
cmp eax, ecx
jl 0x40303b
push 1
call fcn.0042057b
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
mov ebx, dword [ebp - 0x1c]
push dword [ebx]
push 0
push 0x1f0fff
call dword [0x43ec32]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x403071
push 6
call fcn.0042057b
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0xffffffff
push 0xffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4030a0
push 6
call fcn.0042057b
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4030c2
push 6
call fcn.0042057b
add esp, 4
pop eax
pop ebx
pop ecx
jmp 0x402ffd
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x4030ef
push 6
call fcn.0042057b
add esp, 4
jmp 0x403179
call fcn.004013b9
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
push 0
push 0x1f0fff
call dword [0x43ec32]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x403128
push 6
call fcn.0042057b
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], esp
push 0xffffffff
push 0xffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403157
push 6
call fcn.0042057b
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x403179
push 6
call fcn.0042057b
add esp, 4
mov ebx, dword [ebp - 4]
push ebx
call fcn.00420575
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00420575
add esp, 4
mov esp, ebp
pop ebp
ret 8