Function at 0x140080fd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x1401c73e8]
xor rax, rsp
mov qword [rsp + 0x168], rax
mov rdi, rcx
mov qword [rsp + 0x58], rcx
mov rax, qword [rcx + 0x90]
inc rax
test rax, 0xfffffffffffffffe
jne 0x1400810ed
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, 0xe0
lea rdx, [rsp + 0x40]
call fcn.140073d00
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140059480
lea rax, str.PipeConnectionBase.cpp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0xe1
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140026620
lea rdx, str.Pipe_handle_is_invalid
lea rcx, [rsp + 0x68]
call fcn.140026650
lea rcx, [rsp + 0x100]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x100]
call fcn.1400fa82c
nop
lea rcx, [rdi + 0x38]
call fcn.1400fb5d8
test eax, eax
jne 0x1400812af
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 0x14008128a
mov sil, 1
add rcx, 0x38
call fcn.1400fb5d8
test eax, eax
jne 0x1400812b7
mov rax, qword [rdi + 0x10]
lea rcx, [rdi + 0x38]
cmp qword [rdi + 8], rax
jne 0x14008111b
call fcn.1400fb5fc
mov al, 1
jmp 0x14008128a
call fcn.1400fb5fc
mov dword [rsp + 0x160], 0
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x14008113d
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rdx, qword [rdi + 8]
mov r8, qword [rdi + 0x10]
sub r8, rdx
lea rax, [rdi + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x160]
mov rcx, qword [rdi + 0x90]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14008127f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp eax, 0x3e5
je 0x14008127f
lea rcx, str.base_wrt_impl
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], SafeArrayUnlock
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
mov r9d, eax
mov r8d, 0x104
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.140073d00
call fcn.1400595a0
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140059480
lea rax, str.PipeConnectionBase.cpp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x105
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140026620
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14007a3f0
lea rdx, str._Write_failed_with_error
lea rcx, [rsp + 0x68]
call fcn.140026650
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.14003cd90
lea rcx, [rsp + 0x100]
call fcn.14005be70
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x100]
call fcn.1400fa82c
nop
lea rcx, [rdi + 0x38]
call fcn.1400fb5d8
test eax, eax
jne 0x1400812be
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 sil, sil
jmp 0x140081286
movzx eax, sil
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.140122510
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov ecx, eax
call fcn.1400fb708
nop
mov ecx, eax
call fcn.1400fb708
mov ecx, eax
call fcn.1400fb708
int3