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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x55ec40]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x474]
push 0x424
push 0
push eax
mov dword [ebp - 0x488], edi
call fcn.004d1bb0
add esp, 0xc
mov dword [ebp - 0x478], 0x428
call fcn.004a1ee0
mov dword [0x561da0], eax
lea eax, [ebp - 0x478]
push eax
push edi
mov dword [0x561da4], edx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x4a9142
push 2
push 0
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x498], 0
mov dword [ebp - 0x484], esi
xorps xmm0, xmm0
movaps xmmword [ebp - 0x4b0], xmm0
movq qword [ebp - 0x4a0], xmm0
test esi, esi
je 0x4a9126
push 0x1c
lea eax, [ebp - 0x4b0]
push eax
push dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x4a9126
cmp dword [ebp - 0x4a0], 0x1000
jne 0x4a9126
call fcn.004a1f70
mov edi, eax
mov dword [ebp - 0x47c], edx
push 0x521988
mov dword [ebp - 0x480], edi
call fcn.004a1ff0
mov esi, dword [ebp - 0x47c]
push edx
push eax
push str.type
push esi
push edi
call fcn.004a20e0
mov eax, dword [ebp - 0x464]
cdq
push edx
push eax
call fcn.004a1350
push edx
push eax
push str.image_addr
push esi
push edi
call fcn.004a20e0
push dword [ebp - 0x460]
call fcn.004a1ed0
push edx
push eax
push str.image_size
push esi
push edi
call fcn.004a20e0
add esp, 0x4c
lea eax, [ebp - 0x258]
push eax
call fcn.004a14e0
push edx
push eax
push str.code_file
push esi
push edi
call fcn.004a20e0
mov edi, dword [ebp - 0x464]
add esp, 0x18
test edi, edi
je 0x4a90fa
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x4a90fa
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x4a90fa
push dword [esi + 0x50]
lea eax, [ebp - 0x38]
push dword [esi + 8]
push str._08x_X
push 0x32
push eax
call fcn.00412b40
lea eax, [ebp - 0x38]
push eax
call fcn.004a1ff0
push edx
push eax
push str.code_id
push dword [ebp - 0x47c]
push dword [ebp - 0x480]
call fcn.004a20e0
add esp, 0x2c
cmp dword [esi + 0xa8], 0
je 0x4a90fa
mov eax, dword [esi + 0xac]
xor edx, edx
mov ecx, 0x1c
div ecx
test edx, edx
jne 0x4a90fa
mov edx, dword [esi + 0xac]
xor ecx, ecx
test edx, edx
je 0x4a90fa
mov eax, dword [esi + 0xa8]
add eax, 0x14
add eax, edi
nop word [eax + eax]
cmp dword [eax - 8], 2
jne 0x4a9072
mov esi, dword [eax]
add esi, edi
cmp dword [esi], 0x53445352
je 0x4a907e
add ecx, 0x1c
add eax, 0x1c
cmp ecx, edx
jb 0x4a9060
jmp 0x4a90fa
lea eax, [esi + 0x18]
push eax
call fcn.004a1ff0
mov edi, dword [ebp - 0x480]
push edx
push eax
push str.debug_file
push dword [ebp - 0x47c]
push edi
call fcn.004a20e0
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x4c0]
push eax
call fcn.004a3050
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x50]
push eax
movups xmmword [ebp - 0x50], xmm0
call fcn.004a30e0
mov byte [ebp - 0x14], 0x2d
lea eax, [ebp - 0x13]
push dword [esi + 0x14]
push 0x517224
push 0xa
push eax
call fcn.00412b40
lea eax, [ebp - 0x38]
push eax
call fcn.004a1ff0
push edx
push eax
push str.debug_id
push dword [ebp - 0x47c]
push edi
call fcn.004a20e0
add esp, 0x50
push dword [ebp - 0x47c]
push dword [ebp - 0x480]
push dword [0x561da4]
push dword [0x561da0]
call fcn.004a17d0
mov esi, dword [ebp - 0x484]
add esp, 0x10
mov edi, dword [ebp - 0x488]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x478]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x4a8ec3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x561da4]
push dword [0x561da0]
call fcn.004a19b0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.004cefd7
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret