Function at 0x140034d60
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400bc190]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
test rdx, rdx
je 0x140034fa5
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
cmp eax, edi
jb 0x140034f17
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140034dcf
cmp rax, 0xffffffffffffffff
je 0x140034dcf
mov rcx, rbx
call fcn.1400341b0
xor r8d, r8d
mov edx, 0x80000000
mov rcx, rbx
call fcn.140033de0
mov dword [rsp + 0x34], r12d
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x34]
mov r8d, edi
mov rdx, rsi
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140035033
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x58], 7
mov qword [rsp + 0x50], r12
mov word [rsp + 0x40], r12w
lea rdx, [rbx + 8]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rsp + 0x40]
call fcn.140005490
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x70]
call fcn.140011a80
mov rbx, rax
lea rcx, [rbp + 0x20]
call fcn.1400119f0
nop
lea rdx, str.Error_when_reading_file
mov rcx, rax
call fcn.14001e670
mov rcx, rax
mov rdx, rbx
call fcn.140032cf0
mov rcx, rax
lea rdx, str.Last_error:
call fcn.14001e670
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.14001e4c0
mov rbx, rax
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.140057c1c
nop
lea rax, vtable.BaseException.0
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x20], 0xf
mov qword [rbp - 0x28], r12
mov byte [rbp - 0x38], 0
lea rdx, [rbx + 0x18]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x38]
call fcn.140004fa0
nop
lea rax, vtable.ExceptionStream_class_Exception__class_BaseException_.0
mov qword [rbp - 0x50], rax
mov qword [rbp + 8], 0xf
mov qword [rbp], r12
mov byte [rbp - 0x10], 0
lea rdx, [rbx + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rcx, [rbp - 0x10]
call fcn.140004fa0
nop
lea rax, vtable.Exception.0
mov qword [rbp - 0x50], rax
lea rdx, [0x1400b9790]
lea rcx, [rbp - 0x50]
call fcn.14005a4ec
nop
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], 0
mov r8d, 0x13
lea rdx, str.Invalid_size_passed
lea rcx, [rsp + 0x40]
call fcn.1400050b0
nop
mov dword [rsp + 0x30], 2
lea rcx, [rsp + 0x70]
call fcn.140057a14
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x60], 0xf
mov qword [rbp - 0x68], r12
mov byte [rbp - 0x78], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.140004fa0
nop
lea rax, vtable.AssertException.0
mov qword [rsp + 0x70], rax
lea rdx, [0x1400b98f8]
lea rcx, [rsp + 0x70]
call fcn.14005a4ec
nop
mov qword [rsp + 0x58], 0xf
mov qword [rsp + 0x50], r12
mov byte [rsp + 0x40], r12b
mov r8d, 0x13
lea rdx, str.Invalid_data_passed
lea rcx, [rsp + 0x40]
call fcn.1400050b0
nop
mov dword [rsp + 0x30], 1
lea rcx, [rsp + 0x70]
call fcn.140057a14
nop
lea rax, vtable.BaseException.0
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x60], 0xf
mov qword [rbp - 0x68], r12
mov byte [rbp - 0x78], 0
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.140004fa0
nop
lea rax, vtable.AssertException.0
mov qword [rsp + 0x70], rax
lea rdx, [0x1400b98f8]
lea rcx, [rsp + 0x70]
call fcn.14005a4ec
nop
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1400579a0
add rsp, 0x1a0
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret