Function at 0x140001760
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov rbx, rdx
mov rcx, rdx
mov esi, 0x24
call sub.tiff.dll_TIFFStripSize
mov rcx, rax
mov qword [rsp + 0x20], rax
mov rdi, rax
xor r13d, r13d
call fcn.140005ad0
mov r15, rax
test rax, rax
jne 0x1400017c8
mov rcx, qword [0x14000d0a8]
lea rdx, str.No_space_for_scanline_buffer
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
jmp sub.tiff.dll_TIFFError
mov r8, rdi
xor edx, edx
mov rcx, r15
call sub.VCRUNTIME140.dll_memset
cmp dword [0x14000d070], r13d
je 0x140001846
mov rax, rdi
cqo
sub rax, rdx
sar rax, 1
lea rcx, [rax + 8]
add rcx, rdi
call fcn.140005ad0
mov r13, rax
test rax, rax
jne 0x140001829
mov rcx, r15
call sub.tiff.dll__TIFFfree
mov rcx, qword [0x14000d0a8]
lea rdx, str.Cannot_allocate_ASCII85_encoding_buffer.
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
jmp sub.tiff.dll_TIFFError
cmp dword [0x14000d070], 0
je 0x140001846
mov dword [0x14000d6f8], 0x48
mov dword [0x14000d6fc], 0
mov qword [rsp + 0x70], r12
mov rcx, rbx
xor r12d, r12d
call sub.tiff.dll_TIFFNumberOfStrips
test eax, eax
je 0x140001aa5
mov qword [rsp + 0x60], rbp
mov r9, rdi
mov r8, r15
mov edx, r12d
mov rcx, rbx
call sub.tiff.dll_TIFFReadEncodedStrip
mov rbp, rax
test rax, rax
js 0x140001a8d
cmp word [0x14000d0d4], 0
mov rbx, r15
jne 0x1400018ad
lea rbx, [r15 - 1]
add rbx, rax
cmp rbx, r15
jb 0x1400018aa
nop dword [rax]
not byte [rbx]
dec rbx
cmp rbx, r15
jae 0x1400018a0
inc rbx
cmp word [0x14000d0cc], 0x10
jne 0x1400018ec
test rbp, rbp
jle 0x1400018ec
lea r9, [rax - 1]
xor r8d, r8d
test r9, r9
jle 0x1400018ec
mov rdx, rbx
nop dword [rax + rax]
movzx eax, byte [rdx + 1]
add r8d, 2
movzx ecx, byte [rdx]
mov byte [rdx], al
mov byte [rdx + 1], cl
add rdx, 2
movsxd rax, r8d
cmp rax, r9
jl 0x1400018d0
cmp dword [0x14000d070], 0
je 0x14000197d
cmp dword [0x14000d0e0], 0
je 0x140001947
lea r9, [rbp - 1]
xor ecx, ecx
test r9, r9
jle 0x140001939
mov r8, rbx
movzx edx, byte [r8]
mov eax, ecx
sub dl, byte [r8 + 1]
dec dl
test ecx, ecx
jns 0x140001923
lea eax, [rcx + 1]
sar eax, 1
add ecx, 2
cdqe
add r8, 2
mov byte [rax + rbx], dl
movsxd rax, ecx
cmp rax, r9
jl 0x140001910
mov rax, rbp
cqo
sub rax, rdx
sar rax, 1
mov rbp, rax
mov r9, rbp
mov r8, rbx
mov edx, 1
mov rcx, r13
call fcn.1400010d0
test rax, rax
jle 0x140001a72
mov r9, r14
mov r8d, 1
mov rdx, rax
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140001a72
cmp dword [0x14000d0e0], 0
je 0x140001a01
cmp rbp, 1
jle 0x140001a72
add rbp, 0xfffffffffffffffe
shr rbp, 1
inc rbp
nop word [rax + rax]
dec esi
test esi, esi
jg 0x1400019b9
mov rdx, r14
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov esi, 0x23
movzx eax, byte [rbx]
mov rdx, r14
sub al, byte [rbx + 1]
dec al
movzx edi, al
mov rax, qword [str.0123456789abcdef]
mov ecx, edi
shr rcx, 4
movsx ecx, byte [rcx + rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rax, qword [str.0123456789abcdef]
and edi, 0xf
mov rdx, r14
movsx ecx, byte [rdi + rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
add rbx, 2
sub rbp, 1
jne 0x1400019a0
jmp 0x140001a6d
test rbp, rbp
jle 0x140001a72
nop word [rax + rax]
movzx edi, byte [rbx]
lea rbx, [rbx + 1]
dec rbp
dec esi
test esi, esi
jg 0x140001a33
mov rdx, r14
mov ecx, 0xa
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov esi, 0x23
mov rax, qword [str.0123456789abcdef]
mov rdx, r14
movzx edi, dil
mov ecx, edi
shr rcx, 4
movsx ecx, byte [rcx + rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
mov rax, qword [str.0123456789abcdef]
and edi, 0xf
mov rdx, r14
movsx ecx, byte [rdi + rax]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_putc]
test rbp, rbp
jg 0x140001a10
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x68]
inc r12d
mov rcx, rbx
call sub.tiff.dll_TIFFNumberOfStrips
cmp r12d, eax
jb 0x140001863
jmp 0x140001aa0
mov rcx, qword [0x14000d0a8]
lea rdx, str.Cant_read_strip
call sub.tiff.dll_TIFFError
mov rbp, qword [rsp + 0x60]
cmp dword [0x14000d070], 0
mov r12, qword [rsp + 0x70]
jne 0x140001ad5
cmp dword [0x14000d074], 0
jne 0x140001ac5
cmp dword [0x14000d078], 0
je 0x140001ad5
mov rdx, r14
lea rcx, [0x14000aae8]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
test r13, r13
je 0x140001ae2
mov rcx, r13
call sub.tiff.dll__TIFFfree
mov rcx, r15
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rsi
jmp sub.tiff.dll__TIFFfree