Function at 0x413320
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439338
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x450068]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x14], esi
mov edi, ecx
mov dword [ebp - 0x38], edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push esi
mov dword [ebp - 0x38], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x34], ebx
cmp ebx, 0xffffffff
jne 0x4133b9
push esi
push str.File
push str._s:__s
push str.CreateFile
call fcn.004116a0
add esp, 0x10
mov dword [edi + 0x10], 0
xor eax, eax
push 7
mov dword [edi + 0x14], 7
mov ecx, edi
push str.Unknown
mov word [edi], ax
call fcn.00402cf0
jmp 0x413547
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x38], esi
test esi, esi
jne 0x4133f6
push dword [ebp - 0x14]
push str.File
push str._s:__s
push str.CreateFileMapping
call fcn.004116a0
add esp, 0x10
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x413393
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x413444
push dword [ebp - 0x14]
push str.File
push str._s:__s
push 0x449b50
call fcn.004116a0
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
push str.Unknown
mov ecx, edi
call fcn.00402a80
jmp 0x413547
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x413467
push dword [ebp - 0x14]
push str.File__s:_Not_a_valid_DOS_executable.
call fcn.00411490
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x413425
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
je 0x41348c
push dword [ebp - 0x14]
push str.File__s:_Not_a_valid_PE_file.
call fcn.00411490
add esp, 8
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x413425
movzx eax, word [eax + ebx + 4]
lea ecx, [ebp - 0x30]
push str.Unknown
mov dword [ebp - 0x14], eax
call fcn.00402a80
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
mov esi, dword [0x45212c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414c50
cmp dword [ebp - 0x18], esi
je 0x4134ef
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00414c50
mov eax, dword [ebp - 0x18]
cmp eax, dword [0x45212c]
je 0x413565
add eax, 0xc
lea ecx, [ebp - 0x30]
push eax
call fcn.00406420
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
lea eax, [ebp - 0x30]
mov ecx, edi
push eax
call fcn.00402a40
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x413547
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41353d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41356f
push edx
push ecx
call fcn.0041aec9
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041aaeb
mov esp, ebp
pop ebp
ret
push str.invalid_unordered_map_K__T__key
call fcn.00419ab1
call fcn.00422e9e
int3