Function at 0x409550
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x445091
mov eax, dword fs:[0]
push eax
mov eax, 0x1488
call fcn.00432360
mov eax, dword [0x459930]
xor eax, esp
mov dword [esp + 0x1480], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x459930]
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 0x4095c0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x1050]
call fcn.00409ab0
mov dword [esp + 0x14a4], edi
xor edx, edx
mov eax, 0x44ca3c
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 0x409603
sub eax, edx
sar eax, 1
push eax
mov eax, 0x44ca3c
lea esi, [esp + 0x1034]
call fcn.00409ab0
mov byte [esp + 0x14a4], 1
mov dword [esp + 0x18], edi
cmp dword [esp + 0x1060], edi
jne 0x409698
cmp dword [esp + 0x1044], edi
jne 0x409698
mov esi, 8
cmp dword [esp + 0x1048], esi
jb 0x409660
mov eax, dword [esp + 0x1034]
push eax
call fcn.0040f815
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 0x409691
mov edx, dword [esp + 0x1050]
push edx
call fcn.0040f815
add esp, 4
xor eax, eax
jmp 0x409795
lea eax, [esp + 0x24]
push eax
push 0x1000
lea ecx, [esp + 0x34]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x409706
mov esi, 8
cmp dword [esp + 0x1048], esi
jb 0x4096ce
mov edx, dword [esp + 0x1034]
push edx
call fcn.0040f815
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 0x409691
mov ecx, dword [esp + 0x1050]
push ecx
call fcn.0040f815
add esp, 4
xor eax, eax
jmp 0x409795
lea ebx, [esp + 0x104c]
call fcn.0040f190
lea ebx, [esp + 0x1030]
call fcn.0040f190
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 0x4097c2
mov ebp, 8
cmp dword [esp + 0x1048], ebp
jb 0x409758
mov ecx, dword [esp + 0x1034]
push ecx
call fcn.0040f815
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 0x409791
mov eax, dword [esp + 0x1050]
push eax
call fcn.0040f815
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.0042d6a0
add esp, 0x1494
ret
xor edi, edi
cmp dword [esp + ecx*4 + 0x2c], edi
je 0x409a07
mov edx, dword [0x44eb00]
mov esi, dword [0x44eaf0]
mov edi, dword [str.nknown_]
mov ebx, dword [0x44eaf8]
mov ebp, dword [0x44eafc]
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.00430280
mov ecx, dword [0x44eb00]
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.00430280
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 0x4098c6
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 0x4098c6
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 0x409988
lea edx, [esp + 0x128c]
push edx
push 0x44eb04
lea ecx, [esp + 0x1070]
call fcn.0040f200
add esp, 8
lea ebx, [esp + 0x1068]
call fcn.0040f190
mov eax, dword [esp + 0x1050]
mov ebp, 8
cmp dword [esp + 0x1064], ebp
jae 0x40993f
lea eax, [esp + 0x1050]
mov edi, dword [esp + 0x1060]
push eax
mov eax, dword [esp + 0x1080]
lea ecx, [esp + 0x106c]
call fcn.00409f00
test eax, eax
jne 0x40998d
mov dword [esp + 0x18], 1
cmp dword [esp + 0x1080], ebp
jb 0x40973f
mov eax, dword [esp + 0x106c]
push eax
call fcn.0040f815
add esp, 4
jmp 0x40973f
mov ebp, 8
cmp dword [esp + 0x1044], 0
je 0x4099db
lea eax, [esp + 0x1084]
push eax
push 0x44eb04
lea ecx, [esp + 0x1070]
call fcn.0040f200
lea ebx, [esp + 0x1070]
call fcn.0040f190
mov ecx, ebx
push ecx
lea ecx, [esp + 0x103c]
call fcn.0040f3e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4099db
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 0x409a03
mov edx, dword [esp + 0x106c]
push edx
call fcn.0040f815
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [esp + 0x14], ecx
cmp ecx, eax
jb 0x4097c0
jmp 0x40973a