Function at 0x140055430
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x1b8], rbx
mov rax, qword [0x1400b8518]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
test rdx, rdx
je 0x140055691
add rcx, 8
call fcn.140054590
cmp eax, edi
jb 0x140055602
mov rax, qword [rbx + 0x28]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x1400554a3
mov rcx, rbx
call fcn.140054ab0
xor r9d, r9d
mov edx, 0x80000000
mov rcx, rbx
call fcn.1400547b0
mov dword [rsp + 0x34], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140055720
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], r15
mov word [rsp + 0x48], r15w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rbx + 8]
lea rcx, [rsp + 0x48]
call fcn.14002c750
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.14002ed10
mov rbx, rax
lea rcx, [rbp]
call fcn.140030200
nop
lea rdx, str.Error_when_reading_file
mov rcx, rax
call fcn.14003e470
mov rcx, rax
mov rdx, rbx
call fcn.140051a50
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14003e470
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14003e700
mov rbx, rax
lea rax, vtable.std::exception.0
mov qword [rbp - 0x60], rax
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
lea rcx, [rbx + 8]
lea rdx, [rbp - 0x58]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x60], rax
lea rdx, [rbx + 0x18]
mov qword [rbp - 0x30], 0xf
mov qword [rbp - 0x38], r15
mov byte [rbp - 0x48], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x48]
call fcn.140025680
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x60], rax
lea rdx, [rbx + 0x38]
mov qword [rbp - 0x10], 0xf
mov qword [rbp - 0x18], r15
mov byte [rbp - 0x28], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x28]
call fcn.140025680
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x60], rax
lea rdx, [0x1400b4498]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x48], 0
mov r8d, 0x13
lea rdx, str.Invalid_size_passed
lea rcx, [rsp + 0x48]
call fcn.140025550
nop
mov dword [rsp + 0x30], 2
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, vtable.BaseException.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], r15
mov byte [rbp - 0x80], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140025680
nop
lea rax, vtable.AssertException.0
mov qword [rsp + 0x68], rax
lea rdx, [0x1400b45c0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov qword [rsp + 0x60], 0xf
mov qword [rsp + 0x58], r15
mov byte [rsp + 0x48], r15b
mov r8d, 0x13
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x48]
call fcn.140025550
nop
mov dword [rsp + 0x30], 1
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
lea rax, vtable.BaseException.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x68], 0xf
mov qword [rbp - 0x70], r15
mov byte [rbp - 0x80], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rbp - 0x80]
call fcn.140025680
nop
lea rax, vtable.AssertException.0
mov qword [rsp + 0x68], rax
lea rdx, [0x1400b45c0]
lea rcx, [rsp + 0x68]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.14005ad10
mov rbx, qword [rsp + 0x1b8]
add rsp, 0x170
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret