Function at 0x421730
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1220
call fcn.004473e0
push ebp
mov dword [esp + 0x14], ecx
push edi
xor ebp, ebp
mov ecx, 0x3ff
xor eax, eax
lea edi, [esp + 0x22c]
mov dword [esp + 0x228], ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x228]
push eax
push 0x1000
push ecx
mov dword [esp + 0x18], ebp
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4219b2
mov eax, dword [esp + 0xc]
mov edx, eax
and edx, 0xfffffffc
cmp edx, 0x1000
jbe 0x421794
mov eax, 0x400
jmp 0x421797
shr eax, 2
cmp eax, ebp
jbe 0x4219b2
push ebx
lea ebx, [esp + 0x22c]
push esi
mov esi, dword [esp + 0x1238]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x2a]
mov word [esp + 0x28], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x28]
push 0x103
rep stosd dword es:[edi], eax
mov ecx, dword [ebx]
lea eax, [esp + 0x2c]
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.00421d60
test eax, eax
je 0x42199a
mov edx, dword [esp + 0x1234]
mov edi, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
mov eax, dword [edx + 4]
cmp eax, ebp
je 0x42180c
mov edi, eax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
push edi
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x42199a
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub ecx, eax
mov edi, eax
sar ecx, 2
cmp ecx, 1
jae 0x421912
mov edx, dword [esi + 4]
cmp edx, ebp
je 0x421853
mov ecx, eax
sub ecx, edx
sar ecx, 2
cmp ecx, 1
ja 0x421858
mov ecx, 1
cmp edx, ebp
jne 0x421860
xor eax, eax
jmp 0x421865
sub eax, edx
sar eax, 2
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x1c], eax
jge 0x421871
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, dword [esi + 4]
add esp, 4
cmp ebp, edi
mov dword [esp + 0x24], eax
mov ebx, eax
je 0x4218a2
push ebp
push ebx
call fcn.004222d0
add ebp, 4
add esp, 8
add ebx, 4
cmp ebp, edi
jne 0x42188e
mov eax, dword [esp + 0x10]
mov ecx, esi
push eax
push 1
push ebx
call fcn.0040eb10
mov ecx, dword [esi + 8]
add ebx, 4
push ebx
push ecx
push edi
mov ecx, esi
call fcn.0040eae0
mov edx, dword [esi + 8]
mov eax, dword [esi + 4]
push edx
push eax
mov ecx, esi
call fcn.00421dd0
mov ecx, dword [esi + 4]
push ecx
call fcn.0044737a
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
add esp, 4
lea eax, [ecx + edx*4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x4218f5
xor edx, edx
jmp 0x4218fd
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
mov ebx, dword [esp + 0x10]
lea edx, [ecx + edx*4 + 4]
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
xor ebp, ebp
jmp 0x42199a
mov ecx, eax
sub ecx, edi
sar ecx, 2
cmp ecx, 1
jae 0x42195a
lea ecx, [edi + 4]
push ecx
push eax
push edi
mov ecx, esi
call fcn.0040eae0
mov eax, dword [esi + 8]
mov ecx, 1
mov edx, eax
push ebx
sub edx, edi
sar edx, 2
sub ecx, edx
push ecx
push eax
mov ecx, esi
call fcn.0040eb10
mov eax, dword [esi + 8]
cmp edi, eax
je 0x421996
mov edx, dword [ebx]
mov dword [edi], edx
add edi, 4
cmp edi, eax
jne 0x42194d
jmp 0x421996
lea ecx, [eax - 4]
push eax
push eax
mov dword [esp + 0x24], ecx
push ecx
mov ecx, esi
call fcn.0040eae0
mov ecx, dword [esi + 8]
lea eax, [ecx - 4]
cmp edi, eax
je 0x421984
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, edi
mov dword [ecx], edx
jne 0x421975
lea eax, [edi + 4]
cmp edi, eax
je 0x421996
mov ecx, dword [ebx]
mov dword [edi], ecx
add edi, 4
cmp edi, eax
jne 0x42198b
add dword [esi + 8], 4
mov eax, dword [esp + 0x18]
add ebx, 4
dec eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], eax
jne 0x4217b7
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x1220
ret 8