Function at 0x4ca910
Capabilities:
Enumerate process modules
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4dc
mov eax, dword [ecx]
mov edi, edx
cmp byte [eax], 0
jne 0x4ca931
mov edx, dword [ecx + 4]
cmp dword [edx], 0x64
ja 0x4cad34
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x84], ecx
mov ecx, dword [ecx + 0x10]
lea edx, [ebp - 0xd]
cmp dword [0x588108], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0xe]
mov dword [ebp - 0xb8], ebx
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], ecx
mov dword [ebp - 0x7c], ecx
mov ecx, dword [edi + 8]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0xa8], edi
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], 0x568594
jne 0x4cad1b
mov dword [ebp - 0x78], ecx
mov eax, dword [0x5880e0]
test eax, eax
jne 0x4ca9c5
call sub.kernel32.dll_GetProcessHeap
test eax, eax
je 0x4cadbb
mov dword [0x5880e0], eax
push 0x220
push 0
push eax
call sub.kernel32.dll_HeapAlloc
test eax, eax
je 0x4cadbb
movsd xmm0, qword [0x5665d0]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x2c], 4
movsd qword [ebp - 0x98], xmm0
xorps xmm0, xmm0
movlps qword [ebp - 0x28], xmm0
push 0
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x4cacc6
mov esi, eax
lea eax, [ebp - 0x4e4]
push 0x424
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4e8], 0x428
lea eax, [ebp - 0x4e8]
push eax
push esi
call sub.kernel32.dll_Module32FirstW
cmp eax, 1
jne 0x4cacc0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 4
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
nop dword [eax]
mov eax, 0x208
xor ecx, ecx
nop word [eax + eax]
cmp word [ebp + ecx*2 - 0x2c8], 0
je 0x4caa86
inc ecx
add eax, 0xfffffffe
jne 0x4caa70
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x2c8]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.004c5b70
add esp, 0xc
mov esi, dword [ebp - 0x68]
mov ebx, dword [ebp - 0x60]
mov edx, esi
lea ecx, [ebp - 0x58]
push ebx
call fcn.004d8270
add esp, 4
cmp dword [ebp - 0x58], 0
je 0x4cab44
lea ecx, [ebp - 0x54]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [ebp - 0x88], eax
movsd qword [ebp - 0x90], xmm0
cmp eax, 0x40
mov edi, dword [ebp - 0x8c]
jb 0x4cab30
test edi, edi
je 0x4cab30
movzx ecx, word [edi]
cmp ecx, 0x5a4d
jne 0x4cab30
mov ecx, dword [edi + 0x3c]
mov edx, eax
sub edx, ecx
jb 0x4cab30
cmp edx, 0x78
jb 0x4cab30
cmp dword [edi + ecx], 0x4550
jne 0x4cab30
movzx edx, word [edi + ecx + 0x18]
cmp edx, 0x10b
jne 0x4cab30
movzx edx, word [edi + ecx + 0x14]
sub edx, 0x60
mov dword [ebp - 0x14], edx
mov edx, 0
sbb edx, edx
jae 0x4cab76
nop word cs:[eax + eax]
nop dword [eax]
push edi
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x90]
call sub.kernel32.dll_CloseHandle
mov edi, dword [ebp - 0x20]
cmp dword [ebp - 0x64], 0
je 0x4cab58
push esi
push 0
push dword [0x5880e0]
call sub.kernel32.dll_HeapFree
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0x4e8]
push eax
push esi
call sub.kernel32.dll_Module32NextW
cmp eax, 1
je 0x4caa60
jmp 0x4cacc0
cmp ecx, 0xffffff87
ja 0x4cab30
lea edx, [ecx + 0x78]
sub eax, edx
jb 0x4cab30
cmp eax, dword [ebp - 0x14]
jb 0x4cab30
mov eax, 8
mul dword [edi + ecx + 0x74]
jo 0x4cab30
cmp eax, dword [ebp - 0x14]
ja 0x4cab30
mov eax, dword [edi + ecx + 0x34]
movsd xmm0, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4d4]
movsd qword [ebp - 0x50], xmm1
movsd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x74], eax
push 4
push 8
call fcn.00401630
add esp, 8
test eax, eax
je 0x4cadcc
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x4d0]
mov dword [ebp - 0x70], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
lea edx, [ebp - 0x5b]
movzx eax, word [edx]
mov word [ebp - 0x18], ax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x6c], eax
movzx eax, byte [edx + 2]
mov byte [ebp - 0x16], al
movzx eax, byte [ebp - 0x5c]
mov byte [ebp - 0xf], al
push edi
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x90]
call sub.kernel32.dll_CloseHandle
movzx ecx, byte [ebp - 0xf]
cmp cl, 2
jne 0x4cac20
mov edi, dword [ebp - 0x20]
jmp 0x4cab58
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x58], esi
movzx esi, word [ebp - 0x18]
movsd xmm0, qword [0x5665e0]
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ebx
movzx ebx, byte [ebp - 0x16]
mov byte [ebp - 0x4c], cl
lea ecx, [ebp - 0x54]
sub edx, dword [ebp - 0x14]
mov word [ecx + 9], si
mov byte [ecx + 0xb], bl
mov ecx, dword [ebp - 0x70]
mov dword [ebp - 0x48], ecx
movsd qword [ebp - 0x44], xmm0
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x28]
jne 0x4cac7b
lea ecx, [ebp - 0x2c]
call fcn.004b2270
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x1c]
jmp 0x4cac81
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
movsd xmm0, qword [ebp - 0x40]
mov eax, edx
inc edx
mov dword [ebp - 0x30], ecx
shl eax, 5
mov dword [ebp - 0x34], edx
movsd qword [ecx + eax + 0x18], xmm0
movsd xmm0, qword [ebp - 0x48]
movsd qword [ecx + eax + 0x10], xmm0
movsd xmm0, qword [ebp - 0x58]
movsd xmm1, qword [ebp - 0x50]
movsd qword [ecx + eax + 8], xmm1
movsd qword [ecx + eax], xmm0
mov dword [ebp - 0x24], edx
jmp 0x4cab5b
push esi
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x24]
movsd xmm1, qword [ebp - 0x9c]
mov ecx, dword [ebp - 0x94]
movsd xmm0, qword [ebp - 0x2c]
mov dword [ebp - 0x4e0], eax
mov dword [ebp - 0x4d4], ecx
movsd qword [ebp - 0x4dc], xmm1
movsd qword [0x588108], xmm0
mov ecx, dword [ebp - 0x78]
movsd xmm0, qword [ebp - 0x4e0]
movsd xmm1, qword [ebp - 0x4d8]
movsd qword [0x588110], xmm0
movsd qword [0x588118], xmm1
xor eax, eax
sub ecx, 1
cmovb ecx, eax
lea edx, [ebp - 0xa4]
call fcn.004d84b0
cmp byte [ebp - 0xe], 0
je 0x4cad38
xor ecx, ecx
jmp 0x4cadae
cmp byte [ebp - 0xd], 0
jne 0x4cad9a
mov eax, dword [ebp - 0x80]
cmp byte [eax], 0
je 0x4cad9a
mov eax, dword [ebp - 0x7c]
mov edx, dword [edi + 8]
mov dword [ebp - 0x4e0], 3
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], 0
sub esp, 0x20
lea eax, [ebp - 0x4e8]
lea ecx, [ebp - 0x58]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.004cd0b0
add esp, 0x20
mov ecx, dword [ebp - 0x38]
mov byte [ecx], al
mov eax, dword [ebp - 0x58]
inc dword [eax + 4]
mov eax, dword [ebp - 0x84]
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax + 4]
inc dword [eax]
cmp byte [ecx], 0
sete cl
mov eax, ecx
add esp, 0x4dc
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 0x220
call fcn.004085f0
add esp, 8
ud2
push 4
push 8
call fcn.004085f0
add esp, 8
ud2