Function at 0x47f610
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x58b471
mov eax, dword fs:[0]
push eax
mov eax, 0x1858
call fcn.00542a50
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x1850], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x186c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x187c]
lea ecx, [esp + 0x30]
push ecx
push 0x1000
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x24], eax
call sub.PSAPI.DLL_EnumProcesses
mov edi, dword [esp + 0x30]
xor ebx, ebx
shr edi, 2
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ecx
cmp edi, ebx
jbe 0x47fa0a
mov eax, dword [esp + ecx*4 + 0x5c]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x34], esi
cmp esi, ebx
je 0x47f9df
push 0x7ce
lea edx, [esp + 0x109a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x10a0], cx
call fcn.0052e300
add esp, 0xc
push 0x7d0
lea eax, [esp + 0x1098]
push eax
push ebx
push esi
xor ebp, ebp
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [esp + 0x1094]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47f6f6
sub eax, edx
sar eax, 1
jne 0x47f755
cmp dword [esp + 0x1c], ebx
jne 0x47f720
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esp + 0x1c], eax
cmp eax, ebx
je 0x47f755
cmp dword [esp + 0x20], ebx
jne 0x47f73e
mov ecx, dword [esp + 0x1c]
push str.GetProcessImageFileNameW
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x20], eax
cmp eax, ebx
je 0x47f755
push 0x104
lea edx, [esp + 0x1098]
push edx
push esi
call dword [esp + 0x2c]
mov ebp, 1
lea eax, [esp + 0x1094]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47f760
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x47f9df
lea eax, [esp + 0x1094]
push eax
call fcn.00529fdf
add esp, 4
lea edi, [esp + 0x1094]
call fcn.0047f570
cmp al, bl
je 0x47f9db
mov edi, 7
xor ecx, ecx
lea eax, [esp + 0x1094]
mov dword [esp + 0x24], 1
mov dword [esp + 0x1090], edi
mov dword [esp + 0x108c], ebx
mov word [esp + 0x107c], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47f7d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1098]
push edx
lea esi, [esp + 0x1080]
call fcn.00406150
mov dword [esp + 0x1874], ebx
push ebx
xor eax, eax
push 0x59b2fc
lea esi, [esp + 0x1064]
mov dword [esp + 0x107c], edi
mov dword [esp + 0x1078], ebx
mov word [esp + 0x1068], ax
call fcn.00406150
mov byte [esp + 0x1874], 1
cmp ebp, ebx
je 0x47f8d6
lea ecx, [esp + 0x1094]
push ecx
lea esi, [esp + 0x44]
call fcn.004901a0
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea eax, [esp + 0x1068]
mov byte [esp + 0x1880], 2
call fcn.00405d70
mov byte [esp + 0x1874], 1
cmp dword [esp + 0x58], 8
jb 0x47f87d
mov edx, dword [esp + 0x44]
push edx
call fcn.005273b8
add esp, 4
lea ecx, [esp + 0x105c]
xor eax, eax
push ecx
mov ecx, 0x59b2fc
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov word [esp + 0x48], ax
call fcn.00404b00
test eax, eax
jne 0x47f8ed
lea eax, [esp + 0x1094]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47f8b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x1098]
push edx
lea esi, [esp + 0x1064]
call fcn.00406150
jmp 0x47f8ed
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1080]
push eax
lea eax, [esp + 0x1068]
call fcn.00405d70
mov edi, dword [esp + 0x18]
mov ebp, dword [edi + 0x10]
cmp dword [edi + 0xc], ebp
jbe 0x47f8fe
call fcn.00527d8a
mov esi, dword [edi + 0xc]
cmp esi, dword [edi + 0x10]
jbe 0x47f90b
call fcn.00527d8a
mov edi, dword [edi]
lea ecx, [esp + 0x105c]
push ecx
push ebp
mov eax, esi
mov dword [esp + 0x44], esi
call fcn.00480500
mov ecx, dword [esp + 0x20]
mov esi, dword [ecx + 0x10]
add esp, 8
mov ebp, eax
cmp dword [ecx + 0xc], esi
jbe 0x47f93b
call fcn.00527d8a
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp edi, ebx
je 0x47f945
cmp edi, eax
je 0x47f94e
call fcn.00527d8a
mov ecx, dword [esp + 0x18]
cmp ebp, esi
jne 0x47f960
lea edx, [esp + 0x105c]
push edx
push ecx
call fcn.00403a90
mov edi, 8
cmp dword [esp + 0x1074], edi
jb 0x47f97e
mov eax, dword [esp + 0x1060]
push eax
call fcn.005273b8
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [esp + 0x1874], 0xffffffff
mov dword [esp + 0x1074], esi
mov dword [esp + 0x1070], ebx
mov word [esp + 0x1060], cx
cmp dword [esp + 0x1090], edi
jb 0x47f9bf
mov edx, dword [esp + 0x107c]
push edx
call fcn.005273b8
add esp, 4
xor eax, eax
mov dword [esp + 0x1090], esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x108c], ebx
mov word [esp + 0x107c], ax
mov edi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2c]
inc ecx
mov dword [esp + 0x2c], ecx
cmp ecx, edi
jb 0x47f697
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x47fa06
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x186c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1850]
xor ecx, esp
call fcn.005273c3
add esp, 0x1864
ret 4