Function at 0x140001010
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rdi
push r12
sub rsp, 0x60
mov rdi, rdx
lea r8, [rsp + 0x90]
mov ebx, 1
mov edx, 0x100
mov dword [rsp + 0x20], ebx
mov r12, rcx
call sub.tiff.dll_TIFFGetField
lea r8, [rsp + 0x98]
mov edx, 0x101
mov rcx, r12
call sub.tiff.dll_TIFFGetField
lea r8, [0x140005004]
mov edx, 0x116
mov rcx, r12
call sub.tiff.dll_TIFFGetField
test eax, eax
jne 0x140001092
mov rcx, r12
call sub.tiff.dll_TIFFFileName
mov rcx, rax
lea rdx, str.Source_image_not_in_strips
call sub.tiff.dll_TIFFError
xor eax, eax
add rsp, 0x60
pop r12
pop rdi
pop rbx
ret
mov r8d, dword [0x140005004]
mov edx, 0x116
mov rcx, rdi
call sub.tiff.dll_TIFFSetField
mov r9d, dword [0x140005004]
xor edx, edx
imul r9d, dword [rsp + 0x90]
shl r9d, 2
mov eax, r9d
div dword [0x140005004]
shr eax, 2
cmp dword [rsp + 0x90], eax
je 0x1400010f4
mov rcx, r12
call sub.tiff.dll_TIFFFileName
mov rcx, rax
lea rdx, str.Integer_overflow_when_calculating_raster_buffer
call sub.tiff.dll_TIFFError
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, r9d
mov qword [rsp + 0x38], r15
call sub.tiff.dll__TIFFmalloc
mov r15, rax
test rax, rax
jne 0x140001130
mov rcx, r12
call sub.tiff.dll_TIFFFileName
mov rcx, rax
lea rdx, str.No_space_for_raster_buffer
call sub.tiff.dll_TIFFError
mov r15, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x60
pop r12
pop rdi
pop rbx
ret
mov ecx, dword [rsp + 0x90]
lea edx, [rcx*4]
mov eax, edx
shr eax, 2
cmp ecx, eax
je 0x14000116a
mov rcx, r12
call sub.tiff.dll_TIFFFileName
mov rcx, rax
lea rdx, str.Integer_overflow_when_calculating_wrk_line_buffer
call sub.tiff.dll_TIFFError
mov ecx, 0xffffffff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, edx
mov qword [rsp + 0x58], rbp
call sub.tiff.dll__TIFFmalloc
mov qword [rsp + 0x28], rax
mov rdi, rax
test rax, rax
jne 0x1400011a0
mov rcx, r12
call sub.tiff.dll_TIFFFileName
mov rcx, rax
lea rdx, str.No_space_for_raster_scanline_buffer
call sub.tiff.dll_TIFFError
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor ebp, ebp
test ebx, ebx
je 0x1400012f4
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r14
nop dword [rax]
cmp ebp, dword [rsp + 0x98]
jae 0x1400012dc
mov r8, r15
mov edx, ebp
mov rcx, r12
call sub.tiff.dll_TIFFReadRGBAStrip
test eax, eax
je 0x1400012d8
mov r8d, dword [0x140005004]
mov ebx, r8d
mov ecx, dword [rsp + 0x98]
sub ecx, ebp
lea edx, [r8 + rbp]
cmp edx, dword [rsp + 0x98]
cmova ebx, ecx
xor r14d, r14d
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
mov r13d, eax
test eax, eax
jle 0x1400012a0
mov r12, qword [rsp + 0x28]
nop dword [rax]
mov r8d, dword [rsp + 0x90]
mov edx, ebx
sub edx, r14d
mov ecx, r14d
dec edx
imul ecx, r8d
imul edx, r8d
lea r8d, [r8*4]
lea rsi, [r15 + rcx*4]
mov rcx, r12
lea rdi, [r15 + rdx*4]
mov rdx, rsi
call sub.tiff.dll__TIFFmemcpy
mov eax, dword [rsp + 0x90]
mov rdx, rdi
mov rcx, rsi
lea r8d, [rax*4]
call sub.tiff.dll__TIFFmemcpy
mov eax, dword [rsp + 0x90]
mov rdx, r12
mov rcx, rdi
lea r8d, [rax*4]
call sub.tiff.dll__TIFFmemcpy
inc r14d
cmp r14d, r13d
jl 0x140001220
mov r12, qword [rsp + 0x80]
mov r8d, dword [0x140005004]
imul ebx, dword [rsp + 0x90]
xor edx, edx
mov rcx, qword [rsp + 0x88]
mov eax, ebp
div r8d
shl ebx, 2
mov r8, r15
mov edx, eax
mov r9d, ebx
call sub.tiff.dll_TIFFWriteEncodedStrip
cmp rax, 0xffffffffffffffff
je 0x1400012d8
add ebp, dword [0x140005004]
jmp 0x1400011c0
xor ebx, ebx
jmp 0x1400012e0
mov ebx, dword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rcx, r15
call sub.tiff.dll__TIFFfree
mov rcx, rdi
call sub.tiff.dll__TIFFfree
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov r15, qword [rsp + 0x38]
add rsp, 0x60
pop r12
pop rdi
pop rbx
ret