Function at 0x18006b230
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 - 0x39], 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 0x18006b2fa
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 0x18006b34f
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 0x18006b3e0
call qword [rax]
jmp 0x18006b3e3
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 0x18006b438
mov rcx, rax
call fcn.180085710
jmp 0x18006b43b
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 + 0x220]
mov rdx, r15
mov r8d, 0x78
call fcn.1800a6760
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 0x18006b4de
call fcn.18009f350
xor ecx, ecx
call qword [rax]
jmp 0x18006b4e1
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 0x18006b51e
call fcn.18009f520
mov rax, rsi
jmp 0x18006b529
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 0x18006b570
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006b566
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006b569
mov rbx, rsi
mov qword [0x1801298f8], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x18006b66d
lea ecx, [rax + 0x60]
call fcn.180034390
mov qword [rbp + 0x7f], rax
test rax, rax
je 0x18006b59f
mov rcx, rax
call fcn.180082460
mov r13, rax
jmp 0x18006b5a2
mov r13, rsi
mov rbx, qword [0x1801298f8]
test rbx, rbx
jne 0x18006b5d2
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006b5c8
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006b5cb
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 0x18006b61a
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006b610
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006b613
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 0x18006b655
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006b64b
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006b64e
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 0x18006b6a8
mov rbx, qword [0x180129920]
test rbx, rbx
jne 0x18006b69d
lea ecx, [rbx + 4]
call fcn.180034390
mov rbx, rax
test rax, rax
je 0x18006b693
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
jmp 0x18006b696
mov rbx, rsi
mov qword [0x180129920], rbx
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
inc qword [rax]
mov rdx, qword [r15 + 0x68]
test rdx, rdx
je 0x18006b706
lea rcx, [rbp - 9]
call fcn.1800a0550
nop
mov qword [rbp - 0x11], r13
call fcn.18009f350
mov qword [rbp - 1], rax
lea rdx, [rbp - 9]
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 - 1]
mov qword [r12 + 0x10], r11
mov qword [rbp - 0x11], r13
lea rcx, [rbp - 9]
call fcn.18009fa80
cmp dword [rdi + 0x21c], 0
je 0x18006b725
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 0x18006b87c
lea rax, [rbp - 0x21]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x11]
mov qword [rbp - 0x29], rax
call fcn.1800a4fb0
mov qword [0x18013bd08], rax
test rax, rax
je 0x18006b775
call qword [rax]
jmp 0x18006b778
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 0x18006b7ab
call qword [rax]
jmp 0x18006b7ae
mov rax, rsi
mov rdx, rax
lea rcx, [rbp - 0x11]
call fcn.1800a0550
nop
lea rdx, [rbp - 0x11]
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 0x18006b7d9
mov rdx, rsi
lea rcx, [rbp + 0xf]
call fcn.1800a0580
mov qword [rbp + 7], r13
mov rax, qword [r12 + 0x10]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x21]
mov qword [rsp + 0x70], rax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0x7d0
mov eax, dword [rdi + 0x23c]
mov dword [rsp + 0x58], eax
lea rax, [rbp + 7]
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 0x18006b87f
mov rbx, rsi
mov rcx, qword [rdi + 0x1f0]
cmp rbx, rcx
je 0x18006b89a
test rcx, rcx
je 0x18006b89a
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 0x18006b8c6
mov rdx, qword [rdi + 0x230]
mov rcx, rax
call fcn.18002c1c0
mov rsi, rax
mov rbx, qword [rdi + 0x2f0]
cmp rsi, rbx
je 0x18006b8e7
test rbx, rbx
je 0x18006b8e7
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