Function at 0x485640
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5718d6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5bfd00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
xor eax, eax
xor esi, esi
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 0x34], eax
mov ebx, 0xc8
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 4], 1
xor edx, edx
mov ecx, edi
sub ecx, edx
sar ecx, 2
cmp ebx, ecx
jae 0x4856a2
lea edi, [edx + ebx*4]
jmp 0x4856e6
jbe 0x4856e9
mov eax, esi
sub eax, edx
sar eax, 2
cmp ebx, eax
jbe 0x4856cd
lea eax, [ebp - 0xd]
push eax
push ebx
lea ecx, [ebp - 0x34]
call fcn.00476450
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
jmp 0x4856e9
mov eax, ebx
sub eax, ecx
lea esi, [eax*4]
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, esi
mov dword [ebp - 0x30], edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
lea eax, [ebx*4]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x485773
mov esi, dword [ebp - 0x1c]
shr esi, 2
cmp esi, ebx
jne 0x48571f
mov edx, dword [ebp - 0x18]
add ebx, ebx
mov esi, dword [ebp - 0x14]
jmp 0x485692
mov ebx, dword [ebp - 0x18]
mov ecx, edi
sub ecx, ebx
sar ecx, 2
cmp esi, ecx
jae 0x485732
lea edi, [ebx + esi*4]
jmp 0x48577b
jbe 0x48577e
mov eax, dword [ebp - 0x14]
sub eax, ebx
sar eax, 2
cmp esi, eax
jbe 0x48575e
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00476450
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], ebx
jmp 0x485781
sub esi, ecx
shl esi, 2
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
add edi, esi
jmp 0x48577b
mov ebx, dword [ebp - 0x18]
cmp ebx, edi
cmovne edi, ebx
mov dword [ebp - 0x30], edi
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov eax, ebx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], ebx
cmp eax, edi
je 0x4857fb
mov esi, dword [ebp + 8]
mov bl, byte [ebp + 0x10]
nop
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
test bl, bl
jne 0x4857cc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, dword [ebp - 0x24]
cmp edx, eax
mov eax, dword [ebp - 0x1c]
je 0x4857eb
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4857dc
mov dword [ecx], edx
add dword [esi + 4], 4
jmp 0x4857eb
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, esi
call fcn.00475620
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x1c], eax
cmp eax, edi
jne 0x4857b0
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
test ebx, ebx
je 0x48582e
sub esi, ebx
mov eax, ebx
and esi, 0xfffffffc
cmp esi, 0x1000
jb 0x485824
mov ebx, dword [eax - 4]
add esi, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x485824
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push esi
push ebx
call fcn.00563352
add esp, 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret