Function at 0x1400b7020
Capabilities:
Load assembly via iassembly
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [rcx + 0x18]
mov rbx, rcx
test rax, rax
jne 0x1400b7047
mov edx, 1
xor r9d, r9d
mov r8d, edx
add rsp, 0x30
pop rbx
jmp fcn.1400b7e80
test dword [rcx + 0x10], 0x80000
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
jne 0x1400b7200
mov esi, dword [rcx + 0x24c]
cmp rsi, rax
jne 0x1400b70be
xor edi, edi
xor r8d, r8d
mov dword [rcx + 0x24c], edi
mov qword [rcx + 0x18], rdi
mov rcx, qword [rcx + 0x398]
lea edx, [rdi + 4]
call qword [rbx + 0x3b0]
mov rcx, qword [rbx + 0x398]
lea r8d, [rdi + 4]
lea rdx, [rbx + 0x24c]
call qword [rbx + 0x3a8]
cmp rax, 4
je 0x1400b735e
mov rdx, qword [rbx]
lea r8, str.Error_updating_TIFF_header
jmp 0x1400b7181
mov rdx, rsi
call fcn.1400ae6d0
test eax, eax
je 0x1400b7173
nop
mov rcx, qword [rbx + 0x398]
lea rdx, [rsp + 0x40]
mov r8d, 2
call qword [rbx + 0x3a0]
cmp rax, 2
jne 0x1400b7173
test byte [rbx + 0x10], 0x80
je 0x1400b7102
lea rcx, [rsp + 0x40]
call fcn.1400c7980
movzx eax, word [rsp + 0x40]
xor r8d, r8d
lea ecx, [rax + rax*2]
lea edx, [rcx*4 + 2]
mov rcx, qword [rbx + 0x398]
add edx, esi
call qword [rbx + 0x3b0]
mov rcx, qword [rbx + 0x398]
lea rdx, [rsp + 0x48]
mov r8d, 4
call qword [rbx + 0x3a0]
cmp rax, 4
jne 0x1400b71f4
test byte [rbx + 0x10], 0x80
je 0x1400b7155
lea rcx, [rsp + 0x48]
call fcn.1400c79a0
mov eax, dword [rsp + 0x48]
mov edx, eax
cmp rax, qword [rbx + 0x18]
je 0x1400b71a4
mov rcx, rbx
mov esi, eax
call fcn.1400ae6d0
test eax, eax
jne 0x1400b70d0
lea r8, str.Error_fetching_directory_count
lea rdx, str.TIFFRewriteDirectory
mov rcx, qword [rbx + 0x398]
call fcn.1401847f0
xor eax, eax
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x58]
mov r14, qword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
movzx eax, word [rsp + 0x40]
xor edi, edi
xor r8d, r8d
mov dword [rsp + 0x50], edi
lea ecx, [rax + rax*2]
lea edx, [rcx*4 + 2]
mov rcx, qword [rbx + 0x398]
add edx, esi
call qword [rbx + 0x3b0]
mov rcx, qword [rbx + 0x398]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x50]
call qword [rbx + 0x3a8]
cmp rax, 4
je 0x1400b735a
lea r8, str.Error_writing_directory_link
jmp 0x1400b717a
lea r8, str.Error_fetching_directory_link
jmp 0x1400b717a
mov rdi, qword [rcx + 0x250]
cmp rdi, rax
jne 0x1400b724d
xor edi, edi
xor r8d, r8d
mov qword [rcx + 0x250], rdi
mov qword [rcx + 0x18], rdi
mov rcx, qword [rcx + 0x398]
lea edx, [rdi + 8]
call qword [rbx + 0x3b0]
mov rcx, qword [rbx + 0x398]
lea r8d, [rdi + 8]
lea rdx, [rbx + 0x250]
call qword [rbx + 0x3a8]
cmp rax, 8
jmp 0x1400b70a9
mov rdx, rdi
call fcn.1400ae6d0
test eax, eax
je 0x1400b7173
nop dword [rax]
mov rcx, qword [rbx + 0x398]
lea rdx, [rsp + 0x40]
mov r8d, 8
call qword [rbx + 0x3a0]
cmp rax, 8
jne 0x1400b7173
test byte [rbx + 0x10], 0x80
je 0x1400b7292
lea rcx, [rsp + 0x40]
call fcn.1400c79d0
mov rax, qword [rsp + 0x40]
mov rcx, qword [rbx + 0x398]
cmp rax, 0xffff
ja 0x1400b7376
movzx eax, ax
xor r8d, r8d
lea rdx, [rax + rax*4]
lea rsi, [rdi + rdx*4]
lea rdx, [rsi + 8]
call qword [rbx + 0x3b0]
mov rcx, qword [rbx + 0x398]
lea rdx, [rsp + 0x48]
mov r8d, 8
call qword [rbx + 0x3a0]
cmp rax, 8
jne 0x1400b71f4
test byte [rbx + 0x10], 0x80
je 0x1400b72f4
lea rcx, [rsp + 0x48]
call fcn.1400c79d0
mov rdi, qword [rsp + 0x48]
cmp rdi, qword [rbx + 0x18]
je 0x1400b7317
mov rdx, rdi
mov rcx, rbx
call fcn.1400ae6d0
test eax, eax
jne 0x1400b7260
jmp 0x1400b7173
mov rcx, qword [rbx + 0x398]
lea rdx, [rsi + 8]
xor edi, edi
xor r8d, r8d
mov qword [rsp + 0x50], rdi
call qword [rbx + 0x3b0]
mov rcx, qword [rbx + 0x398]
lea r8d, [rdi + 8]
lea rdx, [rsp + 0x50]
call qword [rbx + 0x3a8]
cmp rax, 8
je 0x1400b735a
lea r8, str.Error_writing_directory_link
jmp 0x1400b717a
mov qword [rbx + 0x18], rdi
mov edx, 1
xor r9d, r9d
mov r8d, edx
mov rcx, rbx
call fcn.1400b7e80
jmp 0x1400b718f
lea r8, str.Sanity_check_on_tag_count_failed__likely_corrupt_TIFF
lea rdx, str.TIFFRewriteDirectory
jmp 0x1400b7188