Function at 0x14006aa40
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x140214ba0]
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 0x14006ab5d
lea rax, str.base_invl_pipe
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 0xe
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
xor r9d, r9d
mov r8d, 0xe0
lea rdx, [rsp + 0x40]
call fcn.14005d2e0
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140055290
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.1400244b0
lea rdx, str.Pipe_handle_is_invalid
lea rcx, [rsp + 0x68]
call fcn.1400244e0
lea rcx, [rsp + 0x100]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x100]
call fcn.140128970
nop
lea rcx, [rdi + 0x38]
call fcn.140129778
test eax, eax
jne 0x14006ad1f
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.14012979c
xor al, al
jmp 0x14006acfa
mov sil, 1
add rcx, 0x38
call fcn.140129778
test eax, eax
jne 0x14006ad27
mov rax, qword [rdi + 0x10]
lea rcx, [rdi + 0x38]
cmp qword [rdi + 8], rax
jne 0x14006ab8b
call fcn.14012979c
mov al, 1
jmp 0x14006acfa
call fcn.14012979c
mov dword [rsp + 0x160], 0
mov rcx, qword [rdi + 0xc8]
test rcx, rcx
je 0x14006abad
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 0x14006acef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
cmp eax, 0x3e5
je 0x14006acef
lea rcx, str.base_wrt_impl
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x48], 0xd
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.14005d2e0
call fcn.1400553d0
mov r8d, 1
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.140055290
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.1400244b0
mov qword [rsp + 0x40], rdi
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140063b80
lea rdx, str._Write_failed_with_error
lea rcx, [rsp + 0x68]
call fcn.1400244e0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.140030540
lea rcx, [rsp + 0x100]
call fcn.140058d50
nop
lea rax, vtable.std::ios_base.0
mov qword [rsp + 0x100], rax
lea rcx, [rsp + 0x100]
call fcn.140128970
nop
lea rcx, [rdi + 0x38]
call fcn.140129778
test eax, eax
jne 0x14006ad2e
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.14012979c
xor sil, sil
jmp 0x14006acf6
movzx eax, sil
mov rcx, qword [rsp + 0x168]
xor rcx, rsp
call fcn.14014f8e0
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.140129af4
nop
mov ecx, eax
call fcn.140129af4
mov ecx, eax
call fcn.140129af4
int3