Function at 0x2100813b0
Capabilities:
Write file on windows

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x70
mov rbx, qword [rsp + 0xd0]
mov r12, rcx
mov rsi, rdx
mov rdi, r8
mov rbp, r9
test byte [rcx + 0x2c], 3
je 0x21008162a
movzx eax, byte [rcx + 8]
and eax, 0xc
cmp al, 8
je 0x2100814c0
test byte [rcx + 9], 0x10
jne 0x2100814c0
mov qword [rsp + 0x58], r9
test rbx, rbx
je 0x210081600
mov rcx, qword [rcx + 0x1d0]
mov r13, qword [rbx + 0x28]
lea r14, [rbx + 0x18]
test rcx, rcx
je 0x210081581
test rbx, rbx
setne al
cmp byte [r12 + 0x1d8], al
jne 0x210081570
lea rax, [rsp + 0x58]
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x40], 0
mov rdx, r13
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
call sym.NtWriteFile
test eax, eax
js 0x210081657
test rbx, rbx
je 0x210081620
mov r13, qword [rbx + 0x20]
test byte [0x210273880], 1
je 0x21008155e
mov qword [rsp + 0x40], rbx
lea r9, str._d__pwrite__p___ld___D___p__n
lea r8, str.virtual_ssize_t_fhandler_disk_file::pwrite_void__size_t__off_t__void_
mov edx, 0x40
mov qword [rsp + 0x38], rbp
lea rcx, [0x210273880]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r13
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x21008155e
mov rax, qword [r12]
mov r8d, 1
xor edx, edx
mov rcx, r12
call qword [rax + 0x178]
mov r13, rax
test rax, rax
js 0x21008152e
mov rax, qword [r12]
xor r8d, r8d
mov rdx, rbp
mov rcx, r12
call qword [rax + 0x178]
test rax, rax
js 0x2100815e8
mov rax, qword [r12]
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call qword [rax + 0x150]
mov rdx, r13
xor r8d, r8d
mov rcx, r12
mov r14, rax
mov rax, qword [r12]
mov r13, r14
call qword [rax + 0x178]
test rax, rax
js 0x2100815b0
test rbx, rbx
je 0x210081551
mov qword [rbx + 0x30], r13
cmp r13, 0xffffffffffffffff
je 0x2100815c4
mov dword [rbx + 0x38], 0
mov rcx, qword [rbx + 0x28]
call sym.SetEvent
test byte [0x210273880], 1
jne 0x210081480
mov rax, r13
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
call sym.NtClose
mov qword [r12 + 0x1d0], 0
mov r8, rbx
mov edx, 1
mov rcx, r12
call method.fhandler_disk_file.prw_open_bool__void_
test eax, eax
jne 0x2100814c0
mov rcx, qword [r12 + 0x1d0]
jmp 0x21008142f
mov r13, 0xffffffffffffffff
test rbx, rbx
je 0x210081551
mov qword [rbx + 0x30], 0xffffffffffffffff
call sym.msys_2.0.dll___errno
mov r13, 0xffffffffffffffff
mov eax, dword [rax]
mov dword [rbx + 0x38], eax
mov rcx, qword [rbx + 0x28]
call sym.SetEvent
jmp 0x210081551
test rbx, rbx
je 0x210081551
mov qword [rbx + 0x30], r13
xor eax, eax
jmp 0x2100815d2
mov rcx, qword [rcx + 0x1d0]
xor r13d, r13d
lea r14, [rsp + 0x60]
test rcx, rcx
jne 0x21008141b
jmp 0x210081581
mov r13, qword [rsp + 0x68]
jmp 0x210081551
test byte [0x210273880], 1
jne 0x210081677
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov r13, 0xffffffffffffffff
mov dword [rax], 9
call sym.msys_2.0.dll___errno
mov dword [rax], 9
jmp 0x21008155e
mov r8d, eax
mov edx, 0x6a5
lea rcx, str._usr_src_MSYS2_packages_msys2_runtime_src_msys2_runtime_winsup_cygwin_fhandler_disk_file.cc
mov r13, 0xffffffffffffffff
call sym.seterrno_from_nt_status_char_const__int__int_
jmp 0x21008155e
lea rax, str.virtual_ssize_t_fhandler_disk_file::pwrite_void__size_t__off_t__void_
mov dword [rsp + 0x30], 9
lea r9, [0x21028c231]
mov edx, 0x40
mov dword [rsp + 0x28], 0x68d
lea r8, [0x21028c248]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x210081633