Function at 0x4021b0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4263d0
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x431540]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4a0], ebx
mov dword [ebp - 0x4a8], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
push eax
mov dword [ebp - 4], ebx
push 0x18
mov dword [ebp - 0x4a0], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x498], esi
cmp esi, 0xffffffff
je 0x4023ef
lea eax, [ebp - 0x494]
push eax
push esi
mov dword [ebp - 0x494], 0x428
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x4023e8
jmp 0x402242
xor ebx, ebx
mov eax, dword [ebp - 0x48c]
mov edx, dword [ebp - 0x490]
mov ecx, dword [ebp - 0x494]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x480]
mov dword [ebp - 0x68], edx
mov edx, dword [ebp - 0x484]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x488]
mov dword [ebp - 0x58], eax
xor eax, eax
mov dword [ebp - 0x5c], edx
mov edx, dword [ebp - 0x478]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x47c]
mov word [ebp - 0x4c], ax
lea eax, [ebp - 0x474]
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x38], 7
mov dword [ebp - 0x3c], ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4022a3
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x474]
lea esi, [ebp - 0x4c]
call fcn.00401c20
mov dword [ebp - 4], 1
xor ecx, ecx
lea eax, [ebp - 0x274]
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4022e1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x274]
lea esi, [ebp - 0x30]
call fcn.00401c20
mov dword [ebp - 4], 2
mov ebx, dword [edi + 4]
lea edx, [ebp - 0x6c]
cmp edx, ebx
jae 0x402357
mov eax, dword [edi]
mov ecx, edx
cmp eax, ecx
ja 0x402357
sub ecx, eax
mov eax, 0x2e8ba2e9
imul ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp ebx, dword [edi + 8]
jne 0x402337
mov ecx, edi
call fcn.00403a20
mov eax, dword [edi + 4]
imul esi, esi, 0x58
add esi, dword [edi]
mov dword [ebp - 0x49c], eax
mov dword [ebp - 0x4a4], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x402383
mov ecx, esi
jmp 0x40237d
cmp ebx, dword [edi + 8]
jne 0x402363
mov ecx, edi
call fcn.00403a20
mov eax, dword [edi + 4]
mov dword [ebp - 0x4a4], eax
mov dword [ebp - 0x49c], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x402383
lea ecx, [ebp - 0x6c]
push eax
call fcn.004063f0
add dword [edi + 4], 0x58
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1c], esi
jb 0x4023a1
mov edx, dword [ebp - 0x30]
push edx
call fcn.00413644
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [ebp - 0x38], esi
jb 0x4023c6
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.00413644
add esp, 4
mov eax, dword [ebp - 0x498]
lea edx, [ebp - 0x494]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x402240
mov esi, dword [ebp - 0x498]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00413635
mov esp, ebp
pop ebp
ret