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

Disassembly:
mov r11, rsp
sub rsp, 0xa8
mov rax, qword [0x10000e360]
mov qword [rsp + 0x60], rax
mov eax, dword [0x1000037e4]
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x18], rdi
mov dword [r11 - 0x50], eax
movzx eax, word [0x1000037e8]
mov qword [r11 - 0x20], r12
lea rcx, [r11 - 0x50]
mov qword [r11 - 0x28], r13
mov word [rcx + 4], ax
xor eax, eax
mov r10, rdx
mov qword [r11 - 0x78], rax
mov qword [r11 - 0x30], r14
mov rsi, r8
mov dword [rsp + 0x28], eax
lea r8d, [rax + 1]
xor r9d, r9d
mov edx, 0x80000000
mov rcx, r10
mov qword [r11 - 0x38], r15
mov dword [rsp + 0x50], 0x9001b1
mov r12d, 0x2000
mov r14d, 0x70000
mov edi, eax
mov ebp, eax
mov dword [rsp + 0x40], eax
mov r13d, eax
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov r15, rax
je 0x100008437
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, r14d
cmovb r14d, eax
cmp dword [0x10000e4f0], r13d
je 0x100008429
mov r12d, 0x200
lea r14d, [rax - 0x40]
cmp r14d, r12d
jae 0x10000843e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10000865a
sub r14d, r12d
mov qword [rsp + 0xc8], rbx
mov ecx, r14d
call qword [sym.imp.msvcrt.dll_malloc]
mov r8d, r14d
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x48], rax
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rsp + 0x48]
lea r9, [rsp + 0x54]
mov r8d, r14d
mov rcx, r15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r15
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1000084b2
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.msvcrt.dll_free]
xor eax, eax
jmp 0x100008652
xor ebx, ebx
add r14d, 0xffffffd8
mov ecx, ebx
je 0x1000085df
mov r8, qword [rsp + 0x48]
lea rax, [r8 + 0x11]
nop
nop
cmp byte [rax - 0x11], 0x89
jne 0x10000852f
cmp byte [rax + 0xf], 0xb8
jne 0x10000852f
cmp byte [rax], 0xe8
jne 0x10000852f
cmp byte [rax - 0x10], 5
jne 0x10000852f
cmp byte [rax - 6], 0x89
jne 0x10000852f
cmp byte [rax + 5], 0x48
jne 0x10000852f
cmp byte [rax + 6], 0x8d
jne 0x10000852f
cmp byte [rax + 0xc], 0x33
jne 0x10000852f
cmp byte [rax + 0xd], 0xd2
jne 0x10000852f
movzx edx, byte [rax - 0xb]
cmp dl, 0xb8
jne 0x10000851d
mov r13d, 1
lea ebp, [rcx + r12 + 6]
inc edi
jmp 0x10000852f
cmp dl, 0xe8
jne 0x10000852f
mov r13d, 2
lea ebp, [rcx + r12 + 6]
inc edi
inc ecx
inc rax
cmp ecx, r14d
jb 0x1000084d0
cmp edi, 1
jne 0x1000085e4
test ebp, ebp
je 0x1000085e4
mov ecx, ebp
mov edi, ebx
mov eax, ebx
sub ecx, r12d
lea rcx, [r8 + rcx + 0x16]
cmp byte [rcx - 0x16], 0x48
jne 0x1000085cd
cmp byte [rcx + 6], 0x48
jne 0x1000085cd
cmp byte [rcx], 0x89
jne 0x1000085cd
cmp byte [rcx - 0x15], 0x8d
jne 0x1000085cd
cmp byte [rcx - 0x11], 0x41
jne 0x1000085cd
cmp byte [rcx - 0x10], 0xb9
jne 0x1000085cd
cmp byte [rcx - 8], 0x45
jne 0x1000085cd
cmp byte [rcx - 7], 0x33
jne 0x1000085cd
cmp byte [rcx - 5], 0x48
jne 0x1000085cd
movzx edx, byte [rcx - 0xb]
cmp dl, 0xb1
jne 0x1000085af
lea edx, [rax + rbp + 0xb]
mov r13d, 1
mov dword [rsi + 0xc], 0xffffffff
mov dword [rsp + 0x40], edx
inc edi
jmp 0x1000085cd
cmp dl, 0xf
jne 0x1000085cd
cmp byte [rcx - 0xa], 0x94
jne 0x1000085cd
lea edx, [rax + rbp + 0xb]
mov r13d, 2
mov dword [rsi + 0xc], ebx
mov dword [rsp + 0x40], edx
inc edi
inc eax
inc rcx
cmp eax, 0x100
jb 0x100008558
jmp 0x1000085e4
mov r8, qword [rsp + 0x48]
mov rcx, r8
call qword [sym.imp.msvcrt.dll_free]
cmp edi, 1
mov dword [rsi + 0x1dc], edi
jne 0x10000863c
mov eax, dword [rsp + 0x40]
mov dword [rsi + 4], ebp
mov dword [rsi + 0xc], ebx
mov dword [rsi + 8], eax
mov dword [rsi], r13d
mov dword [rsi + 0x10], 5
lea rcx, [rsp + 0x58]
mov eax, dword [rcx]
mov dword [rsi + 0x18], eax
movzx eax, byte [rcx + 4]
lea rcx, [rsp + 0x50]
mov byte [rsi + 0x1c], al
movzx eax, word [rcx]
mov dword [rsi + 0x14], 3
mov word [rsi + 0x38], ax
movzx eax, byte [rcx + 2]
mov byte [rsi + 0x3a], al
jmp 0x10000864d
mov dword [rsi + 4], ebx
mov dword [rsi + 8], ebx
mov dword [rsi + 0xc], ebx
mov dword [rsi], ebx
mov dword [rsi + 0x10], ebx
mov dword [rsi + 0x14], ebx
mov eax, 1
mov rbx, qword [rsp + 0xc8]
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 rcx, qword [rsp + 0x60]
call fcn.10000afa0
add rsp, 0xa8
ret