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

Disassembly:
mov dword [rsp + 0x18], r8d
push rbx
push rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
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 0x140011b2d
mov eax, edx
and eax, 9
cmp al, 9
jne 0x140011b41
mov eax, 0xffffffff
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
test r8d, r8d
jne 0x140011be2
mov ebx, 0x80000000
mov eax, r14d
mov qword [rsp + 0x30], rsi
mov edx, ebx
mov dword [rsp + 0x28], 0x80
lea r9, [rsp + 0x48]
mov r8d, r14d
mov rcx, r15
cmp edi, 0x10a
je 0x140011c04
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 0x14001da34
mov edx, 8
mov rcx, rbp
call qword [sym.imp.msvcrt.dll__open_osfhandle]
mov ebx, eax
test dil, 8
jne 0x140011c4a
lea eax, [rbx - 3]
mov edx, ebx
cmp eax, 0x5b
ja 0x140011bd1
cmp ebx, 0x1f
jg 0x14001dae0
movsxd rax, esi
lea rcx, [0x140043b30]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
bts eax, edx
mov dword [rcx], eax
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
lea rdx, [0x140032490]
mov ebx, 0x40000000
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
mov eax, 2
cmovne r14d, r12d
jmp 0x140011b52
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 0x140011b8f
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 0x140011b7c
mov ecx, ebx
call fcn.14000f7c8
test eax, eax
jne 0x140011ba9
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 0x140011ba9
mov r9d, 2
mov word [rsp + 0xb0], si
lea r8, [rsp + 0xa8]
mov dword [rsp + 0xa8], 0xffffffff
mov rcx, rbp
lea edx, [r9 - 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x14001da58
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 0x14001da8e
cmp word [rsp + 0xb0], 0x1a
jne 0x140011ba9
jmp 0x14001dab4
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x140043b28], eax
cmp eax, 0x6e
jne 0x140011b2d
mov dword [0x140043b28], 2
jmp 0x140011b2d
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x140043b28], eax
test eax, eax
je 0x140011cad
cmp ebx, 0xffffffff
je 0x14001da7f
mov ecx, ebx
call qword [sym.imp.msvcrt.dll__close]
nop
jmp 0x140011b2d
mov rcx, rbp
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
nop
jmp 0x140011b2d
mov r9d, 2
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 0x140011cd6
mov r9d, 2
mov dword [rsp + 0xa8], 0xffffffff
lea r8, [rsp + 0xa8]
mov rcx, rbp
lea edx, [r9 - 3]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
nop
jmp 0x140011ba9
lea eax, [rbx - 0x20]
shr eax, 5
inc eax
mov esi, eax
shl eax, 5
sub edx, eax
jmp 0x140011bbc