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

Disassembly:
mov dword [rsp + 0x18], r8d
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x70
xor esi, esi
mov dword [rsp + 0x48], 0x18
mov r14d, 3
mov qword [rsp + 0x50], rsi
mov r8d, edx
mov r12d, 1
and r8d, r14d
mov dword [rsp + 0x58], r12d
mov edi, edx
mov r15, rcx
cmp r8d, 2
ja 0x14000c5ab
mov eax, edx
and eax, 9
cmp al, 9
jne 0x14000c5bb
or eax, 0xffffffff
add rsp, 0x70
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0x60], r13
mov r13d, 2
test r8d, r8d
jne 0x14000c67c
mov ebx, 0x80000000
mov eax, r14d
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov dword [rsp + 0x28], 0x80
lea r9, [rsp + 0x48]
mov qword [rsp + 0x68], rbp
mov r8d, r14d
mov rcx, r15
cmp edi, 0x10a
je 0x14000c69c
mov dword [rsp + 0x20], eax
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14001a8fe
mov edx, 8
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__open_osfhandle]
mov ebx, eax
test dil, 8
jne 0x14000c6e2
lea eax, [rbx - 3]
mov edx, ebx
cmp eax, 0x5b
ja 0x14000c663
cmp ebx, 0x1f
jg 0x14001a992
movsxd rax, esi
lea rcx, [0x1400398e8]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
bts eax, edx
mov dword [rcx], eax
mov eax, ebx
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x60]
jmp 0x14000c5ae
lea rdx, [0x1400302a8]
mov ebx, 0x40000000
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
mov eax, r13d
cmovne r14d, r12d
jmp 0x14000c5df
bts edx, 0x1f
mov dword [rsp + 0x20], 3
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x14000c621
mov qword [rsp + 0x30], rsi
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], 0x80
mov r8d, r14d
mov dword [rsp + 0x20], 4
mov edx, ebx
mov rcx, r15
jmp 0x14000c60e
mov ecx, ebx
call fcn.14000f518
test eax, eax
jne 0x14000c63b
lea rdx, [rsp + 0x44]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileSize]
mov dword [rsp + 0x40], eax
cmp qword [rsp + 0x40], rsi
je 0x14000c63b
mov r9d, r13d
mov word [rsp + 0xb0], si
lea r8, [rsp + 0xa8]
mov dword [rsp + 0xa8], 0xffffffff
or edx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14001a919
lea r9, [rsp + 0xb8]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0xb0]
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
test eax, eax
je 0x14001a947
cmp word [rsp + 0xb0], 0x1a
jne 0x14000c63b
jmp 0x14001a96a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x6e
cmove eax, r13d
mov dword [0x1400502f8], eax
or eax, 0xffffffff
jmp 0x14000c665
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x1400502f8], eax
test eax, eax
je 0x14000c741
cmp ebx, 0xffffffff
je 0x14001a93c
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__close]
jmp 0x14001a911
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14001a911
mov r9d, r13d
mov dword [rsp + 0xa8], esi
lea r8, [rsp + 0xa8]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop
jmp 0x14000c76a
mov r9d, r13d
mov dword [rsp + 0xa8], 0xffffffff
lea r8, [rsp + 0xa8]
or edx, 0xffffffff
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop
jmp 0x14000c63b
lea eax, [rbx - 0x20]
shr eax, 5
inc eax
mov esi, eax
shl eax, 5
sub edx, eax
jmp 0x14000c64e