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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xb0]
sub rsp, 0x1b0
mov rax, qword [0x140214ba0]
xor rax, rsp
mov qword [rbp + 0xa8], rax
mov rax, r8
mov r14, rdx
mov qword [rbp + 0x50], rdx
cmp qword [r8 + 0x18], 8
jb 0x1400359c0
mov rax, qword [r8]
xor r15d, r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r15 + 1]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov qword [rbp + 0xa0], rax
cmp rax, 0xffffffffffffffff
jne 0x140035aac
call fcn.1400553d0
lea r8d, [r15 + 1]
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.HashSubstitution.cpp
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x58], 0x42
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.failed_to_open_file:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
lea r8d, [r15 + 8]
lea rdx, str._UNKNOWN
mov rcx, r14
call fcn.1400260f0
nop
mov rcx, rbx
jmp 0x140035f71
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
jne 0x140035b70
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.HashSubstitution.cpp
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x58], 0x4a
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.failed_to_get_file_size:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, r14
call fcn.1400260f0
jmp 0x140035f69
cmp edi, 0xa00000
jbe 0x140035be5
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.HashSubstitution.cpp
mov qword [rbp + 0x50], rax
mov dword [rbp + 0x58], 0x51
lea rdx, [rbp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.file_too_large
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
jmp 0x140035b43
mov qword [rbp + 0x50], r15
mov rcx, rdi
test eax, eax
jne 0x140035bf5
mov rcx, r15
jmp 0x140035c0b
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 1
jb 0x140035ecd
call fcn.1401568a0
mov rsi, rax
mov qword [rbp + 0x50], rax
test rax, rax
je 0x140035ecd
mov dword [rbp + 0x60], r15d
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x60]
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140035cf9
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.HashSubstitution.cpp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x5f
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.failed_to_read_file:
lea rcx, [rsp + 0x58]
call fcn.1400244e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x40], eax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140030540
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, r14
call fcn.1400260f0
nop
mov rcx, rsi
jmp 0x140035f63
mov edx, dword [rbp + 0x60]
cmp edx, edi
je 0x140035d70
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.HashSubstitution.cpp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x64
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.failed_to_read_the_right_amount_of_data
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
jmp 0x140035cc8
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x68], xmm1
mov qword [rbp + 0x78], r15
lea r8, [rbp + 0x68]
mov rcx, rsi
call fcn.140035070
test al, al
jne 0x140035e80
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.HashSubstitution.cpp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x6c
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.Failed_to_generate_MD5_hash
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, r14
call fcn.1400260f0
nop
mov r8, qword [rbp + 0x68]
test r8, r8
je 0x140035cf1
mov rdx, qword [rbp + 0x78]
sub rdx, r8
xor eax, eax
mov rcx, rdx
mov rdi, r8
cmp rdx, 0x1000
rep stosb byte [rdi], al
jb 0x140035e67
mov rcx, qword [r8 - 8]
sub r8, rcx
add rdx, 0x27
lea rax, [r8 - 8]
cmp rax, 0x1f
ja 0x140035fa0
mov r8, rcx
mov rcx, r8
call fcn.14014f900
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x68], xmm0
mov qword [rbp + 0x78], r15
jmp 0x140035cf1
mov r8, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x68]
sub r8, rdx
lea rcx, [rbp + 0x80]
call fcn.1400360e0
movups xmm0, xmmword [rbp + 0x80]
movups xmmword [r14], xmm0
movups xmm1, xmmword [rbp + 0x90]
movups xmmword [r14 + 0x10], xmm1
mov qword [rbp + 0x90], r15
mov qword [rbp + 0x98], 7
mov word [rbp + 0x80], r15w
jmp 0x140035e24
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140055290
lea rax, str.HashSubstitution.cpp
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x50], 0x58
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
call fcn.1400244b0
lea rdx, str.failed_to_allocate_memory
lea rcx, [rsp + 0x58]
call fcn.1400244e0
lea rcx, [rbp - 0x10]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.140128970
nop
mov qword [r14], r15
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
mov r8d, 8
lea rdx, str._UNKNOWN
mov rcx, r14
call fcn.1400260f0
nop
xor ecx, ecx
call fcn.1401568b0
nop
test rbx, rbx
je 0x140035f77
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, r14
mov rcx, qword [rbp + 0xa8]
xor rcx, rsp
call fcn.14014f8e0
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.140156b00
nop
int3