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

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test byte [esi + 0x8c], 0x80
push edi
jne 0x4195c2
cmp dword [0x4a8e00], 0
je 0x41957e
mov edi, dword [0x4aac14]
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0xc]
jmp 0x419590
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [0x4aac14]
cmp dword [0x4a8e00], 0
mov dword [esp + 0x10], eax
je 0x4195b2
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov dword [eax + 0xc], 1
jmp 0x4195c8
push 1
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
jmp 0x4195c8
mov edi, dword [0x4aac14]
mov ebp, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp + 0xc]
push eax
mov dword [esp + 0x1c], eax
call ebx
lea eax, [esi + 0x3c]
push eax
call ebx
mov eax, dword [esi + 0x8c]
test ax, 0x1000
jne 0x4196bb
test al, 2
je 0x4196bb
xor ebp, ebp
push ebp
push 0xffffe897
call sym.AdobeCollabSync.exe_PR_SetError
mov ebx, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [esi + 0x8c], 0xfffffffd
pop ecx
pop ecx
push dword [esp + 0x18]
call ebx
lea eax, [esi + 0x3c]
push eax
call ebx
test byte [esi + 0x8c], 0x80
jne 0x4196b3
mov esi, dword [esp + 0x10]
cmp esi, ebp
jne 0x41968d
cmp dword [0x4a8e00], ebp
je 0x419650
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x41965c
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebp
je 0x41968d
cmp dword [0x4a8e00], ebp
je 0x41967a
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov eax, dword [eax + 0x10]
jmp 0x419686
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418d0c
pop ecx
cmp dword [0x4a8e00], ebp
je 0x4196a6
mov eax, dword fs:[0x2c]
mov eax, dword [eax + edi*4]
mov dword [eax + 0xc], esi
jmp 0x4196b3
push esi
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
or eax, 0xffffffff
jmp 0x41983a
mov dword [esi + 0x84], ebp
lea edi, [esi + 0x6c]
lea eax, [ebp + 4]
mov dword [esi], 4
mov dword [edi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x70], eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebp + 8], edi
test byte [esi + 0x8c], 0x80
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jne 0x41971d
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
add eax, 0x18
push eax
call ebx
push dword [esp + 0x24]
mov dword [esi + 0x54], 2
push esi
call sym.AdobeCollabSync.exe__PR_AddSleepQ
mov eax, dword [esi + 0x98]
mov eax, dword [eax + 0x24]
pop ecx
pop ecx
add eax, 0x18
push eax
call ebp
push dword [esp + 0x18]
call ebp
lea eax, [esi + 0x3c]
push eax
call ebp
push dword [esp + 0x20]
call sym.AdobeCollabSync.exe_PR_Unlock
push dword [esp + 0x28]
push esi
call fcn.0041aec2
add esp, 0xc
push dword [esp + 0x18]
mov dword [esp + 0x20], eax
call ebx
mov eax, dword [esi + 0x70]
mov ecx, dword [edi]
push dword [esp + 0x18]
mov dword [eax], ecx
mov eax, dword [edi]
mov ecx, dword [esi + 0x70]
mov dword [eax + 4], ecx
call ebp
xor ebx, ebx
test byte [esi + 0x8c], 0x80
jne 0x419803
mov edi, dword [esp + 0x10]
cmp edi, ebx
jne 0x4197d7
cmp dword [0x4a8e00], ebx
je 0x419794
mov eax, dword [0x4aac14]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov eax, dword [eax + 0x10]
jmp 0x4197a0
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp dword [eax + 0xc], ebx
je 0x4197d7
cmp dword [0x4a8e00], ebx
je 0x4197c4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4aac14]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax + 0x10]
jmp 0x4197d0
push dword [0x4ab06c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
call fcn.00418d0c
pop ecx
cmp dword [0x4a8e00], ebx
je 0x4197f6
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4aac14]
mov eax, dword [eax + ecx*4]
mov dword [eax + 0xc], edi
jmp 0x419803
push edi
push dword [0x4ab05c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push dword [esp + 0x20]
call sym.AdobeCollabSync.exe_PR_Lock
mov eax, dword [esi + 0x8c]
test ax, 0x1000
pop ecx
jne 0x419836
test al, 2
je 0x419836
push ebx
push 0xffffe897
call sym.AdobeCollabSync.exe_PR_SetError
and dword [esi + 0x8c], 0xfffffffd
pop ecx
pop ecx
jmp 0x4196b3
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret