Function at 0x18006aaf0
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, 0xe0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rsp + 0x128], rbx
mov r15, r8
mov r12, 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 0x18006abba
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 0x18006ac0f
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
lea rbx, [rdi + 0x1b8]
mov qword [rbp + 0x7f], rbx
call fcn.1800a5000
mov qword [0x18013bd10], rax
test rax, rax
je 0x18006aca0
call qword [rax]
jmp 0x18006aca3
mov rax, rsi
mov rdx, rax
mov rcx, rbx
call fcn.1800a0550
nop
mov rdx, rbx
lea rcx, vtable.double_linked_list_element_class_BIB_T_MT::LazyTerminate__class_BIBDLLEParent_.0
call fcn.1800a5280
nop
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 + 0x7f], rax
test rax, rax
je 0x18006acf8
mov rcx, rax
call fcn.180085710
jmp 0x18006acfb
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 rax, qword [r12]
mov qword [rdi + 0x208], rax
mov dword [rdi + 0x210], esi
mov eax, dword [r12 + 8]
mov dword [rdi + 0x214], eax
mov eax, dword [r12 + 0xc]
mov dword [rdi + 0x218], eax
mov eax, dword [r12 + 0x10]
mov dword [rdi + 0x21c], eax
lea rcx, [rdi + 0x298]
call fcn.18009f4b0
nop
mov word [rdi + 0x2b8], 0
lea r12, [rdi + 0x2c0]
mov qword [rbp + 0x7f], r12
call fcn.18009f350
test rax, rax
je 0x18006ad89
call fcn.18009f350
xor ecx, ecx
call qword [rax]
jmp 0x18006ad8c
mov rax, rsi
lea rcx, [r12 + 8]
mov rdx, rax
call fcn.1800a0550
nop
lea r13, vtable.CAGMPDFPortErrorStrategist.0
mov qword [r12], r13
call fcn.18009f350
mov qword [r12 + 0x10], rax
mov ecx, 0x18
call qword [0x18013af60]
test rax, rax
jne 0x18006adc9
call fcn.18009f520
mov rax, rsi
jmp 0x18006add4
mov rdx, rdi
mov rcx, rax
call fcn.18005f5f0
mov rdx, rax
lea rcx, [rdi + 0x2d8]
call fcn.180098500
nop
mov qword [rdi + 0x2f0], rsi
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18006ae1b
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006ae11
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006ae14
mov rbx, rsi
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x18006af18
lea ecx, [rax + 0x60]
call fcn.180034390
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x18006ae4a
mov rcx, rax
call fcn.180082460
mov r13, rax
jmp 0x18006ae4d
mov r13, rsi
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18006ae7d
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006ae73
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006ae76
mov rbx, rsi
mov qword [0x1801298f8], rbx
mov rdx, r13
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, 8
call fcn.180034390
mov r13, rax
mov rbx, qword [0x180129920]
test rbx, rbx
jne 0x18006aec5
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006aebb
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006aebe
mov rbx, rsi
mov qword [0x180129920], rbx
mov rdx, r13
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [0x180129920]
test rbx, rbx
jne 0x18006af00
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006aef6
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006aef9
mov rbx, rsi
mov qword [0x180129920], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rax], 1
lea r13, vtable.CAGMPDFPortErrorStrategist.0
jmp 0x18006af53
mov rbx, qword [0x180129920]
test rbx, rbx
jne 0x18006af48
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006af3e
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006af41
mov rbx, rsi
mov qword [0x180129920], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
inc qword [rax]
lea rcx, [rdi + 0x220]
mov r9d, 0x70
mov r8, r15
lea edx, [r9 + 8]
call fcn.1800a5a40
test eax, eax
je 0x18006afb9
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea r8, [0x1800d8a34]
lea rdx, str.Memory_Copy_Error
lea rcx, [rbp - 0x11]
call fcn.18009f8a0
nop
mov rcx, qword [rax + 0x18]
call qword [0x18013af90]
mov rbx, rax
lea rcx, [rbp - 0x11]
call fcn.18009f950
test rbx, rbx
je 0x18006afb9
mov rcx, rbx
call fcn.1800a01b0
int3
mov dword [rdi + 0x290], esi
mov rdx, qword [r15 + 0x68]
test rdx, rdx
je 0x18006b01d
lea rcx, [rbp - 0x31]
call fcn.1800a0550
nop
mov qword [rbp - 0x39], r13
call fcn.18009f350
mov qword [rbp - 0x29], rax
lea rdx, [rbp - 0x31]
lea rcx, [rbp + 0x7f]
call fcn.1800a0580
mov r11, qword [rbp + 0x7f]
mov rax, qword [r12 + 8]
mov qword [rbp + 0x7f], rax
mov qword [r12 + 8], r11
lea rcx, [rbp + 0x7f]
call fcn.18009fa80
mov r11, qword [rbp - 0x29]
mov qword [r12 + 0x10], r11
mov qword [rbp - 0x39], r13
lea rcx, [rbp - 0x31]
call fcn.18009fa80
cmp dword [rdi + 0x21c], 0
je 0x18006b03c
mov eax, dword [rdi + 0x21c]
cmp dword [rdi + 0x23c], 0x10
cmovl eax, esi
mov dword [rdi + 0x21c], eax
mov rax, qword [r12]
lea rdx, [rdi + 0x2d8]
mov rcx, r12
call qword [rax + 0x28]
mov ecx, 0x1d0
call fcn.180034390
mov rbx, rax
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x18006b193
lea rax, [rbp - 0x21]
mov qword [rbp + 0x1f], rax
lea rax, [rbp - 0x39]
mov qword [rbp + 0xf], rax
call fcn.1800a4fb0
mov qword [0x18013bd08], rax
test rax, rax
je 0x18006b08c
call qword [rax]
jmp 0x18006b08f
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 0x18006b0c2
call qword [rax]
jmp 0x18006b0c5
mov rax, rsi
mov rdx, rax
lea rcx, [rbp - 0x39]
call fcn.1800a0550
nop
lea rdx, [rbp - 0x39]
lea rcx, vtable.double_linked_list_element_class_BIB_T_MT::LazyTerminate__class_BIBDLLEParent_.0
call fcn.1800a5280
nop
test r12, r12
lea rdx, [r12 + 8]
jne 0x18006b0f0
mov rdx, rsi
lea rcx, [rbp - 9]
call fcn.1800a0580
mov qword [rbp - 0x11], r13
mov rax, qword [r12 + 0x10]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0x7d0
mov eax, dword [rdi + 0x23c]
mov dword [rsp + 0x58], eax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rsi
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 rbx, rax
jmp 0x18006b196
mov rbx, rsi
mov rcx, qword [rdi + 0x1f0]
cmp rbx, rcx
je 0x18006b1b1
test rcx, rcx
je 0x18006b1b1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x1f0], rbx
mov ecx, 0x70
call fcn.180034390
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x18006b1dd
mov rdx, qword [rdi + 0x230]
mov rcx, rax
call fcn.18002c1c0
mov rsi, rax
mov rbx, qword [rdi + 0x2f0]
cmp rsi, rbx
je 0x18006b1fe
test rbx, rbx
je 0x18006b1fe
mov rcx, rbx
call fcn.18002c140
mov rcx, rbx
call fcn.1800343c0
mov qword [rdi + 0x2f0], rsi
mov rax, rdi
mov rbx, qword [rsp + 0x128]
add rsp, 0xe0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret