Function at 0x4aa190
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d081b
mov eax, dword fs:[0]
push eax
mov eax, 0x1a74
call fcn.0055b970
mov eax, dword [0x6385e0]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a80], ecx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4aa213
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error__d_while_opening_process_with_id__d_r_n
call fcn.0054d5e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
xor al, al
jmp 0x4aa566
mov dword [ebp - 0x1020], 0
lea edx, [ebp - 0x1020]
push edx
push 0x18
lea eax, [ebp - 0x1038]
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [0x643678]
test eax, eax
jne 0x4aa246
mov edx, dword [ebp - 0x1024]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x1040], 0
mov dword [ebp - 0x103c], 0x100
mov eax, 1
test eax, eax
je 0x4aa350
xor ecx, ecx
mov eax, dword [ebp - 0x103c]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0054d3af
add esp, 4
mov dword [ebp - 0x1a70], eax
mov eax, dword [ebp - 0x1a70]
mov dword [ebp - 0x1040], eax
mov ecx, dword [ebp - 0x103c]
shl ecx, 2
mov dword [ebp - 0x1048], ecx
mov dword [ebp - 0x1044], 0
lea edx, [ebp - 0x1044]
push edx
mov eax, dword [ebp - 0x1048]
push eax
mov ecx, dword [ebp - 0x1040]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x4aa301
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x1a74], eax
mov ecx, dword [ebp - 0x1a74]
push ecx
call fcn.0054d555
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x4aa566
mov eax, dword [ebp - 0x1044]
cmp eax, dword [ebp - 0x1048]
jae 0x4aa322
mov ecx, dword [ebp - 0x1044]
shr ecx, 2
mov dword [ebp - 0x103c], ecx
jmp 0x4aa350
mov edx, dword [ebp - 0x1040]
mov dword [ebp - 0x1a78], edx
mov eax, dword [ebp - 0x1a78]
push eax
call fcn.0054d555
add esp, 4
mov ecx, dword [ebp - 0x103c]
shl ecx, 1
mov dword [ebp - 0x103c], ecx
jmp 0x4aa25a
mov dword [ebp - 0x104c], 0
jmp 0x4aa36b
mov edx, dword [ebp - 0x104c]
add edx, 1
mov dword [ebp - 0x104c], edx
mov eax, dword [ebp - 0x104c]
cmp eax, dword [ebp - 0x103c]
jae 0x4aa53f
push 0x800
lea ecx, [ebp - 0x101c]
push ecx
mov edx, dword [ebp - 0x104c]
mov eax, dword [ebp - 0x1040]
mov ecx, dword [eax + edx*4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x4aa3cc
mov eax, dword [ebp - 0x104c]
mov ecx, dword [ebp - 0x1040]
mov edx, dword [ecx + eax*4]
push edx
mov eax, dword [ebp + 8]
push eax
push str.GetModuleFileNameEx___failed_on_PID__u__handle__p_r_n
call fcn.0054d5e0
add esp, 0xc
jmp 0x4aa53a
lea ecx, [ebp - 0x101c]
push ecx
lea ecx, [ebp - 0x1058]
call fcn.004b3550
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1058]
call fcn.00404b70
cmp eax, 2
jge 0x4aa3fa
jmp 0x4aa528
push 1
lea ecx, [ebp - 0x1058]
call fcn.004b3df0
movzx edx, ax
cmp edx, 0x3a
je 0x4aa461
push 0
push str.SystemRoot_
lea ecx, [ebp - 0x1058]
call fcn.004b68a0
movzx eax, al
test eax, eax
je 0x4aa461
push 0x104
lea ecx, [ebp - 0x1264]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x4aa461
push 0xb
push 0
lea ecx, [ebp - 0x1058]
call fcn.004b5a90
lea edx, [ebp - 0x1264]
push edx
push 0
lea ecx, [ebp - 0x1058]
call fcn.004b54e0
push 0x7e
lea ecx, [ebp - 0x1058]
call fcn.004b45b0
movzx eax, al
test eax, eax
je 0x4aa4a5
push 0x400
lea ecx, [ebp - 0x1a64]
push ecx
lea ecx, [ebp - 0x1058]
call fcn.004553f0
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea edx, [ebp - 0x1a64]
push edx
lea ecx, [ebp - 0x1058]
call fcn.004b38f0
cmp dword [ebp - 0x104c], 0
jne 0x4aa4f3
push 1
lea eax, [ebp - 0x1058]
push eax
mov ecx, dword [ebp - 0x1a80]
mov ecx, dword [ecx + 4]
call fcn.0041e0d0
mov dword [ebp - 0x1a68], eax
cmp dword [ebp - 0x1a68], 0
je 0x4aa4f1
mov edx, dword [ebp - 0x1a80]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1a68]
call fcn.00409240
jmp 0x4aa528
push 1
lea eax, [ebp - 0x1058]
push eax
mov ecx, dword [ebp - 0x1a80]
mov ecx, dword [ecx + 4]
call fcn.0041e0d0
mov dword [ebp - 0x1a6c], eax
cmp dword [ebp - 0x1a6c], 0
je 0x4aa528
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x1a6c]
call fcn.004a9a70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1058]
call fcn.004b3860
jmp 0x4aa35c
mov eax, dword [ebp - 0x1040]
mov dword [ebp - 0x1a7c], eax
mov ecx, dword [ebp - 0x1a7c]
push ecx
call fcn.0054d555
add esp, 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0054d4f5
mov esp, ebp
pop ebp
ret 4