Function at 0x40eaa3
Capabilities:
Read file via mapping

Disassembly:
mov eax, 0x465420
call fcn.0045cf28
sub esp, 0x4c
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push ebx
push 0x3a
call fcn.0040f7ca
mov esi, eax
cmp esi, ebx
jge 0x40eace
call fcn.0040dcd4
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.0040645e
mov ecx, dword [ebp + 0xc]
inc esi
lea eax, [ebp - 0x34]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.0040638e
push ebx
push 0x3a
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040f7ca
mov esi, eax
cmp esi, ebx
jge 0x40eb06
call fcn.0040dcd4
lea eax, [ebp - 0x4c]
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.0040645e
inc esi
lea eax, [ebp - 0x40]
push esi
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0040638e
push ebx
mov byte [ebp - 4], 3
push dword [ebp - 0x4c]
call fcn.0040721c
mov esi, eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040eccc
push dword [eax]
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
push dword [ebp - 0x28]
cmp eax, ebx
mov dword [ebp - 0x14], eax
sete byte [ebp + 0xf]
call fcn.00406aa5
cmp byte [ebp + 0xf], bl
pop ecx
je 0x40eb77
push str.Can_not_open_mapping
call fcn.0040dce0
push esi
push ebx
push ebx
push 4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
mov dword [ebp - 0x18], edi
jne 0x40eb98
push str.MapViewOfFile_error
call fcn.0040dce0
cmp word [edi], bx
mov byte [ebp - 4], 5
je 0x40ebab
push str.Incorrect_mapping_data
call fcn.0040dce0
shr esi, 1
push 0xf
lea ecx, [ebp - 0x28]
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.0040152b
push 1
mov byte [ebp - 4], 6
pop esi
cmp esi, dword [ebp + 0xc]
jae 0x40ec01
mov ax, word [edi + esi*2]
cmp ax, bx
jne 0x40ebf5
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call fcn.0040e76b
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], ebx
mov word [eax], bx
jmp 0x40ebfe
push eax
lea ecx, [ebp - 0x28]
call fcn.00404630
inc esi
jmp 0x40ebca
cmp dword [ebp - 0x24], ebx
je 0x40ec10
push str.data_error
call fcn.0040dce0
push dword [ebp - 0x28]
call fcn.00406aa5
pop ecx
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
cmp dword [ebp - 0x14], ebx
je 0x40ec35
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0xc], ebx
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0040eccc
push dword [eax]
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_OpenEventA]
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x40ec5f
xor esi, esi
jmp 0x40ec67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x28]
call fcn.00406aa5
cmp esi, ebx
pop ecx
jne 0x40ec7d
lea eax, [ebp + 0xc]
push eax
call fcn.004548f0
lea eax, [ebp + 0xc]
push eax
call fcn.004549c0
push dword [ebp - 0x40]
call fcn.00406aa5
push dword [ebp - 0x4c]
call fcn.00406aa5
push dword [ebp - 0x34]
call fcn.00406aa5
push dword [ebp - 0x58]
call fcn.00406aa5
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10