Function at 0x18006a260
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov qword [rbp + 0x1f], 0xfffffffffffffffe
mov qword [rsp + 0x148], rbx
mov r15, rdx
mov rdi, rcx
xor esi, esi
mov qword [rcx + 8], rsi
lea rax, vtable.PDFPortResources.0
mov qword [rcx], rax
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], rsi
add rcx, 0x20
movzx edx, byte [rbp + 0x67]
call fcn.18007c140
nop
lea rcx, [rdi + 0x50]
movzx edx, byte [rbp + 0x67]
call fcn.18007c140
nop
lea rcx, [rdi + 0x80]
movzx edx, byte [rbp + 0x67]
call fcn.18007c140
nop
lea rcx, [rdi + 0xb0]
movzx edx, byte [rbp + 0x67]
call fcn.18007c140
nop
lea rcx, [rdi + 0xe0]
movzx edx, byte [rbp + 0x67]
call fcn.18007c140
nop
lea rcx, [rdi + 0x110]
movzx edx, byte [rbp + 0x67]
call fcn.18007c140
nop
mov qword [rdi + 0x150], rsi
lea ecx, [rsi + 0x30]
call qword [0x18013af60]
mov rbx, rax
test rax, rax
jne 0x18006a327
call fcn.18009f520
mov qword [rdi + 0x148], rbx
mov qword [rbx], rbx
mov rax, qword [rdi + 0x148]
mov qword [rax + 8], rax
mov rax, qword [rdi + 0x148]
mov qword [rax + 0x10], rax
mov rax, qword [rdi + 0x148]
mov byte [rax + 0x28], 1
mov rax, qword [rdi + 0x148]
mov byte [rax + 0x29], 1
mov qword [rdi + 0x170], rsi
mov ecx, 0x40
call qword [0x18013af60]
mov rbx, rax
test rax, rax
jne 0x18006a37c
call fcn.18009f520
mov qword [rdi + 0x168], rbx
mov qword [rbx], rbx
mov rax, qword [rdi + 0x168]
mov qword [rax + 8], rax
mov rax, qword [rdi + 0x168]
mov qword [rax + 0x10], rax
mov rax, qword [rdi + 0x168]
mov byte [rax + 0x38], 1
mov rax, qword [rdi + 0x168]
mov byte [rax + 0x39], 1
call fcn.18009d370
mov rdx, rax
lea rcx, [rdi + 0x180]
call fcn.180048360
nop
lea rcx, [rdi + 0x198]
call fcn.18005f8d0
mov qword [rdi + 0x1a0], rsi
lea rcx, [rdi + 0x1a8]
call fcn.18005f8d0
mov qword [rdi + 0x1b0], rsi
mov rdx, r15
lea rcx, [rdi + 0x1b8]
call fcn.1800a0580
mov r11, qword [r15 + 8]
mov qword [rdi + 0x1c0], r11
mov qword [rdi + 0x1c8], rsi
mov qword [rdi + 0x1d0], rsi
mov qword [rdi + 0x1d8], rsi
mov qword [rdi + 0x1e0], rsi
mov ecx, 0x30
call fcn.180034390
mov qword [rbp + 0x77], rax
test rax, rax
je 0x18006a440
mov rcx, rax
call fcn.180085710
jmp 0x18006a443
mov rax, rsi
mov qword [rdi + 0x1e8], rax
mov qword [rdi + 0x1f0], rsi
call fcn.180069be0
mov qword [rdi + 0x1f8], rax
call fcn.18006a080
mov qword [rdi + 0x200], rax
mov qword [rdi + 0x208], rsi
mov qword [rdi + 0x210], rsi
mov qword [rdi + 0x218], 1
lea rcx, [rdi + 0x298]
call fcn.18009f4b0
nop
mov word [rdi + 0x2b8], 0
lea r14, [rdi + 0x2c0]
mov qword [rbp + 0x77], r14
call fcn.18009f350
test rax, rax
je 0x18006a4b8
call fcn.18009f350
xor ecx, ecx
call qword [rax]
jmp 0x18006a4bb
mov rax, rsi
lea rcx, [r14 + 8]
mov rdx, rax
call fcn.1800a0550
nop
lea rax, vtable.CAGMPDFPortErrorStrategist.0
mov qword [r14], rax
call fcn.18009f350
mov qword [r14 + 0x10], rax
mov ecx, 0x18
call qword [0x18013af60]
test rax, rax
jne 0x18006a4f5
call fcn.18009f520
mov rax, rsi
jmp 0x18006a500
mov rdx, rdi
mov rcx, rax
call fcn.18005f5f0
lea r12, [rdi + 0x2d8]
mov rdx, rax
mov rcx, r12
call fcn.180098500
nop
mov qword [rdi + 0x2f0], rsi
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18006a54a
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006a540
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006a543
mov rbx, rsi
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x18006a647
lea ecx, [rax + 0x60]
call fcn.180034390
mov qword [rbp + 0x77], rax
test rax, rax
je 0x18006a579
mov rcx, rax
call fcn.180082460
mov r12, rax
jmp 0x18006a57c
mov r12, rsi
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18006a5ac
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006a5a2
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006a5a5
mov rbx, rsi
mov qword [0x1801298f8], rbx
mov rdx, r12
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, 8
call fcn.180034390
mov r12, rax
mov rbx, qword [0x180129920]
test rbx, rbx
jne 0x18006a5f4
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006a5ea
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006a5ed
mov rbx, rsi
mov qword [0x180129920], rbx
mov rdx, r12
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x180129920]
test rbx, rbx
jne 0x18006a62f
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006a625
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006a628
mov rbx, rsi
mov qword [0x180129920], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax], 1
lea r12, [rdi + 0x2d8]
jmp 0x18006a682
mov rbx, qword [0x180129920]
test rbx, rbx
jne 0x18006a677
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006a66d
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006a670
mov rbx, rsi
mov qword [0x180129920], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
inc qword [rax]
mov r9b, 1
lea r8, str.InDesignHackLayer
lea rdx, [rbp - 0x41]
mov rcx, r15
call fcn.1800a5990
nop
cmp qword [rbp - 0x41], 0
je 0x18006a7c8
lea rdx, str.DocPort
lea rcx, [rbp - 0x41]
call fcn.1800a50d0
test al, al
je 0x18006a6ed
xor r9d, r9d
lea r8, str.DocPort
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x41]
call fcn.1800a5810
nop
mov rcx, qword [rax]
mov rax, qword [0x18013bd00]
call qword [rax + 0x10]
mov qword [rdi + 0x1c8], rax
lea rcx, [rbp - 0x59]
call fcn.18009fa80
lea rdx, str.GStateStack
lea rcx, [rbp - 0x41]
call fcn.1800a50d0
test al, al
je 0x18006a736
xor r9d, r9d
lea r8, str.GStateStack
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x41]
call fcn.1800a5810
nop
mov rcx, qword [rax]
mov rax, qword [0x18013bd00]
call qword [rax + 0x10]
mov qword [rdi + 0x1d0], rax
lea rcx, [rbp - 0x59]
call fcn.18009fa80
lea rdx, str.DrawMgr
lea rcx, [rbp - 0x41]
call fcn.1800a50d0
test al, al
je 0x18006a77f
xor r9d, r9d
lea r8, str.DrawMgr
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x41]
call fcn.1800a5810
nop
mov rcx, qword [rax]
mov rax, qword [0x18013bd00]
call qword [rax + 0x10]
mov qword [rdi + 0x1d8], rax
lea rcx, [rbp - 0x59]
call fcn.18009fa80
lea rdx, str.ExportUtils
lea rcx, [rbp - 0x41]
call fcn.1800a50d0
test al, al
je 0x18006a7c8
xor r9d, r9d
lea r8, str.ExportUtils
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x41]
call fcn.1800a5810
nop
mov rcx, qword [rax]
mov rax, qword [0x18013bd00]
call qword [rax + 0x10]
mov qword [rdi + 0x1e0], rax
lea rcx, [rbp - 0x59]
call fcn.18009fa80
call fcn.1800a4fb0
mov qword [0x18013bd08], rax
test rax, rax
je 0x18006a7dd
call qword [rax]
jmp 0x18006a7e0
mov rax, rsi
mov rdx, rax
lea rcx, [rbp - 0x21]
call fcn.1800a0550
nop
lea rdx, [rbp - 0x21]
lea rcx, vtable.double_linked_list_element_class_BIB_T_MT::LazyTerminate__class_BIBDLLEParent_.0
call fcn.1800a5280
nop
call fcn.1800a4fb0
mov qword [0x18013bd08], rax
test rax, rax
je 0x18006a813
call qword [rax]
jmp 0x18006a816
mov rax, rsi
mov rdx, rax
lea rcx, [rbp - 0x31]
call fcn.1800a0550
nop
lea rdx, [rbp - 0x31]
lea rcx, vtable.double_linked_list_element_class_BIB_T_MT::LazyTerminate__class_BIBDLLEParent_.0
call fcn.1800a5280
nop
lea rcx, [rdi + 0x220]
mov rdx, r15
call fcn.18008fec0
lea r9, [rbp - 0x31]
lea r8, [rbp - 0x21]
mov rdx, r15
lea rcx, [rdi + 0x208]
call fcn.180090560
cmp dword [rdi + 0x21c], 0
je 0x18006a872
cmp dword [rdi + 0x23c], 0x10
jge 0x18006a872
mov dword [rdi + 0x21c], esi
mov r13d, 0x7d0
lea rdx, str.GlyphNumberThreshold
mov rcx, r15
call fcn.1800a50d0
test al, al
je 0x18006a8be
mov r9b, 1
lea r8, str.GlyphNumberThreshold
lea rdx, [rbp - 0x59]
mov rcx, r15
call fcn.1800a5690
nop
mov rcx, qword [rbp - 0x59]
mov rax, qword [0x18013bce0]
call qword [rax + 0x10]
cvttsd2si r13, xmm0
lea rcx, [rbp - 0x59]
call fcn.18009fa80
mov rdx, qword [rdi + 0x288]
test rdx, rdx
je 0x18006a925
lea rcx, [rbp - 0x51]
call fcn.1800a0550
nop
lea r15, vtable.CAGMPDFPortErrorStrategist.0
mov qword [rbp - 0x59], r15
call fcn.18009f350
mov qword [rbp - 0x49], rax
lea rdx, [rbp - 0x51]
lea rcx, [rbp + 0x77]
call fcn.1800a0580
mov r11, qword [rbp + 0x77]
mov rax, qword [r14 + 8]
mov qword [rbp + 0x77], rax
mov qword [r14 + 8], r11
lea rcx, [rbp + 0x77]
call fcn.18009fa80
mov r11, qword [rbp - 0x49]
mov qword [r14 + 0x10], r11
mov qword [rbp - 0x59], r15
lea rcx, [rbp - 0x51]
call fcn.18009fa80
jmp 0x18006a92c
lea r15, vtable.CAGMPDFPortErrorStrategist.0
mov rax, qword [r14]
mov rdx, r12
mov rcx, r14
call qword [rax + 0x28]
mov ecx, 0x70
call fcn.180034390
mov qword [rbp + 0x77], rax
test rax, rax
je 0x18006a95f
mov rdx, qword [rdi + 0x230]
mov rcx, rax
call fcn.18002c1c0
mov r12, rax
jmp 0x18006a962
mov r12, rsi
mov rbx, qword [rdi + 0x2f0]
cmp r12, rbx
je 0x18006a983
test rbx, rbx
je 0x18006a983
mov rcx, rbx
call fcn.18002c140
mov rcx, rbx
call fcn.1800343c0
mov qword [rdi + 0x2f0], r12
mov ecx, 0x1d0
call fcn.180034390
mov rbx, rax
mov qword [rbp + 0x77], rax
test rax, rax
je 0x18006aa8e
lea rax, [rbp - 0x11]
mov qword [rbp + 0x7f], rax
lea rax, [rbp - 0x59]
mov qword [rbp + 0x17], rax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x11]
call fcn.1800a0580
mov r11, qword [rbp - 0x29]
mov qword [rbp - 9], r11
lea rdx, [rbp - 0x21]
lea rcx, [rbp - 0x59]
call fcn.1800a0580
mov r11, qword [rbp - 0x19]
mov qword [rbp - 0x51], r11
test r14, r14
je 0x18006a9e7
lea rsi, [r14 + 8]
mov rdx, rsi
lea rcx, [rbp + 7]
call fcn.1800a0580
mov qword [rbp - 1], r15
mov rax, qword [r14 + 0x10]
mov qword [rbp + 0xf], rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x59]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], r13d
mov eax, dword [rdi + 0x23c]
mov dword [rsp + 0x58], eax
lea rax, [rbp - 1]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x1e0]
mov qword [rsp + 0x48], rax
mov eax, dword [rdi + 0x27c]
mov dword [rsp + 0x40], eax
mov eax, dword [rdi + 0x218]
mov dword [rsp + 0x38], eax
movzx eax, word [rdi + 0x290]
mov word [rsp + 0x30], ax
movzx eax, word [rdi + 0x21c]
mov word [rsp + 0x28], ax
movzx eax, word [rdi + 0x214]
mov word [rsp + 0x20], ax
movzx r9d, word [rdi + 0x210]
mov r8, qword [rdi + 0x228]
mov rdx, qword [rdi + 0x1e8]
mov rcx, rbx
call fcn.180080ba0
mov rsi, rax
mov rcx, qword [rdi + 0x1f0]
cmp rsi, rcx
je 0x18006aaa9
test rcx, rcx
je 0x18006aaa9
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x1f0], rsi
lea rcx, [rbp - 0x31]
call fcn.18009fa80
nop
lea rcx, [rbp - 0x21]
call fcn.18009fa80
nop
lea rcx, [rbp - 0x41]
call fcn.18009fa80
nop
mov rax, rdi
mov rbx, qword [rsp + 0x148]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret