Function at 0x14009ae30
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 0x14009ae57
mov edx, 1
xor r9d, r9d
mov r8d, edx
add rsp, 0x40
pop rbx
jmp fcn.14009b1c0
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 0x14009b018
mov esi, dword [rcx + 0x2ec]
cmp rsi, rax
jne 0x14009aed3
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 0x14009b192
mov rdx, qword [rbx]
lea r8, str.Error_updating_TIFF_header
jmp 0x14009af94
mov rdx, rsi
call fcn.140089da0
test eax, eax
je 0x14009af86
mov rcx, qword [rbx + 0x438]
lea rdx, [rsp + 0x50]
mov r8d, 2
call qword [rbx + 0x440]
cmp rax, 2
jne 0x14009af86
test byte [rbx + 0x10], 0x80
je 0x14009af15
lea rcx, [rsp + 0x50]
call fcn.1400893a0
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 0x14009b00c
test byte [rbx + 0x10], 0x80
je 0x14009af68
lea rcx, [rsp + 0x58]
call fcn.140089340
mov eax, dword [rsp + 0x58]
mov edx, eax
cmp rax, qword [rbx + 0x18]
je 0x14009afbc
mov rcx, rbx
mov esi, eax
call fcn.140089da0
test eax, eax
jne 0x14009aee3
lea r8, str.Error_fetching_directory_count
lea rdx, str.TIFFRewriteDirectory
mov rcx, qword [rbx + 0x438]
call fcn.140087d50
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 0x14009b18e
lea r8, str.Error_writing_directory_link
jmp 0x14009af8d
lea r8, str.Error_fetching_directory_link
jmp 0x14009af8d
mov rbp, qword [rcx + 0x2f0]
cmp rbp, rax
jne 0x14009b065
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 0x14009aebe
mov rdx, rbp
call fcn.140089da0
test eax, eax
je 0x14009af86
nop word [rax + rax]
mov rcx, qword [rbx + 0x438]
lea rdx, [rsp + 0x50]
mov r8d, 8
call qword [rbx + 0x440]
cmp rax, 8
jne 0x14009af86
test byte [rbx + 0x10], 0x80
je 0x14009b0b2
lea rcx, [rsp + 0x50]
call fcn.140089360
mov rsi, qword [rsp + 0x50]
cmp rsi, 0xffff
ja 0x14009b1aa
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 0x14009b00c
test byte [rbx + 0x10], 0x80
je 0x14009b119
lea rcx, [rsp + 0x58]
call fcn.140089360
mov rdx, qword [rsp + 0x58]
cmp rdx, qword [rbx + 0x18]
je 0x14009b13c
mov rcx, rbx
mov rbp, rdx
call fcn.140089da0
test eax, eax
jne 0x14009b080
jmp 0x14009af86
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 0x14009b18e
lea r8, str.Error_writing_directory_link
jmp 0x14009af8d
mov qword [rbx + 0x18], rdi
mov edx, 1
xor r9d, r9d
mov rcx, rbx
mov r8d, edx
call fcn.14009b1c0
jmp 0x14009afa2
lea r8, str.Sanity_check_on_tag_count_failed__likely_corrupt_TIFF
jmp 0x14009af8d