Function at 0x140081780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rbp + 0x58], rax
mov rdi, rcx
mov rax, qword [rcx + 0x90]
inc rax
test rax, 0xfffffffffffffffe
jne 0x140081892
lea rax, str.base_invl_pipe
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], SafeArrayUnlock
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov r8d, 0x159
lea rdx, [rsp + 0x40]
call fcn.140073d00
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140059480
lea rax, str.PipeConnectionBase.cpp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x15a
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140026620
lea rdx, str.Pipe_handle_is_invalid
lea rcx, [rsp + 0x58]
call fcn.140026650
lea rcx, [rbp - 0x10]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.1400fa82c
nop
lea rcx, [rdi + 0x38]
call fcn.1400fb5d8
test eax, eax
jne 0x140081a64
mov rax, qword [rdi + 8]
mov qword [rdi + 0x10], rax
mov rax, qword [rdi + 0x20]
mov qword [rdi + 0x28], rax
lea rcx, [rdi + 0x38]
call fcn.1400fb5fc
xor al, al
jmp 0x140081a37
mov dword [rbp + 0x50], 0
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x1400818ab
call qword [sym.imp.KERNEL32.dll_ResetEvent]
lea rsi, [rdi + 0x98]
mov rbx, qword [rsi + 8]
mov r8, qword [rsi]
mov rcx, rbx
sub rcx, r8
mov edx, 0x2000
cmp rcx, rdx
jbe 0x1400818d2
lea rbx, [r8 + 0x2000]
jmp 0x140081906
jae 0x14008190a
mov rax, qword [rsi + 0x10]
sub rax, r8
cmp rax, rdx
jae 0x1400818f3
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140081d20
mov rbx, qword [rsi + 8]
jmp 0x14008190a
sub rdx, rcx
mov rcx, rbx
add rbx, rdx
mov r8, rdx
xor edx, edx
call fcn.140124d50
mov qword [rsi + 8], rbx
mov rdx, qword [rsi]
sub rbx, rdx
lea rax, [rdi + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 0x50]
mov r8d, ebx
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14008193b
mov al, 1
jmp 0x140081a37
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp eax, 0x3e5
sete sil
je 0x140081a33
cmp eax, 0x6d
je 0x140081a0d
lea rcx, str.base_rd_strt
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov r9d, eax
mov r8d, 0x178
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140073d00
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140059480
lea rax, str.PipeConnectionBase.cpp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x179
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x58]
call fcn.140026620
lea rdx, str.ReadFile_failed._System_error
lea rcx, [rsp + 0x58]
call fcn.140026650
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x58]
call fcn.14003cd90
lea rcx, [rbp - 0x10]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x10]
call fcn.1400fa82c
nop
lea rcx, [rdi + 0x38]
call fcn.1400fb5d8
test eax, eax
jne 0x140081a5c
mov rcx, qword [rdi + 8]
mov qword [rdi + 0x10], rcx
mov rcx, qword [rdi + 0x20]
mov qword [rdi + 0x28], rcx
lea rcx, [rdi + 0x38]
call fcn.1400fb5fc
movzx eax, sil
mov rcx, qword [rbp + 0x58]
xor rcx, rsp
call fcn.140122510
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, eax
call fcn.1400fb708
int3
mov ecx, eax
call fcn.1400fb708
int3