Function at 0x2100c6fd0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x178
movzx eax, byte [rsp + 0x1e8]
mov r14, qword [rsp + 0x1e0]
mov byte [rsp + 0x48], al
mov r13, rcx
mov rdi, rdx
mov r12d, r9d
mov qword [rsp + 0x1d0], r8
mov eax, 1
test byte [r14 + 0x35], 2
jne 0x2100c70d3
mov rsi, qword [r8]
test rsi, rsi
je 0x2100c70c8
lea rbp, [rsp + 0x60]
nop dword [rax]
test r12b, r12b
jne 0x2100c7070
cmp byte [r14 + 0xc], 0
je 0x2100c7070
cmp byte [rsp + 0x48], 0
jne 0x2100c729e
nop word [rax + rax]
xor ecx, ecx
mov r8d, 5
mov rdx, rbp
mov qword [rsp + 0x60], 0xfffffffffffe7960
call sym.cygwait_void___LARGE_INTEGER__unsigned_int_
cmp byte [r14 + 0xc], 0
jne 0x2100c7050
mov ecx, dword [r14 + 0x2c]
test cl, 1
jne 0x2100c70f0
mov r8d, 0x100
mov r9, rbp
mov rdx, rdi
mov rcx, r13
mov qword [rsp + 0x20], 0
cmp rsi, r8
cmovle r8, rsi
mov dword [rsp + 0x60], r8d
call sym.WriteFile
test eax, eax
je 0x2100c7278
mov edx, dword [rsp + 0x60]
add rdi, rdx
sub rsi, rdx
test rsi, rsi
jne 0x2100c7030
mov rdi, qword [rsp + 0x1d0]
mov rsi, qword [rdi]
mov rdi, qword [rsp + 0x1d0]
mov qword [rdi], rsi
add rsp, 0x178
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rsp + 0x5c], 0
xor r8d, r8d
xor edx, edx
xor ebx, ebx
test rsi, rsi
jle 0x2100c7175
mov r15d, ecx
mov r11d, ecx
mov r10d, ecx
and ecx, 4
and r15d, 8
and r11d, 0x20
and r10d, 0x10
nop dword [rax]
movzx eax, byte [rdi + rbx]
add rbx, 1
cmp al, 0xa
je 0x2100c71e4
cmp al, 0xd
jne 0x2100c71a8
test r10d, r10d
je 0x2100c7144
mov eax, dword [r14 + 0x134]
test eax, eax
je 0x2100c715e
lea eax, [r8 + 1]
test ecx, ecx
je 0x2100c7250
mov byte [rsp + r8 + 0x60], 0xa
mov edx, 1
mov r8d, eax
cmp rsi, rbx
jle 0x2100c716c
cmp r8d, 0xff
jbe 0x2100c7120
test dl, dl
je 0x2100c7175
mov dword [rsp + 0x5c], r8d
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x5c]
mov rdx, rbp
mov rcx, r13
call sym.WriteFile
test eax, eax
je 0x2100c7278
add rdi, rbx
sub rsi, rbx
jmp 0x2100c70b4
lea r9d, [r8 + 1]
add dword [r14 + 0x134], 1
cmp r9d, 0xff
mov byte [rsp + r8 + 0x60], al
setbe al
cmp rsi, rbx
setg dl
and dl, al
je 0x2100c7270
movzx eax, byte [rdi + rbx]
mov r8d, r9d
add rbx, 1
cmp al, 0xa
jne 0x2100c7130
test r15d, r15d
je 0x2100c7228
mov byte [rsp + r8 + 0x60], 0xd
lea eax, [r8 + 1]
mov dword [r14 + 0x134], 0
test r11d, r11d
je 0x2100c7230
mov dword [r14 + 0x134], 0
movzx edx, byte [rdi + rbx - 1]
lea r8d, [rax + 1]
mov byte [rsp + rax + 0x60], dl
mov edx, 1
jmp 0x2100c715e
mov eax, r8d
test r11d, r11d
jne 0x2100c7203
movzx edx, byte [rdi + rbx - 1]
lea r8d, [rax + 1]
mov byte [rsp + rax + 0x60], dl
mov edx, 1
jmp 0x2100c715e
mov byte [rsp + r8 + 0x60], 0xd
mov edx, 1
mov r8d, eax
mov dword [r14 + 0x134], 0
jmp 0x2100c715e
mov r8d, r9d
jmp 0x2100c7170
mov rdi, qword [rsp + 0x1d0]
mov rdi, qword [rdi]
mov qword [rsp + 0x48], rdi
sub rdi, rsi
mov rsi, rdi
mov rdi, qword [rsp + 0x1d0]
mov qword [rdi], rsi
jmp 0x2100c70d3
mov rdi, qword [rsp + 0x1d0]
mov rdx, qword [rdi]
cmp rdx, rsi
jle 0x2100c72b9
sub rdx, rsi
mov rsi, rdx
jmp 0x2100c70c8
test byte [0x210273880], 1
jne 0x2100c72f3
mov rax, qword [sym.msys_2.0.dll__impure_ptr]
mov dword [rax], 0xb
call sym.msys_2.0.dll___errno
mov dword [rax], 0xb
mov rax, qword [rsp + 0x1d0]
mov qword [rax], 0xffffffffffffffff
mov eax, 1
jmp 0x2100c70d3
lea rax, str.static_BOOL_fhandler_pty_common::process_opost_output_HANDLE__const_void__ssize_t__bool__tty__bool_
mov dword [rsp + 0x30], 0xb
lea r9, [0x210295454]
mov edx, 0x40
mov dword [rsp + 0x28], 0xcbe
lea r8, [0x210295470]
lea rcx, [0x210273880]
mov qword [rsp + 0x20], rax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x2100c72c2