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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x14012ac00]
xor rax, rsp
mov qword [rbp + 0xd8], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x60], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rbp + 0xc0]
call fcn.14002e700
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0xc0], ecx
lea rax, [0x14012ae30]
mov qword [rbp + 0xc8], rax
movaps xmm0, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0xc0], xmm0
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x140076bc1
test ecx, ecx
jne 0x1400772d0
jmp 0x140076bc6
cmp eax, 1
jne 0x140076bd7
mov byte [rdi + 0x20], r12b
mov dword [rsp + 0x30], 1
jmp 0x14007724f
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x70]
call fcn.1400bd240
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140076bf5
mov rdx, qword [rbx]
lea rcx, [rbp - 0x70]
call fcn.140086c70
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea r13, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], r13
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
cmp qword [rbp + 0x20], 0
jne 0x140077055
mov rcx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140076c6e
mov rcx, qword [rbx]
call fcn.140081670
mov qword [rbp + 0xc0], r12
mov edx, eax
mov rcx, rbx
call fcn.140081880
mov r14, rax
mov qword [rbp + 0xc0], rax
test rax, rax
jne 0x140076d6c
mov byte [rdi + 0x20], al
mov dword [rsp + 0x30], 1
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140076ce3
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140076cde
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400772e7
call fcn.1400a9a50
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
lea rax, [rbp + 0x40]
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r13
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.140051600
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x74], edx
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x40], rax
jmp 0x14007723b
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov edx, eax
mov rcx, qword [rbp + 0xb0]
cmp r15, rcx
ja 0x140076dad
mov qword [rbp + 0xb0], rdx
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rcx, qword [rbp + 0xa0]
mov byte [rcx + r15], 0
jmp 0x140076e12
mov rsi, rdx
sub rsi, rcx
mov r8, qword [rbp + 0xb8]
mov rax, r8
sub rax, rcx
cmp rsi, rax
ja 0x140076df5
mov qword [rbp + 0xb0], rdx
lea rbx, [rbp + 0xa0]
cmp r8, 0xf
cmova rbx, qword [rbp + 0xa0]
add rbx, rcx
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.1400bd240
mov byte [rbx + rsi], 0
jmp 0x140076e12
mov byte [rsp + 0x20], 0
mov r9, rsi
movzx r8d, byte [rsp + 0x34]
mov rdx, rsi
lea rcx, [rbp + 0xa0]
call fcn.140045780
mov dword [rbp + 0xd0], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 0xf
cmova rdx, qword [rbp + 0xa0]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xd0]
mov r8d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140076f72
movups xmm0, xmmword [rbp + 0xa0]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0xb0]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
mov byte [rdi + 0x20], 1
mov dword [rsp + 0x30], 1
mov rcx, r14
mov rax, qword [str.8c_v_]
call rax
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140076ee9
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140076ee4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400772e7
call fcn.1400a9a50
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r13
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.140051600
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x74], edx
lea rax, [rbp + 0x40]
mov qword [rbp + 0xc0], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x40], rax
jmp 0x14007723b
mov byte [rdi + 0x20], 0
mov dword [rsp + 0x30], 1
mov rcx, r14
mov rax, qword [str.8c_v_]
call rax
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x140076fcc
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140076fc7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400772e7
call fcn.1400a9a50
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r13
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.140051600
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x74], edx
lea rax, [rbp + 0x40]
mov qword [rbp + 0xc0], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x40], rax
jmp 0x14007723b
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
and dword [rbp + rcx - 0x58], 0xfffffffe
mov esi, 2
mov r8d, esi
lea rcx, [rbp - 0x70]
call fcn.1400549e0
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x70]
call fcn.140054900
mov rdx, qword [rax + 8]
add rdx, qword [rax]
cmp qword [rbp + 0xb8], rdx
jae 0x1400770ae
mov rbx, qword [rbp + 0xb0]
sub rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.140044f60
mov qword [rbp + 0xb0], rbx
xor r8d, r8d
lea rcx, [rbp - 0x70]
call fcn.1400549e0
mov qword [rsp + 0x40], r12
mov word [rsp + 0x48], 1
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x28]
mov qword [rbp + 0xc0], rax
test rax, rax
sete byte [rbp + 0xc8]
mov byte [rbp + 0xc9], 0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movaps xmm1, xmmword [rbp + 0xc0]
movdqa xmmword [rbp + 0xc0], xmm1
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xa0]
call fcn.140085270
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 4
cmp qword [rbp + rcx - 0x28], 0
cmovne eax, r12d
mov dword [rbp + rcx - 0x60], eax
test dword [rbp + rcx - 0x5c], eax
jne 0x1400772ed
lea rcx, [rbp - 0x60]
call fcn.140051cc0
test rax, rax
jne 0x14007717d
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx - 0x28], 0
cmovne eax, esi
or eax, dword [rbp + rcx - 0x60]
and eax, 0x17
mov dword [rbp + rcx - 0x60], eax
mov edx, dword [rbp + rcx - 0x5c]
and edx, eax
jne 0x14007727c
movups xmm0, xmmword [rbp + 0xa0]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0xb0]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
mov byte [rdi + 0x20], 1
mov dword [rsp + 0x30], 1
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 0xf
mov byte [rbp + 0xa0], 0
lea rax, [rbp + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x70], r13
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x74], edx
lea rcx, [rbp - 0x60]
call fcn.140051600
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x70], rax
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rbp + rcx - 0x74], edx
lea rax, [rbp + 0x40]
mov qword [rbp + 0xc0], rax
lea rax, vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov qword [rbp + 0x40], rax
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x40], rax
lea rcx, [rbp + 0x40]
call fcn.1400b7afc
mov rax, rdi
mov rcx, qword [rbp + 0xd8]
xor rcx, rsp
call fcn.1400a9a30
mov rbx, qword [rsp + 0x230]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
test dl, 4
je 0x14007728a
lea rbx, str.ios_base::badbit_set
jmp 0x14007729f
test sil, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14002b7e0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x68]
call fcn.14002c9d0
lea rdx, [0x140128098]
lea rcx, [rsp + 0x68]
call fcn.1400ac058
nop
mov r8, rbx
lea rdx, [rbp + 0xc0]
lea rcx, str.exists
call fcn.14002de50
nop
call fcn.14008d658
nop
mov edx, 1
lea rcx, [rsp + 0x40]
call fcn.14002b7e0
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x68]
call fcn.14002c9d0
lea rdx, [0x140128098]
lea rcx, [rsp + 0x68]
call fcn.1400ac058
int3