Function at 0x140066d60
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbp, r8
mov r14d, r9d
shr rbp, 3
mov r13, r8
cmp dword [0x14009db0c], 0
mov rsi, rdx
mov r12, rcx
lea r15, [rdx + rbp*8]
jne 0x140066e7f
mov r9, rcx
mov edx, 1
mov rcx, rsi
call fcn.1400730bc
cmp rax, r13
je 0x140066e6a
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x140066dd9
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.zstd:
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 5
jl 0x140066e0a
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea r8, str.......programs_fileio.c
mov r9d, 0x542
lea rdx, str.Error_defined_at__s__line__i_:__n
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x14006738c
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.error__i_:
mov r8d, 0x46
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x14006738c
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.Write_error_:_cannot_write_decoded_block
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x14006738c
jmp 0x140067373
xor eax, eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
cmp r14d, 0x40000000
jbe 0x140066f66
mov edx, 0x40000000
mov r8d, 1
call fcn.1400733b4
test eax, eax
je 0x140066f5f
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x140066ece
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.zstd:
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 5
jl 0x140066eff
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea r8, str.......programs_fileio.c
mov r9d, 0x549
lea rdx, str.Error_defined_at__s__line__i_:__n
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x1400673b0
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.error__i_:
mov r8d, 0x47
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x1400673b0
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.1_GB_skip_error__sparse_file_support_
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x1400673b0
jmp 0x140067397
add r14d, 0xc0000000
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
cmp rsi, r15
jae 0x140066ff4
nop word [rax + rax]
mov edi, 0x1000
cmp rbp, rdi
cmovb rdi, rbp
xor ebx, ebx
sub rbp, rdi
test rdi, rdi
je 0x140066fa5
cmp qword [rsi + rbx*8], 0
jne 0x140066fa5
inc rbx
cmp rbx, rdi
jb 0x140066f96
lea r14d, [r14 + rbx*8]
cmp rbx, rdi
je 0x140066feb
mov edx, r14d
mov r8d, 1
mov rcx, r12
call fcn.1400733b4
test eax, eax
jne 0x1400671bd
sub rdi, rbx
lea rsi, [rsi + rbx*8]
mov r8, rdi
lea edx, [rax + 8]
mov rcx, rsi
mov r9, r12
xor r14d, r14d
call fcn.1400730bc
cmp rax, rdi
jne 0x140067102
lea rsi, [rsi + rdi*8]
cmp rsi, r15
jb 0x140066f80
and r13d, 7
je 0x140067353
lea rdi, [r15 + r13]
mov rbx, r15
cmp r15, rdi
jae 0x14006701d
nop word [rax + rax]
cmp byte [rbx], 0
jne 0x14006701d
inc rbx
cmp rbx, rdi
jb 0x140067010
mov eax, ebx
sub eax, r15d
add r14d, eax
cmp rbx, rdi
je 0x140067353
mov edx, r14d
mov r8d, 1
mov rcx, r12
call fcn.1400733b4
test eax, eax
je 0x140067278
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x140067071
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.zstd:
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 5
jl 0x1400670a2
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea r8, str.......programs_fileio.c
mov r9d, 0x570
lea rdx, str.Error_defined_at__s__line__i_:__n
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x1400673d4
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.error__i_:
mov r8d, 0x4a
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x1400673d4
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.Sparse_skip_error___try___no_sparse
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x1400673d4
jmp 0x1400673bb
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x14006712c
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.zstd:
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 5
jl 0x14006715d
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea r8, str.......programs_fileio.c
mov r9d, 0x55f
lea rdx, str.Error_defined_at__s__line__i_:__n
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x1400673f8
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.error__i_:
mov r8d, 0x49
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x1400673f8
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.Write_error_:_cannot_write_decoded_block
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x1400673f8
jmp 0x1400673df
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x1400671e7
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.zstd:
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 5
jl 0x140067218
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea r8, str.......programs_fileio.c
mov r9d, 0x559
lea rdx, str.Error_defined_at__s__line__i_:__n
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x14006741c
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.error__i_:
mov r8d, 0x48
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x14006741c
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.Sparse_skip_error___try___no_sparse
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x14006741c
jmp 0x140067403
xor r14d, r14d
sub rdi, rbx
mov r9, r12
mov r8, rdi
mov rcx, rbx
lea edx, [r14 + 1]
call fcn.1400730bc
cmp rax, rdi
je 0x140067353
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x1400672c2
lea ecx, [r14 + 2]
call fcn.14006f398
mov rcx, rax
lea rdx, str.zstd:
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 5
jl 0x1400672f3
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea r8, str.......programs_fileio.c
mov r9d, 0x574
lea rdx, str.Error_defined_at__s__line__i_:__n
call fcn.140041730
mov eax, dword [0x14009db1c]
cmp eax, 1
jl 0x140067440
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.error__i_:
mov r8d, 0x4b
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x140067440
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, str.Write_error_:_cannot_write_decoded_end_of_block
call fcn.140041730
cmp dword [0x14009db1c], 1
jl 0x140067440
jmp 0x140067427
mov rbx, qword [rsp + 0x50]
mov eax, r14d
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rsi
ret
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, [0x140092aa4]
call fcn.140041730
mov ecx, 0x46
call fcn.140072b40
int3
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, [0x140092aa4]
call fcn.140041730
mov ecx, 0x47
call fcn.140072b40
int3
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, [0x140092aa4]
call fcn.140041730
mov ecx, 0x4a
call fcn.140072b40
int3
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, [0x140092aa4]
call fcn.140041730
mov ecx, 0x49
call fcn.140072b40
int3
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, [0x140092aa4]
call fcn.140041730
mov ecx, 0x48
call fcn.140072b40
int3
mov ecx, 2
call fcn.14006f398
mov rcx, rax
lea rdx, [0x140092aa4]
call fcn.140041730
mov ecx, 0x4b
call fcn.140072b40
int3