Function at 0x4a57d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dd728
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x6d5760]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x258], edi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24c]
push 0x220
push 0
push eax
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x250], 0x224
call fcn.005b7980
add esp, 0xc
push esi
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x260], ebx
cmp ebx, 0xffffffff
je 0x4a585f
lea eax, [ebp - 0x250]
push eax
push ebx
call sub.KERNEL32.dll_Module32First
test eax, eax
jne 0x4a5870
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4a5a2c
cmp byte [ebp - 0x230], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
jne 0x4a5896
xor eax, eax
jmp 0x4a58a9
lea eax, [ebp - 0x230]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a58a0
sub eax, edx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407960
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
lea edi, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
cmp esi, 0x10
mov byte [ebp - 4], 1
cmovae ecx, edx
cmovae edi, edx
add eax, ecx
cmp esi, 0x10
lea ecx, [ebp - 0x2c]
cmovae ecx, edx
cmp ecx, eax
je 0x4a58fd
push 0x5bb098
push edi
push eax
push ecx
lea eax, [ebp - 0x26c]
push eax
call fcn.004a4970
add esp, 0x14
jmp 0x4a5903
mov dword [ebp - 0x26c], edi
mov ebx, dword [ebp - 0x258]
lea eax, [ebp - 0x2c]
add ebx, 8
push eax
mov ecx, ebx
call fcn.004a6440
mov esi, eax
cmp esi, dword [ebx]
je 0x4a596a
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
mov edi, dword [edx + 0x10]
jb 0x4a592b
mov edx, dword [edx]
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov eax, edi
cmovae ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x1c], edi
cmovb eax, dword [ebp - 0x1c]
push eax
push edx
push ecx
call fcn.004136d0
add esp, 0xc
test eax, eax
jne 0x4a5963
mov ecx, dword [ebp - 0x1c]
cmp ecx, edi
jae 0x4a595a
or eax, 0xffffffff
jmp 0x4a5961
xor eax, eax
cmp ecx, edi
setne al
test eax, eax
sets al
test al, al
je 0x4a59a7
lea eax, [ebp - 0x2c]
mov ecx, ebx
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x251]
push eax
lea eax, [ebp - 0x264]
push eax
push 0x7135e7
call fcn.004a3bb0
push eax
add eax, 0x10
mov ecx, ebx
push eax
push esi
lea eax, [ebp - 0x25c]
push eax
call fcn.004a4290
mov esi, dword [ebp - 0x25c]
cmp byte [ebp - 0x130], 0
jne 0x4a59b4
xor ecx, ecx
jmp 0x4a59c9
lea ecx, [ebp - 0x130]
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a59c0
sub ecx, edx
push ecx
lea eax, [ebp - 0x130]
push eax
lea ecx, [esi + 0x28]
call fcn.00407960
cmp dword [ebp - 0x18], 0x10
jb 0x4a59fe
push dword [ebp - 0x2c]
call fcn.005b62e5
add esp, 4
jmp 0x4a59fe
mov ebx, dword [ebp - 0x260]
lea eax, [ebp - 0x250]
push eax
push ebx
mov dword [ebp - 4], 0xffffffff
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x4a5870
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b6a74
mov esp, ebp
pop ebp
ret 4