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

Disassembly:
mov qword [rsp + 0x18], rbp
push rdi
push r12
push r13
sub rsp, 0x90
mov r12, rdx
lea rdx, [rsp + 0x58]
mov r13, r9
mov rbp, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1400f1be6
mov eax, 0x200
jmp 0x1400f1e62
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0xb0], rbx
mov ecx, 1
mov edx, eax
mov ebx, 0
mov qword [rsp + 0xb8], rsi
and edx, 1
cmovne ebx, ecx
test al, 2
je 0x1400f1c13
or ebx, 2
test al, 4
je 0x1400f1c1a
or ebx, 4
mov ecx, eax
and ecx, 0x10
je 0x1400f1c24
or ebx, 0x10
test al, 0x20
je 0x1400f1c2b
or ebx, 0x20
test ecx, ecx
je 0x1400f1c35
bts ebx, 0x1e
jmp 0x1400f1c39
bts ebx, 0x1f
bts ebx, 0x18
test edx, edx
jne 0x1400f1c45
bts ebx, 0x17
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0x28
jbe 0x1400f1d3a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, 2
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x24]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, 0x54ad
cmp word [rsp + 0x30], r11w
jne 0x1400f1d3a
mov edx, dword [rsp + 0x38]
lea eax, [rdx + 0x34]
cmp esi, eax
jbe 0x1400f1d3a
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x40]
mov r8d, 4
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov r11d, dword [rsp + 0x40]
cmp r11d, 0x5a4d
je 0x1400f1d36
cmp r11d, 0x454e
je 0x1400f1d36
cmp r11d, 0x454c
je 0x1400f1d36
cmp r11d, 0x4550
jne 0x1400f1d3a
bts ebx, 0x16
test r12, r12
je 0x1400f1d43
mov dword [r12], ebx
test rbp, rbp
je 0x1400f1d4b
mov dword [rbp], esi
mov rcx, qword [rsp + 0x6c]
mov rsi, qword [rsp + 0xb8]
test r13, r13
je 0x1400f1dd6
mov r8, qword [rsp + 0x64]
movabs r10, 0xfe624e212ac18000
movabs r9, 0xd6bf94d5e57a42bd
add r8, r10
mov rax, r9
imul r8
add rdx, r8
lea r8, [rcx + r10]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov qword [r13], rdx
imul r8
mov rax, r9
add rdx, r8
sar rdx, 0x17
mov r8, rdx
shr r8, 0x3f
add rdx, r8
mov r8, qword [rsp + 0x5c]
mov qword [r13 + 8], rdx
add r8, r10
imul r8
add rdx, r8
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [r13 + 0x10], rdx
mov rbx, qword [rsp + 0xd0]
test rbx, rbx
je 0x1400f1e58
mov qword [rsp + 0x40], rcx
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [rsp + 0x4a]
movzx r11d, word [rsp + 0x48]
movzx ecx, word [rsp + 0x52]
and ax, 0xf
sub r11w, 0x3c
shl r11w, 4
and cx, 0x3f
or r11w, ax
movzx eax, word [rsp + 0x4e]
and eax, 0x1f
shl r11w, 5
movzx edx, r11w
or edx, eax
movzx eax, word [rsp + 0x50]
shl ax, 6
shl edx, 0x10
or cx, ax
shl cx, 5
movzx eax, cx
or edx, eax
movzx eax, word [rsp + 0x54]
add ax, ax
and eax, 0x1f
or edx, eax
mov dword [rbx], edx
mov rbx, qword [rsp + 0xb0]
xor eax, eax
mov rbp, qword [rsp + 0xc0]
add rsp, 0x90
pop r13
pop r12
pop rdi
ret