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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov rbp, r8
mov r12, rdx
mov r14, rcx
mov rcx, qword [0x1001653b8]
lea rsi, [0x1001653b8]
cmp rcx, rsi
je 0x100087b03
test byte [rcx + 0x1c], 1
je 0x100087b03
cmp byte [rcx + 0x19], 4
jb 0x100087b03
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b68]
mov edx, 0x2a
call fcn.10001c7b8
lea rbx, [0x100009600]
test r14, r14
jne 0x100087b23
lea r8, [0x100009740]
mov edx, 0x263
mov rcx, rbx
call fcn.100099ad8
test r12, r12
jne 0x100087b3c
lea r8, [0x100009750]
mov edx, 0x264
mov rcx, rbx
call fcn.100099ad8
test rbp, rbp
jne 0x100087b55
lea r8, [0x100009768]
mov edx, 0x265
mov rcx, rbx
call fcn.100099ad8
and qword [rsp + 0x30], 0
and qword [r12], 0
and dword [rbp], 0
and qword [rsp + 0x78], 0
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
mov rcx, r14
mov dword [rsp + 0x28], 0x2000080
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
jne 0x100087bb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100087cc3
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100087bdc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100087cba
mov rbx, qword [rsp + 0x78]
mov ecx, 0xffffffff
mov eax, ebx
cmp rax, rcx
jbe 0x100087bf4
mov edi, 0x80070216
jmp 0x100087c14
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x100087c56
mov edi, 0x8007000e
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100087cba
test byte [rcx + 0x1c], 1
je 0x100087cba
cmp byte [rcx + 0x19], 2
jb 0x100087cba
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b68]
mov edx, 0x2b
mov r9, r14
mov dword [rsp + 0x20], edi
call fcn.10001daa4
jmp 0x100087cba
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
lea r9, [rsp + 0x70]
xor edi, edi
and qword [rsp + 0x20], rdi
mov r8d, ebx
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100087c98
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100087ca5
mov eax, dword [rsp + 0x70]
mov qword [r12], rsi
xor esi, esi
mov dword [rbp], eax
test rsi, rsi
je 0x100087cb3
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
lea rsi, [0x1001653b8]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jns 0x100087cfb
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100087d28
test byte [rcx + 0x1c], 1
je 0x100087d02
cmp byte [rcx + 0x19], 2
jb 0x100087d02
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b68]
mov edx, 0x2c
mov r9, r14
mov dword [rsp + 0x20], edi
call fcn.10001daa4
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100087d28
test byte [rcx + 0x1c], 1
je 0x100087d28
cmp byte [rcx + 0x19], 4
jb 0x100087d28
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b68]
mov edx, 0x2d
call fcn.10001c7b8
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x40]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret