Function at 0x14006ec70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [rcx + 0x18]
mov rbx, rcx
test rax, rax
jne 0x14006ec97
mov edx, 1
xor r9d, r9d
mov r8d, edx
add rsp, 0x40
pop rbx
jmp fcn.14006f000
test dword [rcx + 0x10], 0x80000
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], r14
jne 0x14006ee58
mov esi, dword [rcx + 0x2ec]
cmp rsi, rax
jne 0x14006ed13
xor edi, edi
xor r8d, r8d
mov dword [rcx + 0x2ec], edi
mov qword [rcx + 0x18], rdi
mov rcx, qword [rcx + 0x438]
lea edx, [rdi + 4]
call qword [rbx + 0x450]
mov rcx, qword [rbx + 0x438]
lea r8d, [rdi + 4]
lea rdx, [rbx + 0x2ec]
call qword [rbx + 0x448]
cmp rax, 4
je 0x14006efd2
mov rdx, qword [rbx]
lea r8, str.Error_updating_TIFF_header
jmp 0x14006edd4
mov rdx, rsi
call fcn.14005ded0
test eax, eax
je 0x14006edc6
mov rcx, qword [rbx + 0x438]
lea rdx, [rsp + 0x50]
mov r8d, 2
call qword [rbx + 0x440]
cmp rax, 2
jne 0x14006edc6
test byte [rbx + 0x10], 0x80
je 0x14006ed55
lea rcx, [rsp + 0x50]
call fcn.14005d4d0
movzx eax, word [rsp + 0x50]
xor r8d, r8d
lea ecx, [rax + rax*2]
lea edx, [rcx*4 + 2]
mov rcx, qword [rbx + 0x438]
add edx, esi
call qword [rbx + 0x450]
mov rcx, qword [rbx + 0x438]
lea rdx, [rsp + 0x58]
mov r8d, 4
call qword [rbx + 0x440]
cmp rax, 4
jne 0x14006ee4c
test byte [rbx + 0x10], 0x80
je 0x14006eda8
lea rcx, [rsp + 0x58]
call fcn.14005d470
mov eax, dword [rsp + 0x58]
mov edx, eax
cmp rax, qword [rbx + 0x18]
je 0x14006edfc
mov rcx, rbx
mov esi, eax
call fcn.14005ded0
test eax, eax
jne 0x14006ed23
lea r8, str.Error_fetching_directory_count
lea rdx, str.TIFFRewriteDirectory
mov rcx, qword [rbx + 0x438]
call fcn.14005be80
xor eax, eax
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov r14, qword [rsp + 0x20]
add rsp, 0x40
pop rbx
ret
movzx eax, word [rsp + 0x50]
xor edi, edi
xor r8d, r8d
lea ecx, [rax + rax*2]
mov dword [rsp + 0x60], edi
lea edx, [rcx*4 + 2]
mov rcx, qword [rbx + 0x438]
add edx, esi
call qword [rbx + 0x450]
mov rcx, qword [rbx + 0x438]
lea r8d, [rdi + 4]
lea rdx, [rsp + 0x60]
call qword [rbx + 0x448]
cmp rax, 4
je 0x14006efce
lea r8, str.Error_writing_directory_link
jmp 0x14006edcd
lea r8, str.Error_fetching_directory_link
jmp 0x14006edcd
mov rbp, qword [rcx + 0x2f0]
cmp rbp, rax
jne 0x14006eea5
xor edi, edi
xor r8d, r8d
mov qword [rcx + 0x2f0], rdi
mov qword [rcx + 0x18], rdi
mov rcx, qword [rcx + 0x438]
lea edx, [rdi + 8]
call qword [rbx + 0x450]
mov rcx, qword [rbx + 0x438]
lea r8d, [rdi + 8]
lea rdx, [rbx + 0x2f0]
call qword [rbx + 0x448]
cmp rax, 8
jmp 0x14006ecfe
mov rdx, rbp
call fcn.14005ded0
test eax, eax
je 0x14006edc6
nop word [rax + rax]
mov rcx, qword [rbx + 0x438]
lea rdx, [rsp + 0x50]
mov r8d, 8
call qword [rbx + 0x440]
cmp rax, 8
jne 0x14006edc6
test byte [rbx + 0x10], 0x80
je 0x14006eef2
lea rcx, [rsp + 0x50]
call fcn.14005d490
mov rsi, qword [rsp + 0x50]
cmp rsi, 0xffff
ja 0x14006efea
movzx eax, si
xor r8d, r8d
lea ecx, [rax + rax*4]
shl ecx, 2
movsxd rdx, ecx
mov rcx, qword [rbx + 0x438]
add rdx, 8
add rdx, rbp
call qword [rbx + 0x450]
mov rcx, qword [rbx + 0x438]
lea rdx, [rsp + 0x58]
mov r8d, 8
call qword [rbx + 0x440]
cmp rax, 8
jne 0x14006ee4c
test byte [rbx + 0x10], 0x80
je 0x14006ef59
lea rcx, [rsp + 0x58]
call fcn.14005d490
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [rbx + 0x18]
je 0x14006ef7c
mov rcx, rbx
mov rbp, rdx
call fcn.14005ded0
test eax, eax
jne 0x14006eec0
jmp 0x14006edc6
movzx eax, si
xor edi, edi
xor r8d, r8d
lea ecx, [rax + rax*4]
mov qword [rsp + 0x60], rdi
shl ecx, 2
movsxd rdx, ecx
mov rcx, qword [rbx + 0x438]
add rdx, 8
add rdx, rbp
call qword [rbx + 0x450]
mov rcx, qword [rbx + 0x438]
lea r8d, [rdi + 8]
lea rdx, [rsp + 0x60]
call qword [rbx + 0x448]
cmp rax, 8
je 0x14006efce
lea r8, str.Error_writing_directory_link
jmp 0x14006edcd
mov qword [rbx + 0x18], rdi
mov edx, 1
xor r9d, r9d
mov rcx, rbx
mov r8d, edx
call fcn.14006f000
jmp 0x14006ede2
lea r8, str.Sanity_check_on_tag_count_failed__likely_corrupt_TIFF
jmp 0x14006edcd