Function at 0x421304
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
call fcn.0041a785
mov edi, dword [0x4a9bfc]
mov ebp, dword fs:[0x2c]
mov ecx, eax
test byte [ecx + 0x8c], 0x80
mov dword [esp + 0x14], ecx
jne 0x42137b
cmp dword [0x4a7e00], 0
je 0x421340
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x42134c
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x421369
mov eax, dword [ebp + edi*4]
mov dword [eax + 0xc], 1
jmp 0x421377
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esi + 0x94]
xor edx, edx
cmp ebx, edx
jne 0x42139a
push edx
push 0xffffe89d
call sym.AdobeCollabSync.exe_PR_SetError
pop ecx
pop ecx
jmp 0x4213a5
lea eax, [ebx + 4]
cmp dword [eax], eax
je 0x421432
mov eax, dword [esp + 0x14]
test byte [eax + 0x8c], 0x80
jne 0x42142a
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x421408
cmp dword [0x4a7e00], esi
je 0x4213ce
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4213da
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x421408
cmp dword [0x4a7e00], 0
je 0x4213f5
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x421401
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], 0
je 0x42141d
mov eax, dword [ebp + edi*4]
mov dword [eax + 0xc], esi
jmp 0x42142a
push esi
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or eax, 0xffffffff
jmp 0x42162e
test byte [ecx + 0x8c], 0x80
jne 0x4214b8
cmp dword [esp + 0x10], edx
jne 0x42148f
cmp dword [0x4a7e00], edx
je 0x421455
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x421461
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x42148f
cmp dword [0x4a7e00], 0
je 0x42147c
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x421488
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], 0
je 0x4214a8
mov eax, dword [ebp + edi*4]
mov ecx, dword [esp + 0x10]
mov dword [eax + 0xc], ecx
jmp 0x4214b8
push dword [esp + 0x10]
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [0x4aa0b8]
call sym.AdobeCollabSync.exe_PR_Lock
jmp 0x4214ce
push 0xffffffffffffffff
push ebx
call sym.AdobeCollabSync.exe_PR_WaitCondVar
pop ecx
cmp dword [esi], 5
pop ecx
jne 0x4214c5
push dword [0x4aa0b8]
call sym.AdobeCollabSync.exe_PR_Unlock
mov eax, dword [esp + 0x18]
test byte [eax + 0x8c], 0x80
pop ecx
jne 0x421539
cmp dword [0x4a7e00], 0
je 0x421502
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x42150e
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [0x4a7e00], 0
mov dword [esp + 0x10], eax
je 0x42152b
mov eax, dword [ebp + edi*4]
mov dword [eax + 0xc], 1
jmp 0x421539
push 1
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test byte [esi + 0x8c], 0x80
mov dword [esi], 1
jne 0x4215a0
lea ebx, [esi + 0x3c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
add eax, 0x30
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x68]
mov ecx, dword [esi + 0x64]
and dword [esi + 0x54], 0
mov dword [eax], ecx
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
add eax, 0x30
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
push dword [esp + 0x18]
call fcn.00421130
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
test byte [eax + 0x8c], 0x80
jne 0x421625
mov ebx, dword [esp + 0x10]
test ebx, ebx
jne 0x421603
cmp dword [0x4a7e00], ebx
je 0x4215c9
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4215d5
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], 0
je 0x421603
cmp dword [0x4a7e00], 0
je 0x4215f0
mov eax, dword [ebp + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x4215fc
push dword [0x4aa04c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418fe9
pop ecx
cmp dword [0x4a7e00], 0
je 0x421618
mov eax, dword [ebp + edi*4]
mov dword [eax + 0xc], ebx
jmp 0x421625
push ebx
push dword [0x4aa03c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call fcn.0041b473
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret