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

Disassembly:
push rsi
push rdi
sub rsp, 0x88
mov rdi, rcx
mov rcx, qword [rcx + 0x80]
mov rsi, rdx
lea rdx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x140028c35
mov eax, 1
add rsp, 0x88
pop rdi
pop rsi
ret
mov eax, dword [rsp + 0x48]
mov qword [rsp + 0x80], rbx
mov ecx, 1
mov edx, eax
mov ebx, 0
and edx, 1
cmovne ebx, ecx
test al, 2
je 0x140028c5a
or ebx, 2
test al, 4
je 0x140028c61
or ebx, 4
mov ecx, eax
and ecx, 0x10
je 0x140028c6b
or ebx, 0x10
test al, 0x20
je 0x140028c72
or ebx, 0x20
test ecx, ecx
je 0x140028c7c
bts ebx, 0x1e
jmp 0x140028c80
bts ebx, 0x1f
bts ebx, 0x18
test edx, edx
jne 0x140028c8c
bts ebx, 0x17
mov rcx, qword [rdi + 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r11d, eax
mov qword [rdi + 0x68], r11
cmp r11, 0x28
jbe 0x140028dda
cmp qword [rdi + 0x20], 0
jne 0x140028dda
mov rcx, qword [rdi + 0x80]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x80]
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0xa0]
mov r8d, 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rdi + 0x80]
xor r9d, r9d
lea edx, [r9 + 0x24]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x80]
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0xb8]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, 0x54ad
cmp word [rsp + 0xa0], r11w
jne 0x140028dc5
mov edx, dword [rsp + 0xb8]
lea ecx, [rdx + 0x34]
cmp qword [rdi + 0x68], rcx
jbe 0x140028dc5
mov rcx, qword [rdi + 0x80]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rdi + 0x80]
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0x30]
mov r8d, 4
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x30]
cmp r11d, 0x5a4d
je 0x140028dc1
cmp r11d, 0x454e
je 0x140028dc1
cmp r11d, 0x454c
je 0x140028dc1
cmp r11d, 0x4550
jne 0x140028dc5
bts ebx, 0x16
mov rcx, qword [rdi + 0x80]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, qword [rsp + 0x54]
movabs r10, 0xfe624e212ac18000
movabs r9, 0xd6bf94d5e57a42bd
add rcx, r10
mov rax, r9
mov dword [rsi + 0x10], ebx
imul rcx
add rdx, rcx
mov rcx, qword [rsp + 0x5c]
sar rdx, 0x17
lea r8, [rcx + r10]
mov qword [rsp + 0xa0], rcx
mov rax, rdx
lea rcx, [rsp + 0xa0]
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov dword [rsi], edx
imul r8
mov rax, r9
add rdx, r8
sar rdx, 0x17
mov r8, rdx
shr r8, 0x3f
add rdx, r8
mov r8, qword [rsp + 0x4c]
mov dword [rsi + 4], edx
add r8, r10
imul r8
add rdx, r8
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov dword [rsi + 8], edx
lea rdx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [rsp + 0x3a]
movzx r11d, word [rsp + 0x38]
movzx ecx, word [rsp + 0x42]
mov rbx, qword [rsp + 0x80]
and ax, 0xf
sub r11w, 0x3c
and cx, 0x3f
shl r11w, 4
or r11w, ax
movzx eax, word [rsp + 0x3e]
and eax, 0x1f
shl r11w, 5
movzx edx, r11w
or edx, eax
movzx eax, word [rsp + 0x40]
shl ax, 6
shl edx, 0x10
or cx, ax
shl cx, 5
movzx eax, cx
or edx, eax
movzx eax, word [rsp + 0x44]
add ax, ax
and eax, 0x1f
or edx, eax
xor eax, eax
mov dword [rsi + 0xc], edx
add rsp, 0x88
pop rdi
pop rsi
ret