Function at 0x4a2d40
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5644a9
mov eax, dword fs:[0]
push eax
mov eax, 0x16a8
call fcn.00484a20
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x16ac], eax
xor eax, eax
mov dword [ebp - 0x1698], eax
mov dword [ebp - 0x16a8], eax
mov dword [ebp - 0x169c], eax
test esi, esi
je 0x4a3248
push 0x208
lea eax, [ebp - 0x424]
push 0
push eax
call fcn.004f0120
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2db4
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push esi
cmp word [esi + ecx*2 - 2], 0x5c
jne 0x4a2dd9
push 0x57483c
jmp 0x4a2dde
push 0x574844
push 0x103
push eax
call fcn.00421550
add esp, 0x10
mov dword [ebp - 0x1650], 0
xor eax, eax
mov dword [ebp - 0x164c], 7
lea ecx, [ebp - 0x424]
mov word [ebp - 0x1660], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2e12
sub ecx, edx
lea eax, [ebp - 0x424]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1660]
call fcn.004048f0
push 1
xor eax, eax
mov dword [ebp - 4], 0
push 0x57446c
lea ecx, [ebp - 0x1678]
mov dword [ebp - 0x1668], 0
mov dword [ebp - 0x1664], 7
mov word [ebp - 0x1678], ax
call fcn.004048f0
push 1
xor eax, eax
mov byte [ebp - 4], 1
push 0x574470
lea ecx, [ebp - 0x1648]
mov dword [ebp - 0x1638], 0
mov dword [ebp - 0x1634], 7
mov word [ebp - 0x1648], ax
call fcn.004048f0
lea eax, [ebp - 0x1678]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1648]
push eax
lea eax, [ebp - 0x1660]
push eax
call fcn.0049adb0
lea ecx, [ebp - 0x1660]
add esp, 0xc
cmp ecx, eax
je 0x4a2ee1
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x4a2ed2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x1660]
call fcn.004048f0
lea ecx, [ebp - 0x1648]
call fcn.004029d0
lea ecx, [ebp - 0x1678]
mov byte [ebp - 4], 0
call fcn.004029d0
lea eax, [ebp - 0x16a4]
push eax
push 0x1000
lea eax, [ebp - 0x1630]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4a2f1e
xor esi, esi
jmp 0x4a320a
push 0x20a
lea eax, [ebp - 0x630]
push 0
push eax
call fcn.004f0120
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x1680], 0
lea ecx, [ebp - 0x630]
mov dword [ebp - 0x167c], 7
mov word [ebp - 0x1690], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a2f70
sub ecx, edx
lea eax, [ebp - 0x630]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1690]
call fcn.004048f0
mov esi, dword [ebp - 0x16a4]
lea eax, [ebp - 0x21c]
push 0x20a
push 0
shr esi, 2
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x16b0], esi
call fcn.004f0120
add esp, 0xc
mov dword [ebp - 0x16a0], 0
xor edi, edi
test esi, esi
je 0x4a31a7
nop
push dword [ebp + edi*4 - 0x1630]
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4a319a
lea eax, [ebp - 0x16b4]
push eax
push 4
lea eax, [ebp - 0x16a0]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4a3193
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x16a0]
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
cmp dword [ebp + 0xc], 0
jne 0x4a30b0
xor eax, eax
mov dword [ebp - 0x1668], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x1664], 7
mov word [ebp - 0x1678], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a3054
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1678]
call fcn.004048f0
mov eax, dword [ebp - 0x1698]
or eax, 1
mov byte [ebp - 4], 4
mov dword [ebp - 0x1698], eax
mov dword [ebp - 0x16a8], eax
lea eax, [ebp - 0x1678]
push eax
lea eax, [ebp - 0x1690]
push eax
call fcn.00499560
add esp, 8
mov byte [ebp - 0x1691], 1
test al, al
jne 0x4a30b7
mov byte [ebp - 0x1691], 0
mov eax, dword [ebp - 0x1698]
mov dword [ebp - 4], 3
test al, 1
je 0x4a30dc
and eax, 0xfffffffe
lea ecx, [ebp - 0x1678]
mov dword [ebp - 0x1698], eax
call fcn.004029d0
cmp byte [ebp - 0x1691], 0
jne 0x4a3193
cmp dword [ebp - 0x164c], 8
lea eax, [ebp - 0x1660]
cmovae eax, dword [ebp - 0x1660]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
je 0x4a3193
inc dword [ebp - 0x169c]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x1648]
call fcn.00402910
mov ecx, dword [ebp - 0x16ac]
mov byte [ebp - 4], 5
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x4a3177
movups xmm0, xmmword [ebp - 0x1648]
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x1638]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [ecx + 4], 0x18
mov dword [ebp - 0x1638], 0
mov dword [ebp - 0x1634], 7
mov word [ebp - 0x1648], ax
jmp 0x4a3184
lea edx, [ebp - 0x1648]
push edx
push eax
call fcn.00405f80
lea ecx, [ebp - 0x1648]
mov byte [ebp - 4], 3
call fcn.004029d0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [ebp - 0x16b0]
jb 0x4a2fd0
mov edx, dword [ebp - 0x167c]
cmp edx, 8
jb 0x4a31e7
mov ecx, dword [ebp - 0x1690]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a31dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a3263
push edx
push ecx
call fcn.004845fc
add esp, 8
mov esi, dword [ebp - 0x169c]
xor eax, eax
mov dword [ebp - 0x1680], 0
mov dword [ebp - 0x167c], 7
mov word [ebp - 0x1690], ax
mov edx, dword [ebp - 0x164c]
cmp edx, 8
jb 0x4a3246
mov ecx, dword [ebp - 0x1660]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a323c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a3268
push edx
push ecx
call fcn.004845fc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret
call fcn.004faed4
call fcn.004faed4
int3