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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bfcbe
mov eax, dword fs:[0]
push eax
sub esp, 0x18
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 - 0x14], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi], vtable.PDFPortResources.0
mov dword [ebp - 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
lea edi, [esi + 0x10]
push 8
mov byte [ebp - 4], 2
mov dword [edi], ebx
call dword [0x1010db70]
add esp, 4
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10066bb4
call fcn.1009d5f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp + 0xf]
push edx
mov dword [edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.10031080
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea edi, [esi + 0x28]
push 8
mov byte [ebp - 4], 3
mov dword [edi], ebx
call dword [0x1010db70]
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10066bfd
call fcn.1009d5f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp + 0xf]
push edx
mov dword [edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.10031080
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea edi, [esi + 0x40]
push 8
mov byte [ebp - 4], 4
mov dword [edi], ebx
call dword [0x1010db70]
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10066c46
call fcn.1009d5f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp + 0xf]
push edx
mov dword [edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.10031080
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea edi, [esi + 0x58]
push 8
mov byte [ebp - 4], 5
mov dword [edi], ebx
call dword [0x1010db70]
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10066c8f
call fcn.1009d5f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp + 0xf]
push edx
mov dword [edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.10031080
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea edi, [esi + 0x70]
push 8
mov byte [ebp - 4], 6
mov dword [edi], ebx
call dword [0x1010db70]
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10066cd8
call fcn.1009d5f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp + 0xf]
push edx
mov dword [edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.10031080
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
lea edi, [esi + 0x88]
push 8
mov byte [ebp - 4], 7
mov dword [edi], ebx
call dword [0x1010db70]
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10066d24
call fcn.1009d5f0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea edx, [ebp + 0xf]
push edx
mov dword [edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.10031080
mov eax, dword [edi]
mov dword [eax], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
push ebx
push 1
mov byte [ebp - 4], 8
mov dword [esi + 0xa8], ebx
call fcn.10036dd0
mov dword [esi + 0xa4], eax
mov dword [eax], eax
mov eax, dword [esi + 0xa4]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xa4]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0xa4]
mov byte [ecx + 0x14], 1
mov edx, dword [esi + 0xa4]
mov byte [edx + 0x15], 1
push ebx
push 1
mov byte [ebp - 4], 9
mov dword [esi + 0xb8], ebx
call fcn.1005bec0
mov dword [esi + 0xb4], eax
mov dword [eax], eax
mov eax, dword [esi + 0xb4]
mov dword [eax + 4], eax
mov eax, dword [esi + 0xb4]
mov dword [eax + 8], eax
mov eax, dword [esi + 0xb4]
mov byte [eax + 0x20], 1
mov ecx, dword [esi + 0xb4]
add esp, 0x1c
mov byte [ecx + 0x21], 1
mov byte [ebp - 4], 0xa
call fcn.1009b450
push eax
lea ecx, [esi + 0xc0]
call fcn.10045ad0
lea ecx, [esi + 0xcc]
call fcn.1009d630
mov dword [esi + 0xd0], ebx
lea ecx, [esi + 0xd4]
call fcn.1009d630
mov dword [esi + 0xd8], ebx
lea edi, [esi + 0xdc]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x10], edi
call fcn.100a1d00
mov dword [0x1010e240], eax
cmp eax, ebx
je 0x10066e25
mov edx, dword [eax]
call edx
jmp 0x10066e27
xor eax, eax
push eax
mov ecx, edi
call fcn.1009e380
push edi
mov ecx, 0x1010ae10
mov byte [ebp - 4], 0xe
call fcn.100a2050
push 0x20
mov byte [ebp - 4], 0xf
mov dword [esi + 0xe4], ebx
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf0], ebx
call fcn.100328c0
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 0x10
cmp eax, ebx
je 0x10066e78
mov ecx, eax
call fcn.10081700
jmp 0x10066e7a
xor eax, eax
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], ebx
mov byte [ebp - 4], 0x12
call fcn.10065d60
mov dword [esi + 0xfc], eax
mov byte [ebp - 4], 0x13
call fcn.10066080
mov dword [esi + 0x100], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi + 0x104], ecx
mov dword [esi + 0x108], ebx
mov edx, dword [eax + 4]
mov dword [esi + 0x10c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x110], ecx
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x174]
mov dword [esi + 0x114], edx
call fcn.1009d5a0
lea edi, [esi + 0x188]
mov byte [ebp - 4], 0x15
mov word [esi + 0x184], bx
mov dword [ebp + 8], edi
call fcn.1009d480
test eax, eax
je 0x10066f07
call fcn.1009d480
mov eax, dword [eax]
push ebx
call eax
add esp, 4
jmp 0x10066f09
xor eax, eax
lea ecx, [edi + 4]
push eax
call fcn.1009e380
mov byte [ebp - 4], 0x16
mov dword [edi], vtable.CAGMPDFPortErrorStrategist.0
call fcn.1009d480
mov dword [edi + 8], eax
push 0xc
mov byte [ebp - 4], 0x17
call dword [0x1010db70]
add esp, 4
cmp eax, ebx
jne 0x10066f7d
call fcn.1009d5f0
xor eax, eax
lea ecx, [esi + 0x194]
push eax
push ecx
call fcn.100977d0
add esp, 8
mov dword [esi + 0x1a0], ebx
mov eax, dword [0x100fef8c]
mov byte [ebp - 4], 0x19
cmp eax, ebx
jne 0x10066f8e
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x10066f87
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x10066f89
push esi
mov ecx, eax
call fcn.1005add0
jmp 0x10066f3e
xor eax, eax
mov dword [0x100fef8c], eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10067083
push 0x30
call fcn.100328c0
add esp, 4
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x1a
cmp eax, ebx
je 0x10066fc0
mov ecx, eax
call fcn.1007ecd0
mov dword [ebp + 8], eax
jmp 0x10066fc3
mov dword [ebp + 8], ebx
mov eax, dword [0x100fef8c]
mov byte [ebp - 4], 0x19
cmp eax, ebx
jne 0x10066ff3
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x10066fec
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x10066fee
xor eax, eax
mov dword [0x100fef8c], eax
mov edx, dword [ebp + 8]
mov eax, dword [eax]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 4
call fcn.100328c0
mov dword [ebp + 8], eax
mov eax, dword [0x100fefa0]
add esp, 4
cmp eax, ebx
jne 0x10067039
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x10067032
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x10067034
xor eax, eax
mov dword [0x100fefa0], eax
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x100fefa0]
cmp eax, ebx
jne 0x10067072
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x1006706b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x1006706d
xor eax, eax
mov dword [0x100fefa0], eax
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax], 1
jmp 0x100670ba
mov eax, dword [0x100fefa0]
cmp eax, ebx
jne 0x100670af
push 4
call fcn.100328c0
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x100670a8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi], eax
mov eax, edi
jmp 0x100670aa
xor eax, eax
mov dword [0x100fefa0], eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
inc dword [eax]
mov edx, dword [ebp + 0xc]
push 0x58
push edx
lea eax, [esi + 0x118]
push 0x5c
push eax
call fcn.100a2860
add esp, 0x10
test eax, eax
je 0x10067113
push ebx
push ebx
push ebx
push 0x100c9cc0
push str.Memory_Copy_Error
lea ecx, [ebp - 0x24]
call fcn.1009d960
mov ecx, dword [eax + 0xc]
push ecx
mov byte [ebp - 4], 0x1b
call dword [0x1010daf8]
add esp, 4
lea ecx, [ebp - 0x24]
mov edi, eax
mov byte [ebp - 4], 0x19
call fcn.1009d9d0
cmp edi, ebx
je 0x10067113
push edi
call fcn.1009e120
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x170], ebx
mov eax, dword [edx + 0x54]
cmp eax, ebx
je 0x10067182
push eax
lea ecx, [ebp - 0x1c]
call fcn.1009e380
mov edi, vtable.CAGMPDFPortErrorStrategist.0
mov byte [ebp - 4], 0x1c
mov dword [ebp - 0x20], edi
call fcn.1009d480
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 0x1d
call fcn.1009e3b0
mov ecx, dword [esi + 0x18c]
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], ecx
lea ecx, [ebp + 0xc]
mov dword [esi + 0x18c], eax
call fcn.1009dac0
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
mov dword [esi + 0x190], edx
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x20], edi
call fcn.1009dac0
cmp dword [esi + 0x114], ebx
je 0x10067199
cmp dword [esi + 0x128], 0x10
jge 0x10067199
mov dword [esi + 0x114], ebx
mov edx, dword [esi + 0x188]
lea ecx, [esi + 0x188]
lea eax, [esi + 0x194]
push eax
mov eax, dword [edx + 0x14]
call eax
push 0x118
call fcn.100328c0
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x1e
cmp eax, ebx
je 0x100672cf
sub esp, 8
mov edi, esp
mov dword [ebp + 8], esp
mov dword [ebp - 0x10], edi
call fcn.100a1cc0
mov dword [0x1010e23c], eax
cmp eax, ebx
je 0x100671ec
mov ecx, dword [eax]
call ecx
jmp 0x100671ee
xor eax, eax
push eax
mov ecx, edi
call fcn.1009e380
push edi
mov ecx, 0x1010ae10
mov byte [ebp - 4], 0x1f
call fcn.100a2050
sub esp, 8
mov edi, esp
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], edi
call fcn.100a1cc0
mov dword [0x1010e23c], eax
cmp eax, ebx
je 0x10067228
mov edx, dword [eax]
call edx
jmp 0x1006722a
xor eax, eax
push eax
mov ecx, edi
call fcn.1009e380
push edi
mov ecx, 0x1010ae10
mov byte [ebp - 4], 0x21
call fcn.100a2050
mov eax, dword [esi + 0x128]
push 0x7d0
push eax
sub esp, 0xc
lea eax, [esi + 0x188]
mov byte [ebp - 4], 0x22
mov dword [ebp - 0x18], esp
mov edi, esp
cmp eax, ebx
je 0x10067268
add eax, 4
jmp 0x1006726a
xor eax, eax
lea ecx, [edi + 4]
push eax
call fcn.1009e3b0
mov dword [edi], vtable.CAGMPDFPortErrorStrategist.0
mov ecx, dword [esi + 0x190]
mov dword [edi + 8], ecx
mov edx, dword [esi + 0x164]
mov ecx, dword [esi + 0x110]
mov eax, dword [esi + 0xf4]
push ebx
push edx
movzx edx, word [esi + 0x170]
push ecx
movzx ecx, word [esi + 0x114]
push edx
movzx edx, word [esi + 0x10c]
push ecx
movzx ecx, word [esi + 0x108]
push edx
mov edx, dword [esi + 0x11c]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
mov byte [ebp - 4], 0x1e
call fcn.1007d360
mov edi, eax
jmp 0x100672d1
xor edi, edi
mov ecx, dword [esi + 0xf8]
mov byte [ebp - 4], 0x19
cmp edi, ecx
je 0x100672eb
cmp ecx, ebx
je 0x100672eb
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
push 0x48
mov dword [esi + 0xf8], edi
call fcn.100328c0
add esp, 4
mov dword [ebp + 0xc], eax
mov byte [ebp - 4], 0x23
cmp eax, ebx
je 0x10067319
mov ecx, dword [esi + 0x120]
push ecx
mov ecx, eax
call fcn.100297b0
mov dword [ebp + 0xc], eax
jmp 0x1006731c
mov dword [ebp + 0xc], ebx
mov edi, dword [esi + 0x1a0]
mov byte [ebp - 4], 0x19
cmp dword [ebp + 0xc], edi
je 0x1006733f
cmp edi, ebx
je 0x1006733f
mov ecx, edi
call fcn.100296c0
push edi
call fcn.100328f0
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [esi + 0x1a0], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8