Function at 0x14015d2d0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xf8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x70], 0xfffffffffffffffe
mov rax, r8
shr rax, 0x20
jne 0x14015d5a1
mov rbx, r8
mov rdi, rcx
mov dword [rbp - 0x58], 0
mov rax, qword [rcx + 0x10]
mov rcx, qword [rcx + 0x20]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x58]
call sub.kernel32.dll_WriteFile
mov r14d, eax
test eax, eax
setne al
cmp dword [rbp - 0x58], ebx
sete r15b
and r15b, al
je 0x14015d33d
xor eax, eax
mov esi, ebx
jmp 0x14015d381
call fcn.1402a96f0
mov esi, eax
shl rsi, 0x20
or rsi, 2
test r14d, r14d
jne 0x14015d585
movabs rax, 0xffffffff00000000
and rax, rsi
movabs rcx, 0x3e500000000
cmp rax, rcx
jne 0x14015d585
mov rcx, rsi
call fcn.140059340
xor esi, esi
mov al, 1
movabs r14, 0x8000000000000000
mov qword [rbp - 0x10], r14
mov dword [rbp + 8], 2
mov qword [rbp + 0x30], rdi
lea rcx, [0x140367e70]
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x40], esi
mov dword [rbp + 0x44], ebx
mov byte [rbp + 0x48], al
mov ebx, 2
mov r12, r14
test r15b, r15b
je 0x14015d421
mov rax, qword [rbp + 0x18]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x20]
mov qword [rbp + 0x68], rax
mov rdi, qword [rbp + 0x28]
mov dword [rbp + 8], 2
mov r13, qword [rbp - 8]
mov r15, qword [rbp]
mov qword [rbp - 0x10], r14
cmp r12, r14
jne 0x14015d465
cmp ebx, 2
je 0x14015d411
mov rcx, rdi
call fcn.14032c656
mov edx, 0x20
mov r8d, 8
mov rcx, qword [rbp + 0x60]
call fcn.140120550
mov rcx, qword [rbp + 0x68]
call fcn.14032c656
mov esi, esi
lea rcx, [rbp - 0x10]
call fcn.14015c890
jmp 0x14015d4a2
xor edx, edx
cmp dword [rdi + 8], 1
sbb edx, edx
or edx, dword [rdi + 0xc]
mov rcx, qword [rdi + 0x18]
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0xffffffff
je 0x14015d511
test eax, eax
je 0x14015d4e7
cmp eax, 0x102
jne 0x14015d5db
lea rcx, str.timed_out_while_writing_into_pipe
call fcn.14015c2d0
mov rsi, rax
jmp 0x14015d57c
cmp ebx, 2
je 0x14015d5b9
lea rax, [rbp + 0xc]
mov ecx, dword [rax + 8]
mov dword [rbp + 0x58], ecx
mov rax, qword [rax]
mov qword [rbp + 0x50], rax
mov esi, esi
lea rcx, [rbp - 0x10]
call fcn.14015c890
mov eax, 1
movabs rcx, 0x8000000000000001
cmp r12, rcx
je 0x14015d58a
mov eax, dword [rbp + 0x58]
mov dword [rbp - 0x44], eax
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x4c], rax
mov qword [rbp - 0x58], rsi
mov dword [rbp - 0x50], ebx
mov rax, qword [rbp + 0x60]
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x68]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rdi
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r13
mov qword [rbp - 0x18], r15
lea rcx, [rbp - 0x58]
call fcn.14015c3c0
xor eax, eax
jmp 0x14015d58a
mov dword [rbp - 0x58], 0
mov byte [rbp + 0x48], 0
cmp dword [rbp + 8], 2
jne 0x14015d522
mov rcx, qword [rbp + 0x30]
test rcx, rcx
je 0x14015d5f5
mov rax, qword [rbp + 0x38]
call qword [rax + 0x18]
mov rcx, rdx
jmp 0x14015d52a
call fcn.1402a96f0
mov esi, eax
shl rsi, 0x20
or rsi, 2
jmp 0x14015d57c
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x18]
mov rdx, qword [rax]
lea r8, [rbp - 0x58]
mov r9d, 1
call sub.kernel32.dll_GetOverlappedResult
test eax, eax
je 0x14015d561
mov eax, dword [rbp - 0x58]
cmp dword [rbp + 0x44], eax
jne 0x14015d568
mov dword [rbp + 0x40], eax
xor esi, esi
test rsi, rsi
jne 0x14015d57c
mov ebx, dword [rbp + 8]
mov esi, dword [rbp + 0x40]
mov r12, qword [rbp - 0x10]
jmp 0x14015d3bb
call fcn.1402a96f0
jmp 0x14015d56d
call fcn.1402a96f0
mov esi, eax
shl rsi, 0x20
or rsi, 2
test rsi, rsi
je 0x14015d552
lea rcx, [rbp - 0x10]
call fcn.14015c890
mov eax, 1
mov rdx, rsi
add rsp, 0xf8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.assertion_failed:_buf.len_____0xFFFFFFFF
lea r8, [0x140367ed8]
mov edx, 0x29
call fcn.1403392c0
mov qword [rbp + 0x60], r13
mov qword [rbp + 0x68], r12
lea rcx, str.internal_error:_entered_unreachable_codeC:Userspavel.cargo_registry_srcindex.crates.io_6f17d22bba15001f_named_pipe_0.4.1_srclib.rs
lea r8, [0x140367e58]
mov edx, 0x28
call fcn.1403392c0
jmp 0x14015d60d
lea rcx, str.internal_error:_entered_unreachable_codeC:Userspavel.cargo_registry_srcindex.crates.io_6f17d22bba15001f_named_pipe_0.4.1_srclib.rs
lea r8, [0x140367ef0]
mov edx, 0x28
call fcn.1403392c0
jmp 0x14015d60d
lea rcx, str.internal_error:_entered_unreachable_codeC:Userspavel.cargo_registry_srcindex.crates.io_6f17d22bba15001f_named_pipe_0.4.1_srclib.rs
lea r8, [0x140367d70]
mov edx, 0x28
call fcn.1403392c0
ud2