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

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov rax, qword [0x10000e360]
mov qword [rsp + 0x68], rax
mov rax, qword [0x100003810]
mov qword [r11 + 0x20], rbx
mov qword [r11 - 8], rbp
mov qword [r11 - 0x50], rax
mov eax, dword [0x100003818]
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
lea rcx, [r11 - 0x50]
mov qword [r11 - 0x20], r12
mov dword [rcx + 8], eax
movzx eax, byte [0x10000381c]
mov qword [r11 - 0x28], r13
mov byte [rcx + 0xc], al
xor eax, eax
mov r10, rdx
mov qword [r11 - 0x30], r14
mov qword [r11 - 0x78], 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 0x100008d0e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebp
cmovb ebp, eax
cmp dword [0x10000e4f0], r15d
je 0x100008c93
mov r12d, 0x200
lea ebp, [rax - 0x40]
cmp ebp, r12d
jae 0x100008ca8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100008de2
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 0x100008d15
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x100008de2
xor ebx, ebx
add ebp, 0xffffffd8
mov ecx, ebx
je 0x100008d96
mov rax, qword [rsp + 0x40]
add rax, 5
cmp byte [rax - 5], 0x59
jne 0x100008d8d
cmp byte [rax + 0x14], 0x57
jne 0x100008d8d
cmp byte [rax], 0x89
jne 0x100008d8d
cmp byte [rax - 4], 0x59
jne 0x100008d8d
cmp byte [rax - 3], 0x8b
jne 0x100008d8d
cmp byte [rax + 3], 0x86
jne 0x100008d8d
cmp byte [rax + 0x15], 0x6a
jne 0x100008d8d
movzx edx, byte [rax + 8]
cmp dl, 0xb8
jne 0x100008d6c
mov r14d, dword [rax + 9]
mov r15d, 1
lea r13d, [rcx + r12 + 0xd]
inc edi
jmp 0x100008d8d
cmp dl, 0x3b
jne 0x100008d8d
cmp byte [rax + 0xe], 0xf
jne 0x100008d8d
cmp byte [rax + 4], 0x24
jne 0x100008d8d
mov r15d, 2
lea r13d, [rcx + r12 + 0xd]
mov r14d, ebx
inc edi
inc ecx
inc rax
cmp ecx, ebp
jb 0x100008d27
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll_free]
cmp edi, 1
mov dword [rsi + 0x1dc], edi
jne 0x100008dd2
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], 0xc
mov qword [rsi + 0x18], rax
mov eax, dword [rcx + 8]
mov dword [rsi + 0x20], eax
jmp 0x100008ddd
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 + 0x70]
mov r14, qword [rsp + 0x78]
mov r13, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x98]
mov rbp, qword [rsp + 0xa0]
mov rbx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x68]
call fcn.10000afa0
add rsp, 0xa8
ret