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

Disassembly:
push 0xffffffffffffffff
push 0x43de63
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.00434d24
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 0x414f18
push ebx
mov ecx, eax
call fcn.00415200
mov esi, eax
or ebp, 0xffffffff
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.004185e0
mov edi, dword [esp + 0x80]
lea ecx, [esp + 0x14]
push edi
mov dword [esp + 0x7c], 1
call fcn.00418850
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00415a60
add esp, 8
cmp eax, ebp
mov dword [esi + 8], eax
jne 0x414f84
test esi, esi
je 0x414f62
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.004186a0
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 0x414ff6
test ebx, ebx
je 0x414fc8
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 + 0x28]
test esi, esi
je 0x414f62
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.004186a0
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 0x41503d
test ebx, ebx
je 0x41502b
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 + 0x28]
test esi, esi
je 0x4150b3
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4150b3
cmp word [ebp], 0x5a4d
je 0x415068
test ebx, ebx
je 0x415062
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 + 0x28]
test esi, esi
je 0x4150b3
jmp 0x4150ab
push ebp
lea ecx, [esi + 0x24]
call fcn.00428850
mov edi, dword [ebp + 0x3c]
push 4
add edi, ebp
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x4150d9
test ebx, ebx
je 0x4150a7
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 + 0x28]
test esi, esi
je 0x4150b3
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.004186a0
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.004287e0
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.00428710
mov ecx, esi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], edi
call fcn.004151c0
push ebx
mov ecx, esi
call fcn.00414e30
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.004186a0
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