Function at 0x420160
Capabilities:
Enumerate process modules

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x462805
push eax
mov eax, 0x1230
mov dword fs:[0], esp
call fcn.00454ff0
mov eax, dword [0x46f42c]
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x124c]
mov dword [esp + 0x1240], 1
push ecx
push ebp
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
mov dword [esp + 0x24], esi
je 0x42045c
push ebx
lea edx, [esp + 0x30]
push edi
push edx
lea eax, [esp + 0x244]
push 0x1000
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x42044f
mov edx, dword [esp + 0x240]
lea ecx, [esp + 0x38]
push 0x208
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [esp + 0x38]
test eax, eax
jne 0x420207
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x420216
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x38]
push ecx
call ebx
mov ebp, eax
mov edi, dword [esp + 0x10]
cmp dword [edi - 0xc], 1
jg 0x420225
cmp ebp, dword [edi - 4]
jle 0x420240
lea ecx, [esp + 0x10]
call fcn.004083e0
push ebp
lea ecx, [esp + 0x14]
call fcn.00408040
test eax, eax
je 0x420271
mov edi, dword [esp + 0x10]
lea eax, [ebp + ebp]
lea edx, [ebp + ebp + 2]
cmp edx, eax
jb 0x420264
mov ecx, eax
lea esi, [esp + 0x38]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x10]
mov dword [edi - 8], ebp
mov ecx, dword [esp + 0x10]
mov word [eax + ecx], 0
mov edx, 0x46fccc
test edx, edx
je 0x42044f
push edx
call ebx
mov ebp, eax
test ebp, ebp
je 0x42044f
mov eax, 0x47a15c
test eax, eax
jne 0x42029a
mov dword [esp + 0x14], eax
jmp 0x4202a5
push 0x47a15c
call ebx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
xor edi, edi
mov ecx, dword [esi - 8]
lea ebx, [esi + ecx*2]
cmp esi, ebx
jae 0x42044f
push 0x46fccc
push esi
call fcn.004553c2
add esp, 8
test eax, eax
je 0x4202e1
lea esi, [eax + ebp*2]
push 0x46fccc
push esi
inc edi
call fcn.004553c2
add esp, 8
test eax, eax
jne 0x4202cb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp esi, ebx
jb 0x4202b9
test edi, edi
jle 0x42044f
lea ecx, [esp + 0x10]
call fcn.00408290
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
sub ebx, ebp
imul ebx, edi
mov ecx, dword [eax - 8]
mov dword [esp + 0x18], ecx
add ebx, ecx
mov ecx, dword [eax - 4]
mov dword [esp + 0x20], ebx
cmp ecx, ebx
jl 0x420328
cmp dword [eax - 0xc], 1
jle 0x420370
lea edi, [eax - 0xc]
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], edi
mov esi, eax
call fcn.00408040
test eax, eax
je 0x42044f
mov ecx, dword [edi + 4]
lea edx, [ebx + ebx + 2]
shl ecx, 1
cmp edx, ecx
jb 0x420366
mov edi, dword [esp + 0x10]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x1c]
push edi
call fcn.00408420
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
mov edi, eax
lea ecx, [eax + ecx*2]
cmp eax, ecx
mov dword [esp + 0x30], ecx
jae 0x42044c
push 0x46fccc
push edi
call fcn.004553c2
mov esi, eax
add esp, 8
test esi, esi
je 0x420431
mov eax, dword [esp + 0x14]
mov edx, eax
neg edx
shl edx, 0x1f
sub edx, eax
inc edx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, esi
mov edi, dword [edx - 4]
sub eax, edx
mov edx, dword [esp + 0x1c]
sar eax, 1
sub ecx, eax
sub edi, eax
mov eax, dword [esp + 0x14]
sub ecx, ebp
add edx, edi
add eax, eax
lea ebx, [ecx + ecx]
lea ecx, [esi + ebp*2]
push ebx
add eax, esi
shl edx, 1
push ecx
push edx
push eax
mov dword [esp + 0x38], eax
call fcn.00407090
mov eax, dword [esp + 0x24]
lea ecx, [edi + edi + 2]
add eax, eax
push eax
push 0x47a15c
push ecx
push esi
call fcn.00407060
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
sub edx, ebp
push 0x46fccc
mov word [ebx + edi], 0
mov ebx, dword [esp + 0x3c]
add ebx, edx
push edi
mov dword [esp + 0x40], ebx
call fcn.004553c2
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x4203ae
mov ebx, dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [edi + eax*2 + 2]
mov eax, dword [esp + 0x30]
cmp edi, eax
jb 0x420384
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebx
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [esp + 8]
mov esi, dword [esp + 0x1248]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x42047c
push eax
mov dword [esi], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42048c
mov edx, dword [0x46f42c]
push ecx
mov ecx, esi
mov dword [esi], edx
call fcn.00407430
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x1240], 0
call fcn.00408010
mov ecx, dword [esp + 0x1238]
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x123c
ret