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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
xor esi, esi
mov rbx, r8
mov r12, rdx
mov qword [rdx], rsi
mov qword [rax - 0x38], rsi
mov qword [r8], rsi
mov dword [rax - 0x40], 0x80
lea r8d, [rsi + 1]
xor r9d, r9d
mov edx, 0x80000000
mov r15, rcx
mov dword [rax - 0x48], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1001348cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
lea rbp, [0x1001653b8]
cmp rcx, rbp
je 0x1001348b9
test byte [rcx + 0x1c], 1
je 0x1001348b9
cmp byte [rcx + 0x19], 2
jb 0x1001348b9
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0xa]
lea r8, [0x100002e60]
mov r9, r15
mov dword [rsp + 0x20], eax
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
movzx ebx, di
or ebx, 0x80070000
cmp edi, esi
cmovle ebx, edi
jmp 0x100134a80
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea rbp, [0x1001653b8]
cmp eax, esi
jne 0x100134932
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x10013491f
test byte [rcx + 0x1c], 1
je 0x10013491f
cmp byte [rcx + 0x19], 2
jb 0x10013491f
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0xb
mov r9, r15
mov dword [rsp + 0x20], eax
call fcn.10001daa4
movzx ebx, di
or ebx, 0x80070000
cmp edi, esi
cmovle ebx, edi
jmp 0x100134a70
cmp dword [rbx + 4], esi
je 0x100134941
mov ebx, 0x80780028
jmp 0x100134a70
mov edi, dword [rbx]
test dil, 1
jne 0x100134937
lea eax, [rdi + 2]
cmp eax, edi
jb 0x100134954
mov ebx, esi
jmp 0x10013495c
or eax, 0xffffffff
mov ebx, 0x80070216
cmp ebx, esi
jge 0x1001349a2
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100134998
test byte [rcx + 0x1c], 1
je 0x100134998
cmp byte [rcx + 0x19], 2
jb 0x100134998
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0xc
mov r9d, edi
mov dword [rsp + 0x20], 2
call fcn.10001e8b4
mov ebx, 0x80070216
jmp 0x100134a70
mov ecx, eax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
xor edx, edx
mov rsi, rax
cmp rax, rdx
jne 0x1001349be
mov ebx, 0x8007000e
jmp 0x100134a60
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x78]
mov r8d, edi
mov rdx, rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
cmp eax, edx
jne 0x100134a2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [0x1001653b8]
cmp rcx, rbp
je 0x100134a19
test byte [rcx + 0x1c], 1
je 0x100134a19
cmp byte [rcx + 0x19], 2
jb 0x100134a19
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0xd
mov r9, r15
mov dword [rsp + 0x20], eax
call fcn.10001daa4
movzx ebx, di
xor edx, edx
or ebx, 0x80070000
cmp edi, edx
cmovle ebx, edi
jmp 0x100134a60
cmp dword [rsp + 0x78], edi
je 0x100134a4b
lea r8, [0x100014aa8]
lea rcx, [0x100014ac8]
mov edx, 0x8a
call fcn.100099ad8
xor edx, edx
mov qword [r12], rsi
mov rax, qword [r12]
mov rcx, rdi
shr rcx, 1
mov rsi, rdx
mov word [rax + rcx*2], dx
cmp rsi, rdx
je 0x100134a6e
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor esi, esi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x1001653b8]
cmp ebx, esi
jge 0x100134ab1
cmp rcx, rbp
je 0x100134ab1
test byte [rcx + 0x1c], 1
je 0x100134ab1
cmp byte [rcx + 0x19], 2
jb 0x100134ab1
mov rcx, qword [rcx + 0x10]
lea r8, [0x100002e60]
mov edx, 0xe
mov r9, r15
mov dword [rsp + 0x20], ebx
call fcn.10001daa4
lea r11, [rsp + 0x40]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret