Function at 0x100088028
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 0x10008807b
test byte [rcx + 0x1c], 1
je 0x10008807b
cmp byte [rcx + 0x19], 4
jb 0x10008807b
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b28]
mov edx, 0x2a
call fcn.10001c854
lea rbx, [0x100009580]
test r14, r14
jne 0x10008809b
lea r8, [0x1000096c0]
mov edx, 0x263
mov rcx, rbx
call fcn.10009a050
test r12, r12
jne 0x1000880b4
lea r8, [0x1000096d0]
mov edx, 0x264
mov rcx, rbx
call fcn.10009a050
test rbp, rbp
jne 0x1000880cd
lea r8, [0x1000096e8]
mov edx, 0x265
mov rcx, rbx
call fcn.10009a050
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 0x100088129
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x10008823b
lea rdx, [rsp + 0x78]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100088154
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x100088232
mov rbx, qword [rsp + 0x78]
mov ecx, 0xffffffff
mov eax, ebx
cmp rax, rcx
jbe 0x10008816c
mov edi, 0x80070216
jmp 0x10008818c
mov rcx, rax
mov rdi, rax
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov rsi, rax
test rax, rax
jne 0x1000881ce
mov edi, 0x8007000e
lea rsi, [0x1001653b8]
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x100088232
test byte [rcx + 0x1c], 1
je 0x100088232
cmp byte [rcx + 0x19], 2
jb 0x100088232
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b28]
mov edx, 0x2b
mov r9, r14
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
jmp 0x100088232
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 0x100088210
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x10008821d
mov eax, dword [rsp + 0x70]
mov qword [r12], rsi
xor esi, esi
mov dword [rbp], eax
test rsi, rsi
je 0x10008822b
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 0x100088273
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1000882a0
test byte [rcx + 0x1c], 1
je 0x10008827a
cmp byte [rcx + 0x19], 2
jb 0x10008827a
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b28]
mov edx, 0x2c
mov r9, r14
mov dword [rsp + 0x20], edi
call fcn.10001ddb0
mov rcx, qword [0x1001653b8]
cmp rcx, rsi
je 0x1000882a0
test byte [rcx + 0x1c], 1
je 0x1000882a0
cmp byte [rcx + 0x19], 4
jb 0x1000882a0
mov rcx, qword [rcx + 0x10]
lea r8, [0x100003b28]
mov edx, 0x2d
call fcn.10001c854
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