Function at 0x1000e39e
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x1002b060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x38]
push eax
push edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x4c], esi
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
test eax, eax
jne 0x1000e3e7
mov eax, 0x200
jmp 0x1000e566
mov ecx, dword [ebp - 0x38]
xor eax, eax
push ebx
xor ebx, ebx
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ebx
je 0x1000e3fe
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x1000e407
or dword [ebp - 0x3c], 2
test cl, 4
je 0x1000e410
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x1000e41b
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x1000e424
or dword [ebp - 0x3c], 0x20
cmp eax, ebx
je 0x1000e431
or dword [ebp - 0x3c], 0x40000000
jmp 0x1000e438
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], ebx
jne 0x1000e44b
or dword [ebp - 0x3c], 0x800000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x1000e4ef
mov esi, dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push ebx
push ebx
push ebx
push edi
call esi
push ebx
lea eax, [ebp - 0x50]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_ReadFile]
call edi
push ebx
push ebx
push 0x24
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x44]
call edi
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x1000e4ec
mov eax, dword [ebp - 0x60]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x1000e4ec
push ebx
push ebx
push eax
push dword [ebp - 0x44]
call esi
push ebx
lea eax, [ebp - 0x50]
push eax
push 4
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x44]
call edi
mov eax, dword [ebp - 0x64]
cmp eax, 0x5a4d
je 0x1000e4e5
cmp eax, 0x454e
je 0x1000e4e5
cmp eax, 0x454c
je 0x1000e4e5
cmp eax, 0x4550
jne 0x1000e4ec
or dword [ebp - 0x3c], 0x400000
mov esi, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
cmp eax, ebx
je 0x1000e4fb
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x1000e507
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp esi, ebx
je 0x1000e537
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.1000e306
push dword [ebp - 0x20]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.1000e306
push dword [ebp - 0x30]
mov dword [esi + 4], eax
push dword [ebp - 0x34]
call fcn.1000e306
add esp, 0x18
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x5c]
cmp esi, ebx
pop ebx
je 0x1000e564
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call fcn.1000e295
movzx eax, word [ebp - 0x40]
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
add esp, 0x10
or eax, ecx
mov dword [esi], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001386a
leave
ret