Function at 0x414a30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0xffffffffffffffff
push 0x4396f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
push 0x180
call fcn.004313b4
add esp, 4
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 0x84]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x78], esi
je 0x414a78
push ebx
mov ecx, eax
call fcn.00414d60
mov esi, eax
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.004180d0
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x7c], 1
call fcn.00418340
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.004155b0
add esp, 8
cmp eax, ebp
mov dword [esi + 8], eax
jne 0x414ae4
test esi, esi
je 0x414ac2
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00418190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x414b56
test ebx, ebx
je 0x414b28
mov edx, dword [ebx]
push str.Failed_to_create_file_mapping
mov ecx, ebx
call dword [edx + 0x10]
mov eax, dword [ebx]
push edi
push str.filename
mov ecx, ebx
call dword [eax + 0x2c]
test esi, esi
je 0x414ac2
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00418190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
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 0x414b9d
test ebx, ebx
je 0x414b8b
mov eax, dword [ebx]
push str.Failed_to_map_view_of_file
mov ecx, ebx
call dword [eax + 0x10]
mov edx, dword [ebx]
push edi
push str.filename
mov ecx, ebx
call dword [edx + 0x2c]
test esi, esi
je 0x414c13
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x414c13
cmp word [ebp], 0x5a4d
je 0x414bc8
test ebx, ebx
je 0x414bc2
mov edx, dword [ebx]
push str.Failed_to_find_DOS_signature
mov ecx, ebx
call dword [edx + 0x10]
mov eax, dword [ebx]
push edi
push str.filename
mov ecx, ebx
call dword [eax + 0x2c]
test esi, esi
je 0x414c13
jmp 0x414c0b
push ebp
lea ecx, [esi + 0x24]
call fcn.00427850
mov edi, dword [ebp + 0x3c]
push 4
add edi, ebp
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x414c39
test ebx, ebx
je 0x414c07
mov eax, dword [ebx]
push str.Failed_to_find_NT_header
mov ecx, ebx
call dword [eax + 0x10]
mov eax, dword [esp + 0x80]
mov edx, dword [ebx]
push eax
push str.filename
mov ecx, ebx
call dword [edx + 0x2c]
test esi, esi
je 0x414c13
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00418190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
push edi
lea ecx, [esi + 0x68]
call fcn.004277e0
xor eax, eax
mov ax, word [edi + 0x14]
lea ecx, [eax + edi + 0x18]
xor eax, eax
mov ax, word [edi + 6]
push eax
push ecx
lea ecx, [esi + 0x164]
call fcn.00427710
mov ecx, esi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], edi
call fcn.00414d20
push ebx
mov ecx, esi
call fcn.00414990
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.00418190
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret