Function at 0x4a13f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
lea edi, [ebp - 0x110]
push ebx
sub esp, 0x130
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 4], edi
mov dword [esp + 8], 0x104
mov dword [esp], eax
mov dword [ebp - 0x120], eax
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
sub esp, 0xc
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x80000000
call dword [sym.imp.kernel32.dll_CreateFileA]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov ecx, dword fs:[0x18]
mov dword [eax + 4], 0x11e5
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x118], ecx
mov dword [esp + 0xc], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp + 8], edi
mov dword [esp + 4], str.cant_open__s:__lu_n
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [ebp - 0x114], ebx
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
sub esp, 0x18
mov ebx, eax
call fcn.0057d110
mov ecx, dword [ebp - 0x118]
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11e8
mov eax, dword [ecx + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str._s:_CreateFileMappingW_failed_err__lu_n
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
mov dword [ebp - 0x11c], eax
call fcn.0057d110
mov ecx, dword [ebp - 0x118]
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11ea
mov eax, dword [ecx + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 4], str._s:_MapViewOfFile_failed_err__lu_n
mov edx, dword [ebp - 0x11c]
test edx, edx
setne al
mov dword [esp], eax
call fcn.0049fda0
mov dword [esp], ebx
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
call ebx
mov eax, dword [ebp - 0x114]
sub esp, 4
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x120]
sub esp, 4
mov dword [esp], edx
call dword [0x79e7c4]
mov edx, dword [ebp - 0x11c]
sub esp, 4
mov ebx, eax
mov dword [esp], edx
call dword [0x79e7c4]
sub esp, 4
mov dword [ebp - 0x114], eax
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11f0
xor eax, eax
mov dword [esp + 8], edi
mov dword [esp + 4], str._s:_invalid_header_n
mov edi, dword [ebp - 0x114]
test edi, edi
setne al
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11f2
movzx ecx, word [edi + 6]
movzx eax, word [ebx + 6]
mov dword [esp + 0xc], 0
mov edx, ecx
mov dword [esp + 0x14], ecx
cmp dx, ax
movzx ecx, ax
mov dword [esp + 8], esi
sete al
mov dword [esp + 0x10], ecx
movzx eax, al
mov dword [esp + 4], str._s:_u:_wrong_FileHeader.NumberOfSections__x____x_n
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11f3
mov edx, dword [edi + 0x28]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], edx
cmp edx, eax
mov dword [esp + 0x10], eax
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str._s:_u:_wrong_OptionalHeader.AddressOfEntryPoint__lx____lx_n
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11f4
mov eax, dword [ebx + 0x74]
mov edx, dword [edi + 0x74]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
cmp edx, eax
mov dword [esp + 0x14], edx
sete al
mov dword [esp + 8], esi
movzx eax, al
mov dword [esp + 4], str._s:_u:_wrong_OptionalHeader.NumberOfRvaAndSizes__lx____lx_n
mov dword [esp], eax
call fcn.0049fda0
mov ecx, dword [ebx + 0x74]
test ecx, ecx
je 0x4a1794
xor edi, edi
lea esi, [esi]
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11f7
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + edi*8 + 0x78]
mov eax, dword [ebx + edi*8 + 0x78]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
cmp ecx, eax
mov dword [esp + 0x10], eax
sete al
mov dword [esp + 0x14], ecx
movzx eax, al
mov dword [esp + 4], str._s:_u:_wrong_OptionalHeader.DataDirectory_i_.VirtualAddress__lx____lx_n
mov dword [esp], eax
call fcn.0049fda0
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11f8
mov eax, dword [ebp - 0x114]
mov ecx, dword [eax + edi*8 + 0x7c]
mov eax, dword [ebx + edi*8 + 0x7c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
cmp ecx, eax
mov dword [esp + 0x10], eax
sete al
mov dword [esp + 0x14], ecx
add edi, 1
movzx eax, al
mov dword [esp + 4], str._s:_u:_wrong_OptionalHeader.DataDirectory_i_.Size__lx____lx_n
mov dword [esp], eax
call fcn.0049fda0
cmp edi, dword [ebx + 0x74]
jb 0x4a16f8
movzx eax, word [ebx + 0x14]
mov ecx, dword [ebp - 0x114]
cmp word [ebx + 6], 0
lea edx, [ebx + eax + 0x18]
movzx eax, word [ecx + 0x14]
lea eax, [ecx + eax + 0x18]
je 0x4a182a
sub eax, edx
mov dword [ebp - 0x118], ebx
xor edi, edi
mov ebx, edx
mov dword [ebp - 0x114], eax
lea esi, [esi]
nop
call fcn.0057d110
mov dword [eax], 0x5d3477
mov dword [eax + 4], 0x11fd
mov dword [esp + 8], 0x28
mov eax, dword [ebp - 0x114]
mov dword [esp], ebx
add eax, ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_memcmp
mov dword [esp + 0xc], edi
test eax, eax
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str._s:_wrong_section__d_n
add edi, 1
add ebx, 0x28
movzx eax, al
mov dword [esp], eax
call fcn.0049fda0
mov eax, dword [ebp - 0x118]
movzx eax, word [eax + 6]
cmp eax, edi
jg 0x4a17c8
mov eax, dword [ebp - 0x11c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret