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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x1003867c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x10011d9f
mov eax, 0x1000000
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x58]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x10011dc4
mov eax, 0x200
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1001520a
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov esi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x78]
push eax
call esi
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
sbb ecx, dword [ebp - 0x18]
sub dword [ebp - 0x44], eax
sbb dword [ebp - 0x40], ecx
sub dword [ebp - 0x4c], eax
sbb dword [ebp - 0x48], ecx
sub dword [ebp - 0x54], eax
mov eax, 1
sbb dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x58]
xor esi, esi
mov edx, ecx
and edx, 1
cmovne esi, eax
test cl, 2
je 0x10011e2a
or esi, 2
test cl, 4
je 0x10011e32
or esi, 4
mov eax, ecx
and eax, 0x10
je 0x10011e3c
or esi, 0x10
test cl, 0x20
je 0x10011e44
or esi, 0x20
test eax, eax
je 0x10011e50
or esi, 0x40000000
jmp 0x10011e56
or esi, 0x80000000
or esi, 0x1000000
test edx, edx
jne 0x10011e66
or esi, 0x800000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0x28
jbe 0x10011f18
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
push 0x24
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [ebp - 0x10], ax
jne 0x10011f15
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + 0x34]
cmp dword [ebp - 0xc], eax
jbe 0x10011f15
push 0
push 0
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, 0x5a4d
je 0x10011f0f
cmp eax, 0x454e
je 0x10011f0f
cmp eax, 0x454c
je 0x10011f0f
cmp eax, 0x4550
jne 0x10011f15
or esi, 0x400000
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x7c]
test ecx, ecx
je 0x10011f21
mov dword [ecx], esi
mov ecx, dword [ebp - 0x84]
test ecx, ecx
je 0x10011f2d
mov dword [ecx], eax
test ebx, ebx
je 0x10011f66
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.10011c80
push dword [ebp - 0x40]
mov dword [ebx], eax
push dword [ebp - 0x44]
mov dword [ebx + 4], edx
call fcn.10011c80
push dword [ebp - 0x50]
mov dword [ebx + 8], eax
push dword [ebp - 0x54]
mov dword [ebx + 0xc], edx
call fcn.10011c80
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x10011f8e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [ebp - 0x10]
movzx eax, word [ebp - 0xc]
shl ecx, 0x10
or ecx, eax
mov dword [esi], ecx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.1001520a
mov esp, ebp
pop ebp
ret