Function at 0x14000210d
Capabilities:
Write file on windows

Disassembly:
jmp 0x14006c86c
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15d, r8d
mov rsi, rdx
movsxd r12, ecx
test r8d, r8d
jne 0x14006c898
xor eax, eax
jmp 0x14006cb34
test rsi, rsi
jne 0x14006c8bd
call fcn.14000390e
and dword [rax], 0
call fcn.14000274d
mov dword [rax], 0x16
call fcn.140003558
or eax, 0xffffffff
jmp 0x14006cb34
mov rdi, r12
lea rax, [0x140098c70]
and edi, 0x3f
mov r13, r12
sar r13, 6
shl rdi, 6
mov rcx, qword [rax + r13*8]
mov r14b, byte [rdi + rcx + 0x39]
lea eax, [r14 - 1]
cmp al, 1
ja 0x14006c8ef
mov eax, r15d
not eax
test al, 1
je 0x14006c89d
test byte [rdi + rcx + 0x38], 0x20
je 0x14006c904
xor edx, edx
mov ecx, r12d
lea r8d, [rdx + 2]
call fcn.14000404d
xor ebx, ebx
mov ecx, r12d
mov qword [rbp - 0x20], rbx
call fcn.140001cf3
test eax, eax
je 0x14006ca22
lea rax, [0x140098c70]
mov rax, qword [rax + r13*8]
cmp byte [rdi + rax + 0x38], bl
jge 0x14006ca22
call fcn.14000216c
mov rcx, qword [rax + 0x90]
cmp qword [rcx + 0x138], rbx
jne 0x14006c959
lea rax, [0x140098c70]
mov rax, qword [rax + r13*8]
cmp byte [rdi + rax + 0x39], bl
je 0x14006ca22
lea rax, [0x140098c70]
mov rcx, qword [rax + r13*8]
lea rdx, [rbp - 0x10]
mov rcx, qword [rdi + rcx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x14006ca22
test r14b, r14b
je 0x14006ca04
dec r14b
cmp r14b, 1
ja 0x14006cabf
xor r14d, r14d
lea r12, [rsi + r15]
mov qword [rbp - 0x30], r14
mov r15, rsi
cmp rsi, r12
jae 0x14006c9fc
mov ebx, dword [rbp - 0x2c]
movzx eax, word [r15]
movzx ecx, ax
mov word [rbp - 0x10], ax
call fcn.140002fd1
movzx ecx, word [rbp - 0x10]
cmp ax, cx
jne 0x14006c9f3
add ebx, 2
mov dword [rbp - 0x2c], ebx
cmp cx, 0xa
jne 0x14006c9e8
mov ecx, 0xd
call fcn.140002fd1
mov ecx, 0xd
cmp ax, cx
jne 0x14006c9f3
inc ebx
mov dword [rbp - 0x2c], ebx
inc r14d
add r15, 2
cmp r15, r12
jae 0x14006c9fc
jmp 0x14006c9a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, r14d
jmp 0x14006cab5
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.14006bed0
movsd xmm0, qword [rax]
mov ebx, dword [rax + 8]
jmp 0x14006caba
lea rax, [0x140098c70]
mov rcx, qword [rax + r13*8]
cmp byte [rdi + rcx + 0x38], bl
jge 0x14006ca82
movsx ecx, r14b
test r14b, r14b
je 0x14006ca6e
sub ecx, 1
je 0x14006ca5a
cmp ecx, 1
jne 0x14006cabf
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.14006c41c
jmp 0x14006ca16
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.14006c57c
jmp 0x14006ca16
mov r9d, r15d
lea rcx, [rbp - 0x30]
mov r8, rsi
mov edx, r12d
call fcn.14006c2d8
jmp 0x14006ca16
mov rcx, qword [rdi + rcx + 0x28]
lea r9, [rbp - 0x2c]
xor eax, eax
mov r8d, r15d
and qword [rsp + 0x20], rax
mov rdx, rsi
mov qword [rbp - 0x30], rax
mov dword [rbp - 0x28], eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14006cab2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x30], eax
mov ebx, dword [rbp - 0x28]
movsd xmm0, qword [rbp - 0x30]
movsd qword [rbp - 0x20], xmm0
mov rax, qword [rbp - 0x20]
shr rax, 0x20
test eax, eax
jne 0x14006cb2f
mov ecx, dword [rbp - 0x20]
test ecx, ecx
je 0x14006cafc
cmp ecx, 5
jne 0x14006caf2
call fcn.14000274d
mov dword [rax], 9
call fcn.14000390e
mov dword [rax], 5
jmp 0x14006c8b5
call fcn.140003044
jmp 0x14006c8b5
lea rax, [0x140098c70]
mov rax, qword [rax + r13*8]
test byte [rdi + rax + 0x38], 0x40
je 0x14006cb17
cmp byte [rsi], 0x1a
je 0x14006c891
call fcn.14000274d
mov dword [rax], 0x1c
call fcn.14000390e
and dword [rax], 0
jmp 0x14006c8b5
mov eax, dword [rbp - 0x1c]
sub eax, ebx
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret