Function at 0x100008e40
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
sub rsp, 0xb8
mov rax, qword [0x10000e360]
mov qword [rsp + 0x70], rax
mov rax, qword [0x100003820]
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x60], rax
mov rax, qword [0x100003828]
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x58], rax
movzx eax, word [0x100003830]
lea rcx, [r11 - 0x60]
mov qword [r11 - 0x18], rdi
mov word [rcx + 0x10], ax
movzx eax, byte [0x100003832]
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov byte [rcx + 0x12], al
xor eax, eax
mov r10, rdx
mov qword [r11 - 0x30], r14
mov qword [rsp + 0x30], rax
mov rsi, r8
mov qword [r11 - 0x38], r15
mov dword [rsp + 0x28], eax
lea r8d, [rax + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, r10
mov ebp, 0xa0000
mov r12d, 0x5000
mov edi, eax
mov r13d, eax
mov r14d, eax
mov r15d, eax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rbx, rax
mov qword [rsp + 0x50], rax
je 0x100008f9c
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
cmovb ebp, eax
cmp dword [0x10000e4f0], r15d
je 0x100008f21
mov r12d, 0x200
lea ebp, [rax - 0x40]
cmp ebp, r12d
jae 0x100008f36
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10000907a
sub ebp, r12d
mov ecx, ebp
call qword [sym.imp.msvcrt.dll_malloc]
mov r8d, ebp
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x40], rax
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsp + 0x40]
lea r9, [rsp + 0x48]
mov r8d, ebp
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x100008fa3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x10000907a
xor ebx, ebx
add ebp, 0xffffffd8
mov ecx, ebx
je 0x100009024
mov rax, qword [rsp + 0x40]
add rax, 7
cmp byte [rax - 7], 0x44
jne 0x10000901b
cmp byte [rax + 0x15], 0x48
jne 0x10000901b
cmp byte [rax], 0x44
jne 0x10000901b
cmp byte [rax - 6], 0x8b
jne 0x10000901b
cmp byte [rax - 5], 0x9f
jne 0x10000901b
cmp byte [rax - 4], 0x44
jne 0x10000901b
cmp byte [rax + 1], 0x89
jne 0x10000901b
movzx edx, byte [rax + 3]
cmp dl, 0xb8
jne 0x100008ffa
mov r14d, dword [rax + 4]
mov r15d, 1
lea r13d, [rcx + r12 + 0xa]
inc edi
jmp 0x10000901b
cmp dl, 0x8b
jne 0x10000901b
cmp byte [rax + 9], 0x39
jne 0x10000901b
cmp byte [rax + 0xb], 0x3c
jne 0x10000901b
mov r15d, 2
lea r13d, [rcx + r12 + 0xa]
mov r14d, ebx
inc edi
inc ecx
inc rax
cmp ecx, ebp
jb 0x100008fb5
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_free]
cmp edi, 1
mov dword [rsi + 0x1dc], edi
jne 0x10000906a
lea rcx, [rsp + 0x58]
mov dword [rsi + 4], r13d
mov dword [rsi + 0xc], r14d
mov rax, qword [rcx]
mov dword [rsi], r15d
mov dword [rsi + 0x10], 0x12
mov qword [rsi + 0x18], rax
mov rax, qword [rcx + 8]
mov qword [rsi + 0x20], rax
movzx eax, word [rcx + 0x10]
mov word [rsi + 0x28], ax
jmp 0x100009075
mov dword [rsi + 4], ebx
mov dword [rsi + 0xc], ebx
mov dword [rsi], ebx
mov dword [rsi + 0x10], ebx
mov eax, 1
mov r15, qword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov r13, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov rdi, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0xa8]
mov rbp, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0x70]
call fcn.10000afa0
add rsp, 0xb8
ret