Function at 0x40aa50
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x446871
mov eax, dword fs:[0]
push eax
mov eax, 0x1488
call fcn.004317d0
mov eax, dword [0x45c970]
xor eax, esp
mov dword [esp + 0x1480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c970]
xor eax, esp
push eax
lea eax, [esp + 0x149c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14ac]
xor edi, edi
xor ecx, ecx
mov word [esp + 0x1050], cx
mov ebx, 7
mov ecx, eax
mov dword [esp + 0x1064], ebx
mov dword [esp + 0x1060], edi
lea esi, [ecx + 2]
lea ebx, [ebx]
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40aac0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1050]
call fcn.00404e50
mov dword [esp + 0x14a4], edi
xor edx, edx
mov eax, 0x44eb64
mov word [esp + 0x1034], dx
mov dword [esp + 0x1048], ebx
mov dword [esp + 0x1044], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40ab03
sub eax, edx
sar eax, 1
push eax
mov eax, 0x44eb64
lea esi, [esp + 0x1034]
call fcn.00404e50
mov byte [esp + 0x14a4], 1
mov dword [esp + 0x18], edi
cmp dword [esp + 0x1060], edi
jne 0x40ab98
cmp dword [esp + 0x1044], edi
jne 0x40ab98
mov esi, 8
cmp dword [esp + 0x1048], esi
jb 0x40ab60
mov eax, dword [esp + 0x1034]
push eax
call fcn.004109a5
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1048], ebx
mov dword [esp + 0x1044], edi
mov word [esp + 0x1034], cx
cmp dword [esp + 0x1064], esi
jb 0x40ab91
mov edx, dword [esp + 0x1050]
push edx
call fcn.004109a5
add esp, 4
xor eax, eax
jmp 0x40ac95
lea eax, [esp + 0x24]
push eax
push 0x1000
lea ecx, [esp + 0x34]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40ac06
mov esi, 8
cmp dword [esp + 0x1048], esi
jb 0x40abce
mov edx, dword [esp + 0x1034]
push edx
call fcn.004109a5
add esp, 4
xor eax, eax
mov dword [esp + 0x1048], ebx
mov dword [esp + 0x1044], edi
mov word [esp + 0x1034], ax
cmp dword [esp + 0x1064], esi
jb 0x40ab91
mov ecx, dword [esp + 0x1050]
push ecx
call fcn.004109a5
add esp, 4
xor eax, eax
jmp 0x40ac95
lea ebx, [esp + 0x104c]
call fcn.00410320
lea ebx, [esp + 0x1030]
call fcn.00410320
mov eax, dword [esp + 0x24]
shr eax, 2
mov ecx, 1
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ecx
cmp eax, ecx
ja 0x40acc2
mov ebp, 8
cmp dword [esp + 0x1048], ebp
jb 0x40ac58
mov ecx, dword [esp + 0x1034]
push ecx
call fcn.004109a5
add esp, 4
xor edx, edx
mov dword [esp + 0x1048], 7
mov dword [esp + 0x1044], 0
mov word [esp + 0x1034], dx
cmp dword [esp + 0x1064], ebp
jb 0x40ac91
mov eax, dword [esp + 0x1050]
push eax
call fcn.004109a5
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x149c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1480]
xor ecx, esp
call fcn.0042ece6
add esp, 0x1494
ret
xor edi, edi
cmp dword [esp + ecx*4 + 0x2c], edi
je 0x40af07
mov edx, dword [0x451424]
mov esi, dword [str._unknown_]
mov edi, dword [0x451418]
mov ebx, dword [0x45141c]
mov ebp, dword [0x451420]
push 0x1f4
lea eax, [esp + 0x12a4]
push 0
push eax
mov dword [esp + 0x1298], esi
mov dword [esp + 0x129c], edi
mov dword [esp + 0x12a0], ebx
mov dword [esp + 0x12a4], ebp
mov dword [esp + 0x12a8], edx
call fcn.00431cb0
mov ecx, dword [0x451424]
add esp, 0xc
push 0x1f4
lea edx, [esp + 0x109c]
push 0
push edx
mov dword [esp + 0x1090], esi
mov dword [esp + 0x1094], edi
mov dword [esp + 0x1098], ebx
mov dword [esp + 0x109c], ebp
mov dword [esp + 0x10a0], ecx
call fcn.00431cb0
mov eax, dword [esp + 0x20]
mov eax, dword [esp + eax*4 + 0x38]
add esp, 0xc
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40adc6
lea ecx, [esp + 0x28]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40adc6
mov ecx, dword [esp + 0x1c]
push 0x104
lea eax, [esp + 0x1290]
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov eax, dword [esp + 0x1c]
push 0x104
lea edx, [esp + 0x1088]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
xor ecx, ecx
mov dword [esp + 0x1080], 7
mov dword [esp + 0x107c], 0
mov word [esp + 0x106c], cx
mov byte [esp + 0x14a4], 2
cmp dword [esp + 0x1060], ecx
je 0x40ae88
lea edx, [esp + 0x128c]
push edx
push 0x44e3c0
lea ecx, [esp + 0x1070]
call fcn.00410390
add esp, 8
lea ebx, [esp + 0x1068]
call fcn.00410320
mov eax, dword [esp + 0x1050]
mov ebp, 8
cmp dword [esp + 0x1064], ebp
jae 0x40ae3f
lea eax, [esp + 0x1050]
mov edi, dword [esp + 0x1060]
push eax
mov eax, dword [esp + 0x1080]
lea ecx, [esp + 0x106c]
call fcn.0040b090
test eax, eax
jne 0x40ae8d
mov dword [esp + 0x18], 1
cmp dword [esp + 0x1080], ebp
jb 0x40ac3f
mov eax, dword [esp + 0x106c]
push eax
call fcn.004109a5
add esp, 4
jmp 0x40ac3f
mov ebp, 8
cmp dword [esp + 0x1044], 0
je 0x40aedb
lea eax, [esp + 0x1084]
push eax
push 0x44e3c0
lea ecx, [esp + 0x1070]
call fcn.00410390
lea ebx, [esp + 0x1070]
call fcn.00410320
mov ecx, ebx
push ecx
lea ecx, [esp + 0x103c]
call fcn.00410570
add esp, 0xc
cmp eax, 0xffffffff
je 0x40aedb
mov dword [esp + 0x18], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x14a4], 1
cmp dword [esp + 0x1080], ebp
jb 0x40af03
mov edx, dword [esp + 0x106c]
push edx
call fcn.004109a5
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x40acc0
jmp 0x40ac3a