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

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x100
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov qword [r11 + 0x20], rsi
mov rax, qword [0x18013a210]
xor rax, rsp
mov qword [rsp + 0xf8], rax
mov r13, rdx
mov rsi, rcx
mov qword [r11 - 0x60], rcx
cmp qword [rcx + 0x20], 8
jb 0x180067700
lea rdi, [rcx + 8]
mov rcx, qword [rdi]
jmp 0x180067707
lea rdi, [rcx + 8]
mov rcx, rdi
test rcx, rcx
je 0x180067a57
xor edx, edx
call fcn.1800c4e50
test eax, eax
jne 0x180067a57
xor ebx, ebx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0xc0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0xb8], rbx
mov byte [rsp + 0xa8], bl
cmp qword [rsi + 0x20], 8
jb 0x18006774d
mov rcx, qword [rdi]
jmp 0x180067750
mov rcx, rdi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
jne 0x1800677d4
cmp qword [rsp + 0xc0], 0x10
jb 0x180067793
mov rcx, qword [rsp + 0xa8]
call fcn.1800bd964
mov qword [rsp + 0xc0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0xb8], rbx
mov byte [rsp + 0xa8], 0
cmp qword [rsi + 0x20], 8
jb 0x1800677be
mov rcx, qword [rdi]
call fcn.1800bd964
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], rbx
mov word [rdi], bx
xor eax, eax
jmp 0x180067a8f
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r14d, eax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r14d, r14d
jne 0x180067849
cmp qword [rsp + 0xc0], 0x10
jb 0x180067808
mov rcx, qword [rsp + 0xa8]
call fcn.1800bd964
mov qword [rsp + 0xc0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0xb8], rbx
mov byte [rsp + 0xa8], 0
cmp qword [rsi + 0x20], 8
jb 0x180067833
mov rcx, qword [rdi]
call fcn.1800bd964
mov qword [rsi + 0x20], 7
mov qword [rsi + 0x18], rbx
mov word [rdi], bx
xor eax, eax
jmp 0x180067a8f
cmp qword [rsi + 0x20], 8
jb 0x180067853
mov rdi, qword [rdi]
lea rdx, [0x180106660]
mov rcx, rdi
call fcn.1800bdbec
mov r12, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1800678b2
cmp qword [rsp + 0xc0], 0x10
jb 0x180067887
mov rcx, qword [rsp + 0xa8]
call fcn.1800bd964
mov qword [rsp + 0xc0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0xb8], rbx
mov byte [rsp + 0xa8], 0
mov rcx, rsi
call fcn.180003dd0
xor eax, eax
jmp 0x180067a8f
lea eax, [r14 + 1]
mov edi, eax
mov ecx, eax
call fcn.1800bf7cc
mov r15, rax
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1800c1250
mov rdx, r14
mov r9, r12
mov r8d, 1
mov rcx, r15
call fcn.1800be018
mov rcx, r12
call fcn.1800bdc84
mov qword [rsp + reloc.OLEAUT32.dll_SafeArrayDestroy0], 0xf
mov qword [rsp + 0xe8], rbx
mov byte [rsp + 0xd8], 0
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r15
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r15
lea rcx, [rsp + 0xd0]
call fcn.180003710
nop
mov qword [rsp + 0x70], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0x68], rbx
mov byte [rsp + 0x58], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.180003b80
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x78]
call fcn.180075820
nop
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, rax
mov rcx, r13
call fcn.180003570
nop
cmp qword [rsp + 0x98], 8
jb 0x180067991
mov rcx, qword [rsp + 0x80]
call fcn.1800bd964
mov rcx, r15
call fcn.1800bf884
nop
cmp qword [rsp + 0xf0], 0x10
jb 0x1800679b2
mov rcx, qword [rsp + 0xd8]
call fcn.1800bd964
mov qword [rsp + reloc.OLEAUT32.dll_SafeArrayDestroy0], 0xf
mov qword [rsp + 0xe8], rbx
mov byte [rsp + 0xd8], 0
cmp qword [rsp + 0xc0], 0x10
jb 0x1800679e6
mov rcx, qword [rsp + 0xa8]
call fcn.1800bd964
mov qword [rsp + 0xc0], reloc.OLEAUT32.dll_SafeArrayDestroy
mov qword [rsp + 0xb8], rbx
mov byte [rsp + 0xa8], 0
mov rcx, rsi
call fcn.180003dd0
mov eax, 1
jmp 0x180067a8f
mov r8d, 7
lea rdx, str.no_file
mov rcx, r13
call fcn.180012d90
nop
cmp qword [rsi + 0x20], 8
jb 0x180067a7c
mov rcx, qword [rdi]
call fcn.1800bd964
mov qword [rsi + 0x20], 7
xor ebx, ebx
mov qword [rsi + 0x18], rbx
mov word [rdi], bx
xor eax, eax
mov rcx, qword [rsp + 0xf8]
xor rcx, rsp
call fcn.1800bd980
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret