Function at 0x40b650
Capabilities:
Enumerate process modules

Disassembly:
push 0xffffffffffffffff
push 0x48d796
mov eax, dword fs:[0]
push eax
mov eax, 0x2120
call fcn.00454f40
mov eax, dword [0x4ada68]
xor eax, esp
mov dword [esp + 0x211c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ada68]
xor eax, esp
push eax
lea eax, [esp + 0x2134]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2144]
xor ebx, ebx
push 0xffc
lea eax, [esp + 0x1034]
push ebx
push eax
mov dword [esp + 0x1038], ebx
call fcn.00456da0
push 0xffc
lea ecx, [esp + 0x40]
push ebx
push ecx
mov dword [esp + 0x44], ebx
call fcn.00456da0
push 0x103
lea edx, [esp + 0x2049]
push ebx
push edx
mov byte [esp + 0x2050], bl
call fcn.00456da0
add esp, 0x24
lea eax, [esp + 0x20]
push eax
push 0x1000
lea ecx, [esp + 0x1034]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x40b90e
mov edx, dword [esp + 0x20]
shr edx, 2
mov dword [esp + 0x24], ebx
test edx, edx
jle 0x40b908
lea eax, [esp + 0x102c]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx]
push edx
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [esp + 0x28]
push eax
push 0x1000
lea ecx, [esp + 0x34]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
mov eax, dword [esp + 0x2c]
push 0x104
lea edx, [esp + 0x2030]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x202c]
push ecx
lea ecx, [esp + 0x18]
call fcn.004032c0
mov dword [esp + 0x213c], ebx
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40b7a7
push esi
lea ecx, [esp + 0x18]
call fcn.00403100
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.00450f03
push eax
call fcn.00404890
add esp, 0xc
cmp esi, ebx
jl 0x40b938
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x40b938
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov byte [esi + ecx], bl
mov edi, 0x4b5f28
mov edi, edi
mov edx, dword [edi]
push edx
lea ecx, [esp + 0x1c]
call fcn.004032c0
mov byte [esp + 0x213c], 1
mov edx, dword [esp + 0x18]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x40b81a
push esi
lea ecx, [esp + 0x1c]
call fcn.00403100
mov edx, dword [esp + 0x18]
lea eax, [esi + 1]
push eax
push edx
call fcn.00450f03
push eax
call fcn.00404890
add esp, 0xc
cmp esi, ebx
jl 0x40b938
mov eax, dword [esp + 0x18]
cmp esi, dword [eax - 8]
jg 0x40b938
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x18]
mov byte [esi + ecx], bl
mov ecx, dword [esp + 0x18]
cmp ecx, ebx
je 0x40b88a
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x40b88a
push ecx
push eax
call fcn.00450509
add esp, 8
cmp eax, ebx
je 0x40b88a
sub eax, dword [esp + 0x14]
cmp eax, 0xffffffff
jle 0x40b88a
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x800]
mov ecx, dword [eax]
mov dword [ebp + edx*4], ecx
inc dword [ebp + 0x800]
mov byte [esp + 0x213c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b8b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
cmp edi, 0x4b5f38
jl 0x40b7e0
mov dword [esp + 0x213c], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b8eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
add dword [esp + 0x1c], 4
inc eax
shr ecx, 2
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40b720
mov eax, dword [ebp + 0x800]
mov ecx, dword [esp + 0x2134]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x211c]
xor ecx, esp
call fcn.0044ffb2
add esp, 0x212c
ret 4
push 0x80070057
call fcn.00405e20
int3