Function at 0x491710
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae338
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
mov dword [ebp - 0x20], 0x400
push 0x5c69c0
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057be14
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x49176d
xor al, al
jmp 0x491aa2
mov ecx, dword [ebp - 0x20]
shl ecx, 2
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x491792
xor al, al
jmp 0x491aa2
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x18]
jne 0x491861
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x491861
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0057bdba
add esp, 4
push 0x5c69c0
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057be14
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x491840
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.0057bdba
add esp, 4
mov eax, dword [ebp - 0x18]
shr eax, 1
mov dword [ebp - 0x18], eax
push 0x5c69c0
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0057be14
add esp, 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x49185c
xor al, al
jmp 0x491aa2
jmp 0x491796
mov ecx, dword [ebp - 0x2c]
shr ecx, 2
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
jmp 0x49187c
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jge 0x491a8e
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x491a89
lea ecx, [ebp - 0x1c]
call fcn.00414580
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0x104
lea edx, [ebp - 0x58]
push edx
push 1
push 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004911d0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.0042a490
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea ecx, [ebp - 0x94]
call fcn.00491390
lea ecx, [ebp - 0x1c]
call fcn.0041afc0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00414470
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00414580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.00414580
mov byte [ebp - 4], 3
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00491c60
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00414330
mov byte [ebp - 4], 4
push ecx
mov esi, esp
mov dword [ebp - 0x78], esp
lea ecx, [ebp - 0x28]
call fcn.00422b60
push eax
mov ecx, esi
call fcn.00414330
call fcn.0047bf70
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
push 0x5bc2d8
lea ecx, [ebp - 0x28]
push ecx
call fcn.00422410
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xac]
call fcn.004912d0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0042fca0
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042af20
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.00491160
add esp, 0x10
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042fca0
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.0041aab0
movzx eax, al
test eax, eax
je 0x491a31
lea ecx, [ebp - 0xac]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004921e0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.00419ce0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004185c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004185c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004185c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004185c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004185c0
jmp 0x491873
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.0057bdba
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret