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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x100]
sub rsp, 0x200
mov rax, qword [0x140131c08]
xor rax, rsp
mov qword [rbp + 0xf0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea rcx, [rbp + 0xb0]
call fcn.1400302e0
movsd xmm0, qword [rax]
movsd qword [rsp + 0x40], xmm0
mov ecx, dword [rax + 8]
mov dword [rbp + 0xd0], ecx
lea rax, [0x140131d90]
mov qword [rbp + 0xd8], rax
movaps xmm0, xmmword [rbp + 0xd0]
movdqa xmmword [rbp + 0xd0], xmm0
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14007859e
cmp eax, 1
setne al
test al, al
je 0x1400785a2
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp - 0x80]
call fcn.1400ae200
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.140086f30
nop
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], r12
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], r12b
cmp qword [rbp + 0x10], r12
jne 0x140078399
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140077f61
mov rcx, qword [rbx]
call fcn.1400831b0
mov qword [rbp + 0xb0], r12
mov edx, eax
mov rcx, rbx
call fcn.1400833b0
mov r14, rax
mov qword [rbp + 0xb0], rax
test rax, rax
jne 0x14007807a
mov byte [rdi + 0x20], al
mov dword [rsp + 0x30], 1
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x140077fd6
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140077fd1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400785f3
call fcn.1400ab870
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x30]
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117c78]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call fcn.1400533d0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117a10]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x7c], edx
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
lea rax, [0x1400f61c8]
mov qword [rbp + 0x30], rax
lea rax, [0x1400f60b8]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.1400ba130
jmp 0x1400785ae
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov edx, eax
mov rcx, qword [rbp + 0xa0]
cmp r15, rcx
ja 0x1400780bb
lea rcx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rcx, qword [rbp + 0x90]
mov qword [rbp + 0xa0], rdx
mov byte [rcx + r15], 0
jmp 0x140078120
mov rsi, rdx
sub rsi, rcx
mov r8, qword [rbp + 0xa8]
mov rax, r8
sub rax, rcx
cmp rsi, rax
ja 0x140078103
mov qword [rbp + 0xa0], rdx
lea rbx, [rbp + 0x90]
cmp r8, 0x10
cmovae rbx, qword [rbp + 0x90]
add rbx, rcx
mov r8, rsi
xor edx, edx
mov rcx, rbx
call fcn.1400ae200
mov byte [rbx + rsi], 0
jmp 0x140078120
mov byte [rsp + 0x20], 0
mov r9, rsi
movzx r8d, byte [rsp + 0x34]
mov rdx, rsi
lea rcx, [rbp + 0x90]
call fcn.1400474e0
mov dword [rbp + 0xc0], r12d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rdx, [rbp + 0x90]
cmp qword [rbp + 0xa8], 0x10
cmovae rdx, qword [rbp + 0x90]
mov qword [rsp + 0x20], r12
lea r9, [rbp + 0xc0]
mov r8d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007829b
movups xmm0, xmmword [rbp + 0x90]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0xa0]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov byte [rdi + 0x20], 1
mov dword [rsp + 0x30], 1
mov rcx, r14
mov rax, qword [0x140117a60]
call rax
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x1400781f7
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400781f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400785f3
call fcn.1400ab870
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117c78]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call fcn.1400533d0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117a10]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x7c], edx
lea rax, [rbp + 0x30]
mov qword [rbp + 0xb0], rax
lea rax, [0x1400f61c8]
mov qword [rbp + 0x30], rax
lea rax, [0x1400f60b8]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.1400ba130
jmp 0x1400785ae
mov byte [rdi + 0x20], 0
mov dword [rsp + 0x30], 1
mov rcx, r14
mov rax, qword [0x140117a60]
call rax
nop
mov rdx, qword [rbp + 0xa8]
cmp rdx, 0x10
jb 0x1400782f5
inc rdx
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400782f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400785f3
call fcn.1400ab870
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117c78]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call fcn.1400533d0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117a10]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x7c], edx
lea rax, [rbp + 0x30]
mov qword [rbp + 0xb0], rax
lea rax, [0x1400f61c8]
mov qword [rbp + 0x30], rax
lea rax, [0x1400f60b8]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.1400ba130
jmp 0x1400785ae
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
and dword [rbp + rcx - 0x68], 0xfffffffe
mov esi, 2
mov r8d, esi
lea rcx, [rbp - 0x80]
call fcn.1400565c0
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x80]
call fcn.1400564e0
mov rdx, qword [rax + 8]
add rdx, qword [rax]
cmp qword [rbp + 0xa8], rdx
jae 0x1400783f4
mov rbx, qword [rbp + 0xa0]
sub rdx, rbx
lea rcx, [rbp + 0x90]
call fcn.140046b60
mov qword [rbp + 0xa0], rbx
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.1400565c0
mov qword [rsp + 0x40], r12
mov word [rsp + 0x48], 1
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov rax, qword [rbp + rcx - 0x38]
mov qword [rbp + 0xb0], rax
test rax, rax
sete byte [rbp + 0xb8]
mov byte [rbp + 0xb9], 0
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rbp + 0xd0], xmm0
movaps xmm1, xmmword [rbp + 0xb0]
movdqa xmmword [rsp + 0x40], xmm1
lea r8, [rbp + 0xd0]
lea rdx, [rsp + 0x40]
lea rcx, [rbp + 0x90]
call fcn.1400870d0
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 4
cmp qword [rbp + rcx - 0x38], 0
cmovne eax, r12d
mov dword [rbp + rcx - 0x70], eax
test dword [rbp + rcx - 0x6c], eax
jne 0x1400785f9
lea rcx, [rbp - 0x70]
call fcn.140053c30
test rax, rax
jne 0x1400784c3
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov eax, 6
cmp qword [rbp + rcx - 0x38], 0
cmovne eax, esi
or eax, dword [rbp + rcx - 0x70]
and eax, 0x17
mov dword [rbp + rcx - 0x70], eax
mov edx, dword [rbp + rcx - 0x6c]
and edx, eax
jne 0x140078630
movups xmm0, xmmword [rbp + 0x90]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rbp + 0xa0]
movups xmmword [rdi + 0x10], xmm1
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
mov byte [rdi + 0x20], 1
mov dword [rsp + 0x30], 1
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xa8], 0xf
mov byte [rbp + 0x90], 0
lea rax, [rbp + 0x30]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117c78]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x70]
call fcn.1400533d0
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [0x140117a10]
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x7c], edx
lea rax, [rbp + 0x30]
mov qword [rbp + 0xb0], rax
lea rax, [0x1400f61c8]
mov qword [rbp + 0x30], rax
lea rax, [0x1400f60b8]
mov qword [rbp + 0x30], rax
lea rcx, [rbp + 0x30]
call fcn.1400ba130
jmp 0x1400785ae
test ecx, ecx
jne 0x1400785dc
mov byte [rdi + 0x20], r12b
mov dword [rsp + 0x30], 1
mov rax, rdi
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.1400ab850
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov r8, rbx
lea rdx, [rbp + 0xd0]
lea rcx, str.exists
call fcn.14002fb10
nop
call fcn.14008f288
nop
mov edx, 1
lea rcx, [rbp + 0xd0]
call fcn.14002d590
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x58]
call fcn.14002e7a0
lea rdx, [0x14012f238]
lea rcx, [rsp + 0x58]
call fcn.1400aea18
int3
test dl, 4
je 0x14007863e
lea rbx, str.ios_base::badbit_set
jmp 0x140078653
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, [rbp + 0xd0]
call fcn.14002d590
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.14002e7a0
lea rdx, [0x14012f238]
lea rcx, [rsp + 0x58]
call fcn.1400aea18
int3