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

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rsi, rcx
mov rbx, rdx
mov rcx, rdx
call fcn.14002c910
test al, al
jne 0x1400bb856
mov byte [rsi + 0x20], al
mov rax, rsi
add rsp, 0x1c0
pop rsi
pop rbx
pop rbp
ret
cmp qword [rbx + 0x18], 8
mov rdx, rbx
mov qword [rsp + 0x1e8], r14
jb 0x1400bb86b
mov rdx, qword [rbx]
mov r9d, 0x40
mov dword [rsp + 0x20], 1
lea rcx, [rbp - 0x80]
lea r8d, [r9 - 0x20]
call fcn.1400b20e0
mov rax, qword [rbp - 0x80]
xor r14d, r14d
xorps xmm0, xmm0
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x48], send
lea edx, [rcx - 0xb0]
mov byte [rsp + 0x30], r14b
mov dword [rsp + rcx + 0x7c], edx
cmp qword [rbp + 0x10], r14
jne 0x1400bba78
cmp qword [rbx + 0x18], 8
mov rcx, rbx
jb 0x1400bb8e1
mov rcx, qword [rbx]
call fcn.1400bc310
mov edx, eax
mov rcx, rbx
call fcn.1400bbcc0
mov rbx, rax
test rax, rax
jne 0x1400bb942
mov rdx, qword [rsp + 0x48]
mov byte [rsi + 0x20], r14b
cmp rdx, 0x10
jb 0x1400bbb83
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bb938
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bbbdb
call fcn.1400e2ce8
jmp 0x1400bbb83
xor edx, edx
mov qword [rsp + 0x1e0], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, eax
xor r8d, r8d
lea rcx, [rsp + 0x30]
mov edi, eax
call fcn.140031ac0
xor r9d, r9d
mov dword [rbp + 0xf0], r14d
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [rsp + 0x48], 0x10
lea rdx, [rsp + 0x30]
lea r9, [rbp + 0xf0]
mov qword [rsp + 0x20], r14
cmovae rdx, qword [rsp + 0x30]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rdi, qword [rsp + 0x1e0]
mov rcx, rbx
test eax, eax
je 0x1400bba2d
movups xmm1, xmmword [rsp + 0x40]
mov qword [rsp + 0x40], r14
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0x48], send
mov byte [rsp + 0x30], r14b
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
mov byte [rsi + 0x20], 1
mov rax, qword [0x1400f1e98]
call rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400bbb70
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bba23
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bbbdb
call fcn.1400e2ce8
jmp 0x1400bbb70
mov byte [rsi + 0x20], r14b
mov rax, qword [0x1400f1e98]
call rax
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400bbb70
mov rcx, qword [rsp + 0x30]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400bba23
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400bbbdb
jmp 0x1400bba23
mov rax, qword [rbp - 0x80]
xor edx, edx
movsxd rcx, dword [rax + 4]
lea r8d, [rdx + 2]
and dword [rbp + rcx - 0x68], 0xfffffffe
lea rcx, [rbp - 0x80]
call fcn.1400c22d0
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400c3eb0
mov rdx, qword [rax + 8]
add rdx, qword [rax]
cmp qword [rsp + 0x48], rdx
jae 0x1400bbacf
mov rbx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
movzx r8d, byte [rbp + 0xf0]
sub rdx, rbx
call fcn.140023890
mov qword [rsp + 0x40], rbx
xor r8d, r8d
lea rcx, [rbp - 0x80]
xor edx, edx
call fcn.1400c22d0
mov rax, qword [rbp - 0x80]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x50], r14
lea rdx, [rsp + 0x60]
mov word [rsp + 0x58], 1
movaps xmm0, xmmword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
mov byte [rsp + 0x69], r14b
movdqa xmmword [rsp + 0x50], xmm0
mov rax, qword [rbp + rcx - 0x38]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x60], rax
test rax, rax
sete byte [rsp + 0x68]
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
call fcn.1400ad5d0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 4
cmp qword [rbp + rcx - 0x38], r14
cmovne eax, r14d
mov dword [rbp + rcx - 0x70], eax
test dword [rbp + rcx - 0x6c], eax
jne 0x1400bbba2
lea rcx, [rbp - 0x80]
call fcn.1400b87b0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
mov byte [rsi + 0x20], 1
mov byte [rsp + 0x30], r14b
mov qword [rsp + 0x48], send
mov qword [rsp + 0x40], r14
lea rcx, [rbp - 0x80]
call fcn.1400b2f40
mov r14, qword [rsp + 0x1e8]
mov rax, rsi
add rsp, 0x1c0
pop rsi
pop rbx
pop rbp
ret
mov edx, 1
lea rcx, [rsp + 0x60]
call fcn.14003b2b0
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rbp + 0x90]
call fcn.140038800
lea rdx, [0x14010e810]
lea rcx, [rbp + 0x90]
call fcn.1400e3d88
int3
call fcn.1400c4dd4
int3