Function at 0x4a0670
Capabilities:
Enumerate pe sections
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4f9803
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5e4ce0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
push 0x180
call fcn.004cabe6
add esp, 4
mov dword [esp + 0x14], eax
mov ebx, dword [esp + 0x88]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x7c], esi
je 0x4a06c3
push ebx
mov ecx, eax
call fcn.004a0420
mov esi, eax
or ebp, 0xffffffff
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], ebp
call fcn.004537d0
mov edi, dword [esp + 0x84]
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x80], 1
call fcn.00453a60
lea eax, [esp + 0x18]
push ebx
push eax
call fcn.00456880
add esp, 8
cmp eax, ebp
mov dword [esi + 8], eax
je 0x4a074c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esi + 8]
push 0
push 0
push 0
push 2
push 0
push ecx
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x4a0779
test ebx, ebx
je 0x4a074c
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_create_file_mapping
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push edi
push str.filename
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], ebp
call fcn.00453880
xor eax, eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebp, eax
test ebp, ebp
mov dword [esi + 0x10], ebp
jne 0x4a07e3
test ebx, ebx
je 0x4a07b2
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_map_view_of_file
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push edi
push str.filename
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00453880
xor eax, eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
cmp word [ebp], 0x5a4d
je 0x4a083d
test ebx, ebx
je 0x4a080c
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_find_DOS_signature
mov ecx, ebx
call eax
mov edx, dword [ebx]
mov eax, dword [edx + 0x28]
push edi
push str.filename
mov ecx, ebx
call eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00453880
xor eax, eax
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
push ebp
lea ecx, [esi + 0x24]
call fcn.004bb720
mov edi, dword [ebp + 0x3c]
push 4
add edi, ebp
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4a088f
test ebx, ebx
je 0x4a0880
mov edx, dword [ebx]
mov eax, dword [edx + 0x10]
push str.Failed_to_find_NT_header
mov ecx, ebx
call eax
mov eax, dword [esp + 0x84]
mov edx, dword [ebx]
mov edx, dword [edx + 0x28]
push eax
push str.filename
mov ecx, ebx
call edx
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
jmp 0x4a07bc
push edi
lea ecx, [esi + 0x68]
call fcn.004bb560
movzx ecx, word [edi + 6]
movzx eax, word [edi + 0x14]
push ecx
lea eax, [eax + edi + 0x18]
push eax
lea ecx, [esi + 0x164]
call fcn.004bb640
mov ecx, esi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], edi
call fcn.004a03e0
push ebx
mov ecx, esi
call fcn.0049fc70
lea ecx, [esp + 0x18]
mov dword [esp + 0x7c], 0xffffffff
call fcn.00453880
mov eax, esi
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret