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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x4c8
mov eax, dword [0x87f03c]
xor eax, esp
mov dword [esp + 0x4c4], 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, [esp + 0x5c]
push 0x424
push 0
push eax
mov dword [esp + 0x28], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x58], 0x428
call fcn.0040a280
mov dword [0x87f3d0], eax
lea eax, [esp + 0x58]
push eax
push edi
mov dword [0x87f3d4], edx
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x40c51f
nop
push 2
push 0
lea eax, [esp + 0x280]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], esi
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movq qword [esp + 0x30], xmm0
test esi, esi
je 0x40c505
push 0x1c
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
jne 0x40c505
cmp dword [esp + 0x30], 0x1000
jne 0x40c505
call fcn.0040a500
mov edi, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x6c]
cdq
push edx
push eax
mov dword [esp + 0x18], edi
call fcn.00409660
mov esi, dword [esp + 0x1c]
push edx
push eax
push str.image_addr
push esi
push edi
call fcn.0040a5b0
push dword [esp + 0x8c]
call fcn.0040a270
push edx
push eax
push str.image_size
push esi
push edi
call fcn.0040a5b0
lea eax, [esp + 0x2ac]
push eax
call fcn.004097d0
push edx
push eax
push str.code_file
push esi
push edi
call fcn.0040a5b0
mov eax, dword [esp + 0xb8]
add esp, 0x4c
test eax, eax
je 0x40c4e4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40c4e4
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x40c4e4
mov ecx, dword [esi + 0xa8]
test ecx, ecx
je 0x40c4e4
lea edi, [ecx + eax]
test edi, edi
je 0x40c4e0
cmp dword [edi + 0xc], 2
jne 0x40c4e0
mov edi, dword [edi + 0x14]
add edi, eax
je 0x40c4e0
cmp dword [edi], 0x53445352
jne 0x40c4e0
lea eax, [edi + 0x18]
push eax
call fcn.0040a580
push edx
push eax
push str.debug_file
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0040a5b0
lea eax, [edi + 4]
push eax
lea eax, [esp + 0x64]
push eax
call fcn.0040afc0
movups xmm0, xmmword [eax]
lea eax, [esp + 0x4b8]
push eax
lea eax, [esp + 0x4a4]
push eax
movups xmmword [esp + 0x4a8], xmm0
call fcn.0040b040
mov byte [esp + 0x4e4], 0x2d
lea eax, [esp + 0x4e5]
push dword [edi + 0x14]
push 0x87a6c0
push 0xa
push eax
call fcn.0040a700
lea eax, [esp + 0x4d0]
push eax
call fcn.0040a580
mov edi, dword [esp + 0x4c]
push edx
push eax
push str.debug_id
push dword [esp + 0x5c]
push edi
call fcn.0040a5b0
add esp, 0x50
lea eax, [esp + 0x498]
push dword [esi + 0x50]
push dword [esi + 8]
push str._08x_X
push 0x32
push eax
call fcn.0040a700
lea eax, [esp + 0x4ac]
push eax
call fcn.0040a580
mov esi, dword [esp + 0x2c]
push edx
push eax
push str.code_id
push esi
push edi
call fcn.0040a5b0
push 0x87a6e0
call fcn.0040a580
push edx
push eax
push str.type
push esi
push edi
call fcn.0040a5b0
add esp, 0x44
jmp 0x40c4e4
mov edi, dword [esp + 0x10]
push dword [esp + 0x14]
push edi
push dword [0x87f3d4]
push dword [0x87f3d0]
call fcn.00409cc0
mov esi, dword [esp + 0x28]
add esp, 0x10
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x58]
push eax
push edi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40c2d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [0x87f3d4]
push dword [0x87f3d0]
call fcn.00409ea0
mov ecx, dword [esp + 0x4d4]
add esp, 8
pop edi
pop esi
xor ecx, esp
call fcn.0040e6c4
mov esp, ebp
pop ebp
ret