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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bf72f
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1010aef8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.PDFPortResources.0
mov edx, dword [esi + 0x188]
lea ecx, [esi + 0x188]
lea eax, [esi + 0x194]
push eax
mov eax, dword [edx + 0x18]
mov dword [ebp - 4], 0x16
call eax
mov ecx, esi
call fcn.100601f0
mov eax, dword [0x100fefa0]
test eax, eax
jne 0x100653b5
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
test edi, edi
je 0x100653ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x100653b0
xor eax, eax
mov dword [0x100fefa0], eax
mov ecx, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
call ebx
cmp dword [eax], 1
jne 0x100654c4
mov eax, dword [0x100fef8c]
test eax, eax
jne 0x100653f5
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
test edi, edi
je 0x100653ee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x100653f0
xor eax, eax
mov dword [0x100fef8c], eax
mov edx, dword [eax]
push edx
call ebx
mov edi, eax
test edi, edi
je 0x10065410
mov ecx, edi
call fcn.1007bcc0
push edi
call fcn.100328f0
add esp, 4
mov eax, dword [0x100fefa0]
test eax, eax
jne 0x1006543c
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
test edi, edi
je 0x10065435
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x10065437
xor eax, eax
mov dword [0x100fefa0], eax
mov eax, dword [eax]
push eax
call ebx
push eax
call fcn.100328f0
mov eax, dword [0x100fef8c]
add esp, 4
test eax, eax
jne 0x10065476
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
test edi, edi
je 0x1006546f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x10065471
xor eax, eax
mov dword [0x100fef8c], eax
mov ecx, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0
push ecx
call ebx
mov eax, dword [0x100fefa0]
test eax, eax
jne 0x100654bb
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
test edi, edi
je 0x100654b4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
mov dword [0x100fefa0], eax
mov edx, dword [eax]
push 0
push edx
call ebx
jmp 0x100654f7
xor eax, eax
mov dword [0x100fefa0], eax
mov edx, dword [eax]
push 0
push edx
call ebx
jmp 0x100654f7
mov eax, dword [0x100fefa0]
test eax, eax
jne 0x100654f0
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
test edi, edi
je 0x100654e9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x100654eb
xor eax, eax
mov dword [0x100fefa0], eax
mov eax, dword [eax]
push eax
call ebx
dec dword [eax]
mov edi, dword [esi + 0x1a0]
mov byte [ebp - 4], 0x15
test edi, edi
je 0x10065515
mov ecx, edi
call fcn.100296c0
push edi
call fcn.100328f0
add esp, 4
lea edi, [esi + 0x194]
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 8]
push eax
mov byte [ebp - 4], 0x17
call dword [0x1010dab0]
add esp, 4
mov ecx, edi
mov byte [ebp - 4], 0x14
call fcn.1009dac0
lea ecx, [esi + 0x18c]
mov byte [ebp - 4], 0x13
mov dword [esi + method.CAGMPDFPortErrorStrategist.virtual_0], vtable.CAGMPDFPortErrorStrategist.0
call fcn.1009dac0
lea ecx, [esi + 0x174]
call fcn.1009d9d0
mov ecx, dword [esi + 0x100]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x10065574
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0xfc]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x1006558a
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0xf8]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x100655a0
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov ecx, dword [esi + 0xf4]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x100655b6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 0xd
call fcn.1009dac0
lea ecx, [esi + 0xd4]
mov byte [ebp - 4], 0xc
call fcn.1009dac0
lea ecx, [esi + 0xcc]
mov byte [ebp - 4], 0xb
call fcn.1009dac0
mov eax, dword [esi + 0xc0]
push eax
mov byte [ebp - 4], 0xa
call dword [0x1010dab0]
lea edi, [esi + 0xb0]
add esp, 4
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea ecx, [ebp - 0x18]
push ecx
mov ecx, edi
mov byte [ebp - 4], 0x18
call fcn.10061ac0
mov edi, dword [edi + 4]
push edi
mov byte [ebp - 4], 9
call dword [0x1010db78]
lea edi, [esi + 0xa0]
add esp, 4
mov dword [ebp - 0x18], edi
mov eax, dword [edi + 4]
mov ecx, dword [eax]
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
mov ecx, edi
mov byte [ebp - 4], 0x19
call fcn.10061a00
mov edi, dword [edi + 4]
push edi
mov byte [ebp - 4], 8
call dword [0x1010db78]
lea edi, [esi + 0x88]
add esp, 4
mov dword [ebp - 0x18], edi
mov ecx, edi
mov byte [ebp - 4], 0x1a
call fcn.10060000
mov eax, dword [edi]
push eax
mov byte [ebp - 4], 7
call dword [0x1010db78]
mov dword [edi], 0
lea edi, [esi + 0x70]
add esp, 4
mov dword [ebp - 0x18], edi
mov ecx, edi
mov byte [ebp - 4], 0x1b
call fcn.1005ff70
mov eax, dword [edi]
push eax
mov byte [ebp - 4], 6
call dword [0x1010db78]
mov dword [edi], 0
lea edi, [esi + 0x58]
add esp, 4
mov dword [ebp - 0x18], edi
mov ecx, edi
mov byte [ebp - 4], 0x1c
call fcn.1005cfd0
mov eax, dword [edi]
mov byte [ebp - 4], 5
push eax
call dword [0x1010db78]
mov dword [edi], 0
lea edi, [esi + 0x40]
add esp, 4
mov dword [ebp - 0x18], edi
mov ecx, edi
mov byte [ebp - 4], 0x1d
call fcn.1005cfd0
mov eax, dword [edi]
push eax
mov byte [ebp - 4], 4
call dword [0x1010db78]
mov dword [edi], 0
lea edi, [esi + 0x28]
add esp, 4
mov dword [ebp - 0x18], edi
mov ecx, edi
mov byte [ebp - 4], 0x1e
call fcn.1005cf40
mov eax, dword [edi]
push eax
mov byte [ebp - 4], 3
call dword [0x1010db78]
mov dword [edi], 0
lea edi, [esi + 0x10]
add esp, 4
mov dword [ebp - 0x18], edi
mov ecx, edi
mov byte [ebp - 4], 0x1f
call fcn.1005ceb0
mov eax, dword [edi]
push eax
mov byte [ebp - 4], 2
call dword [0x1010db78]
mov dword [edi], 0
mov eax, dword [esi + 0xc]
add esp, 4
mov byte [ebp - 4], 1
test eax, eax
je 0x10065760
push eax
mov eax, dword [0x1010e128]
mov ecx, dword [eax + 0xd0]
call ecx
add esp, 4
mov eax, dword [esi + 8]
mov byte [ebp - 4], 0
test eax, eax
je 0x1006577d
mov edx, dword [0x1010e128]
push eax
mov eax, dword [edx + 0xd0]
call eax
add esp, 4
mov dword [esi], vtable.AGMPDFPortResourcesBIBImpl.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret